Class Barcode

Summary

Fully Qualified Name: Zend\Barcode\Barcode

Description

Class for generate Barcode

Methods

Name Description Defined By
draw() Proxy to renderer draw() method Barcode
factory() Factory for Zend\Barcode classes. Barcode
getBarcodeFont() Get current default font Barcode
getObjectPluginManager() Get the parser plugin manager Barcode
getRendererPluginManager() Get the renderer plugin manager Barcode
makeBarcode() Barcode Constructor Barcode
makeRenderer() Renderer Constructor Barcode
render() Proxy to renderer render() method Barcode
setBarcodeFont() Set the default font for new instances of barcode Barcode

Method Details

draw()

Proxy to renderer draw() method

Parameter Name Type Description
$ array |
$barcode
$renderer
$barcodeConfig
$rendererConfig

Returns: mixed

factory()

Factory for Zend\Barcode classes.

First argument may be a string containing the base of the adapter class name, e.g. 'code25' corresponds to class Object\Code25. This is case-insensitive.

First argument may alternatively be an object of type Traversable. 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 Traversable, it is assumed to contain all parameters, and the second argument is ignored.

Parameter Name Type Description
$barcode mixed String
$renderer mixed String
$barcodeConfig mixed OPTIONAL;
$rendererConfig mixed OPTIONAL;
$automaticRenderError bool OPTIONAL;

Returns: \RendererInterface

getBarcodeFont()

Get current default font

Returns: string

getObjectPluginManager()

Get the parser plugin manager

Returns: \ObjectPluginManager

getRendererPluginManager()

Get the renderer plugin manager

Returns: \RendererPluginManager

makeBarcode()

Barcode Constructor

Parameter Name Type Description
$barcode mixed String
$barcodeConfig mixed OPTIONAL;

Returns: \Object\ObjectInterface

makeRenderer()

Renderer Constructor

Parameter Name Type Description
$renderer mixed String
$rendererConfig mixed OPTIONAL;

Returns: \Renderer\RendererInterface

render()

Proxy to renderer render() method

Parameter Name Type Description
$ array |
$barcode
$renderer
$barcodeConfig
$rendererConfig

Returns:

setBarcodeFont()

Set the default font for new instances of barcode

Parameter Name Type Description
$font string

Returns: void

Top