Class for rendering the barcode

package Default

 Methods

Constructor

__construct(array|\Traversable $options = null

Parameters

$options

array\Traversable

Checking of parameters after all settings

checkParams() : boolean

Returns

boolean

Draw the barcode in the rendering resource

draw() : mixed

Returns

mixed

Retrieve the automatic rendering of exception

getAutomaticRenderError() : boolean

Returns

boolean

Retrieve the barcode object

getBarcode() : \Zend\Barcode\Object\ObjectInterface

Returns

\Zend\Barcode\Object\ObjectInterface

Horizontal position of the barcode in the rendering resource

getHorizontalPosition() : string

Returns

string

Retrieve vertical adjustment

getLeftOffset() : integer

Returns

integer

Set the size of a module

getModuleSize() : float

Returns

float

Retrieve renderer namespace

getRendererNamespace() : string

Returns

string

Retrieve vertical adjustment

getTopOffset() : integer

Returns

integer

Retrieve renderer type

getType() : string

Returns

string

Vertical position of the barcode in the rendering resource

getVerticalPosition() : string

Returns

string

Render the resource by sending headers and drawed resource

render() : mixed

Returns

mixed

Activate/Deactivate the automatic rendering of exception

setAutomaticRenderError(boolean $value) : \Zend\Barcode\Renderer\RendererInterface
fluent This method is part of a fluent interface and will return the same instance

Parameters

$value

boolean

Returns

\Zend\Barcode\Renderer\RendererInterface

Set the barcode object

setBarcode(\Zend\Barcode\Object\ObjectInterface $barcode) : \Zend\Barcode\Renderer\RendererInterface

Parameters

$barcode

\Zend\Barcode\Object\ObjectInterface

Returns

\Zend\Barcode\Renderer\RendererInterface

Horizontal position of the barcode in the rendering resource

setHorizontalPosition(string $value) : \Zend\Barcode\Renderer\RendererInterface

Parameters

$value

string

Returns

\Zend\Barcode\Renderer\RendererInterface

Manually adjust left position

setLeftOffset(integer $value) : \Zend\Barcode\Renderer\RendererInterface

Parameters

$value

integer

Returns

\Zend\Barcode\Renderer\RendererInterface

Set the size of a module

setModuleSize(float $value) : \Zend\Barcode\Renderer\RendererInterface

Parameters

$value

float

Returns

\Zend\Barcode\Renderer\RendererInterface

Set renderer state from options array

setOptions(array $options) : \Zend\Barcode\Renderer\RendererInterface

Parameters

$options

array

Returns

\Zend\Barcode\Renderer\RendererInterface

Set renderer namespace for autoloading

setRendererNamespace(string $namespace) : \Zend\Barcode\Renderer\RendererInterface

Parameters

$namespace

string

Returns

\Zend\Barcode\Renderer\RendererInterface

Manually adjust top position

setTopOffset(integer $value) : \Zend\Barcode\Renderer\RendererInterface

Parameters

$value

integer

Returns

\Zend\Barcode\Renderer\RendererInterface

Vertical position of the barcode in the rendering resource

setVerticalPosition(string $value) : \Zend\Barcode\Renderer\RendererInterface

Parameters

$value

string

Returns

\Zend\Barcode\Renderer\RendererInterface