Zend Framework  1.12
Static Public Member Functions | List of all members
Zend_Barcode Class Reference

Static Public Member Functions

static factory ($barcode, $renderer= 'image', $barcodeConfig=array(), $rendererConfig=array(), $automaticRenderError=true)
 Factory for Zend_Barcode classes.
 
static makeBarcode ($barcode, $barcodeConfig=array())
 Barcode Constructor.
 
static makeRenderer ($renderer= 'image', $rendererConfig=array())
 Renderer Constructor.
 
static render ($barcode, $renderer, $barcodeConfig=array(), $rendererConfig=array())
 Proxy to renderer render() method.
 
static draw ($barcode, $renderer, $barcodeConfig=array(), $rendererConfig=array())
 Proxy to renderer draw() method.
 
static setBarcodeFont ($font)
 Proxy for setBarcodeFont of Zend_Barcode_Object.
 

Member Function Documentation

static draw (   $barcode,
  $renderer,
  $barcodeConfig = array(),
  $rendererConfig = array() 
)
static

Proxy to renderer draw() method.

Parameters
string  |  Zend_Barcode_Object  |  array  |  Zend_Config$barcode
string  |  Zend_Barcode_Renderer$renderer
array  |  Zend_Config$barcodeConfig
array  |  Zend_Config$rendererConfig
Returns
mixed
static factory (   $barcode,
  $renderer = 'image',
  $barcodeConfig = array(),
  $rendererConfig = array(),
  $automaticRenderError = true 
)
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
mixed$barcodeString name of barcode class, or Zend_Config object.
mixed$rendererString name of renderer class
mixed$barcodeConfigOPTIONAL; an array or Zend_Config object with barcode parameters.
mixed$rendererConfigOPTIONAL; an array or Zend_Config object with renderer parameters.
boolean$automaticRenderErrorOPTIONAL; set the automatic rendering of exception
Returns
Zend_Barcode
Exceptions
Zend_Barcode_Exception
static makeBarcode (   $barcode,
  $barcodeConfig = array() 
)
static

Barcode Constructor.

Parameters
mixed$barcodeString name of barcode class, or Zend_Config object.
mixed$barcodeConfigOPTIONAL; an array or Zend_Config object with barcode parameters.
Returns
Zend_Barcode_Object
See Also
Zend_Barcode_Exception
Zend_Barcode_Exception
Zend_Barcode_Exception
static makeRenderer (   $renderer = 'image',
  $rendererConfig = array() 
)
static

Renderer Constructor.

Parameters
mixed$rendererString name of renderer class, or Zend_Config object.
mixed$rendererConfigOPTIONAL; an array or Zend_Config object with renderer parameters.
Returns
Zend_Barcode_Renderer
See Also
Zend_Barcode_Exception
Zend_Barcode_Exception
Zend_Barcode_Exception
static render (   $barcode,
  $renderer,
  $barcodeConfig = array(),
  $rendererConfig = array() 
)
static

Proxy to renderer render() method.

Parameters
string  |  Zend_Barcode_Object  |  array  |  Zend_Config$barcode
string  |  Zend_Barcode_Renderer$renderer
array  |  Zend_Config$barcodeConfig
array  |  Zend_Config$rendererConfig
static setBarcodeFont (   $font)
static

Proxy for setBarcodeFont of Zend_Barcode_Object.

Parameters
string$fontvoid