draw()
factory()
getBarcodeFont()
getObjectPluginManager()
getRendererPluginManager()
makeBarcode()
makeRenderer()
render()
setBarcodeFont()
$objectPlugins
$rendererPlugins
$staticFont
Class for generate Barcode
draw(string $barcode, string $renderer, array $barcodeConfig, array $rendererConfig) : mixed
string| Object\ObjectInterface | array | Traversable $barcode
string| Renderer\RendererInterface $renderer
array| Traversable $barcodeConfig
array| Traversable $rendererConfig
mixedfactory(mixed $barcode, mixed $renderer, mixed $barcodeConfig, mixed $rendererConfig, bool $automaticRenderError) : \Zend\Barcode\Renderer\RendererInterface
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.
mixedString name of barcode class, or Traversable object.
mixedString name of renderer class
mixedOPTIONAL; an array or Traversable object with barcode parameters.
mixedOPTIONAL; an array or Traversable object with renderer parameters.
boolOPTIONAL; set the automatic rendering of exception
\Zend\Barcode\Exception\ExceptionInterface |
|---|
getBarcodeFont() : string
stringgetObjectPluginManager() : \Zend\Barcode\ObjectPluginManager
getRendererPluginManager() : \Zend\Barcode\RendererPluginManager
makeBarcode(mixed $barcode, mixed $barcodeConfig) : \Zend\Barcode\Object\ObjectInterface
mixedString name of barcode class, or Traversable object, or barcode object.
mixedOPTIONAL; an array or Traversable object with barcode parameters.
\Zend\Barcode\Exception\InvalidArgumentException |
|---|
makeRenderer(mixed $renderer, mixed $rendererConfig) : \Zend\Barcode\Renderer\RendererInterface
mixedString name of renderer class, or Traversable object.
mixedOPTIONAL; an array or Traversable object with renderer parameters.
\Zend\Barcode\Exception\RendererCreationException |
|---|
render(string $barcode, string $renderer, array $barcodeConfig, array $rendererConfig)
string| Object\ObjectInterface | array | Traversable $barcode
string| Renderer\RendererInterface $renderer
array| Traversable $barcodeConfig
array| Traversable $rendererConfig
setBarcodeFont(string $font) : void
string
$staticFont : string
It's used by standard barcode objects derived from Object\AbstractObject class if corresponding constructor option is not provided.