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
mixed
factory(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.
mixed
String name of barcode class, or Traversable object.
mixed
String name of renderer class
mixed
OPTIONAL; an array or Traversable object with barcode parameters.
mixed
OPTIONAL; an array or Traversable object with renderer parameters.
bool
OPTIONAL; set the automatic rendering of exception
\Zend\Barcode\Exception\ExceptionInterface |
---|
getBarcodeFont() : string
string
getObjectPluginManager() : \Zend\Barcode\ObjectPluginManager
getRendererPluginManager() : \Zend\Barcode\RendererPluginManager
makeBarcode(mixed $barcode, mixed $barcodeConfig) : \Zend\Barcode\Object\ObjectInterface
mixed
String name of barcode class, or Traversable object, or barcode object.
mixed
OPTIONAL; an array or Traversable object with barcode parameters.
\Zend\Barcode\Exception\InvalidArgumentException |
---|
makeRenderer(mixed $renderer, mixed $rendererConfig) : \Zend\Barcode\Renderer\RendererInterface
mixed
String name of renderer class, or Traversable object.
mixed
OPTIONAL; 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.