Barcode.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Barcode  
Version
$Id$  

\Zend_Barcode

Package: Zend_Barcode
Class for generate Barcode
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublicdraw( $barcode,  $renderer,  $barcodeConfig = array(),  $rendererConfig = array()) : mixed
static

Proxy to renderer draw() method

Parameters
NameTypeDescription
$barcode
$renderer
$barcodeConfig
$rendererConfig
Returns
TypeDescription
mixed
methodpublicfactory(mixed $barcode, mixed $renderer = 'image', mixed $barcodeConfig = array(), mixed $rendererConfig = array(), boolean $automaticRenderError = true) : \Zend_Barcode
static

Factory for Zend_Barcode classes.

First argument may be a string containing the base of the adapter class name, e.g. 'int25' corresponds to class Zend_Barcode_Object_Int25. This is case-insensitive. First argument may alternatively be an object of type Zend_Config. The barcode class base name is read from the 'barcode' property. The barcode config parameters are read from the 'params' property. Second argument is optional and may be an associative array of key-value pairs. This is used as the argument to the barcode constructor. If the first argument is of type Zend_Config, it is assumed to contain all parameters, and the second argument is ignored.
Parameters
NameTypeDescription
$barcodemixed

String name of barcode class, or Zend_Config object.

$renderermixed

String name of renderer class

$barcodeConfigmixed

OPTIONAL; an array or Zend_Config object with barcode parameters.

$rendererConfigmixed

OPTIONAL; an array or Zend_Config object with renderer parameters.

$automaticRenderErrorboolean

OPTIONAL; set the automatic rendering of exception

Returns
TypeDescription
\Zend_Barcode
Throws
ExceptionDescription
\Zend_Barcode_Exception
methodpublicmakeBarcode(mixed $barcode, mixed $barcodeConfig = array()) : \Zend_Barcode_Object
static

Barcode Constructor

Parameters
NameTypeDescription
$barcodemixed

String name of barcode class, or Zend_Config object.

$barcodeConfigmixed

OPTIONAL; an array or Zend_Config object with barcode parameters.

Returns
TypeDescription
\Zend_Barcode_Object
methodpublicmakeRenderer(mixed $renderer = 'image', mixed $rendererConfig = array()) : \Zend_Barcode_Renderer
static

Renderer Constructor

Parameters
NameTypeDescription
$renderermixed

String name of renderer class, or Zend_Config object.

$rendererConfigmixed

OPTIONAL; an array or Zend_Config object with renderer parameters.

Returns
TypeDescription
\Zend_Barcode_Renderer
methodpublicrender( $barcode,  $renderer,  $barcodeConfig = array(),  $rendererConfig = array()) : void
static

Proxy to renderer render() method

Parameters
NameTypeDescription
$barcode
$renderer
$barcodeConfig
$rendererConfig
methodpublicsetBarcodeFont(string $font) : void
static

Proxy for setBarcodeFont of Zend_Barcode_Object

Parameters
NameTypeDescription
$fontstring
Details
Eturn
void  
Documentation was generated by phpDocumentor 2.2.0 .