Class for generate Barcode

category Zend
package Zend_Barcode
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Proxy to renderer draw() method

draw($barcode, $renderer, $barcodeConfig = array(), $rendererConfig = array()) : mixed
Static

Parameters

$barcode

$renderer

$barcodeConfig

$rendererConfig

Returns

mixed

Factory for Zend_Barcode classes.

factory(mixed $barcode, mixed $renderer = 'image', mixed $barcodeConfig = array(), mixed $rendererConfig = array(), boolean $automaticRenderError = true) : \Zend_Barcode
Static

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

$barcode

mixed

String name of barcode class, or Zend_Config object.

$renderer

mixed

String name of renderer class

$barcodeConfig

mixed

OPTIONAL; an array or Zend_Config object with barcode parameters.

$rendererConfig

mixed

OPTIONAL; an array or Zend_Config object with renderer parameters.

$automaticRenderError

boolean

OPTIONAL; set the automatic rendering of exception

Exceptions

\Zend_Barcode_Exception

Returns

\Zend_Barcode

Barcode Constructor

makeBarcode(mixed $barcode, mixed $barcodeConfig = array()) : \Zend_Barcode_Object
Static

Parameters

$barcode

mixed

String name of barcode class, or Zend_Config object.

$barcodeConfig

mixed

OPTIONAL; an array or Zend_Config object with barcode parameters.

Returns

\Zend_Barcode_Object

Renderer Constructor

makeRenderer(mixed $renderer = 'image', mixed $rendererConfig = array()) : \Zend_Barcode_Renderer
Static

Parameters

$renderer

mixed

String name of renderer class, or Zend_Config object.

$rendererConfig

mixed

OPTIONAL; an array or Zend_Config object with renderer parameters.

Returns

\Zend_Barcode_Renderer

Proxy to renderer render() method

render($barcode, $renderer, $barcodeConfig = array(), $rendererConfig = array()
Static

Parameters

$barcode

$renderer

$barcodeConfig

$rendererConfig

Proxy for setBarcodeFont of Zend_Barcode_Object

setBarcodeFont(string $font) 
Static
eturn void

Parameters

$font

string