Class for rendering the barcode

 Methods

Constructor

__construct(array | \Traversable $options) 

Parameters

$options

array\Traversable

Checking of parameters after all settings

checkParams() : bool

Returns

bool

Draw the barcode in the rendering resource

draw() : mixed

Returns

mixed

Retrieve the automatic rendering of exception

getAutomaticRenderError() : bool

Returns

bool

Retrieve the barcode object

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

Horizontal position of the barcode in the rendering resource

getHorizontalPosition() : string

Returns

string

Retrieve vertical adjustment

getLeftOffset() : int

Returns

int

Set the size of a module

getModuleSize() : float

Returns

float

Retrieve renderer namespace

getRendererNamespace() : string

Returns

string

Retrieve vertical adjustment

getTopOffset() : int

Returns

int

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(bool $value) : \Zend\Barcode\Renderer\self

Parameters

$value

bool

Returns

\Zend\Barcode\Renderer\self

Set the barcode object

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

Horizontal position of the barcode in the rendering resource

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

Parameters

$value

string

Returns

Manually adjust left position

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

Parameters

$value

int

Returns

Set the size of a module

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

Parameters

$value

float

Returns

Set renderer state from options array

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

Parameters

$options

array

Returns

Set renderer namespace for autoloading

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

Parameters

$namespace

string

Returns

Manually adjust top position

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

Parameters

$value

int

Returns

Vertical position of the barcode in the rendering resource

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

Parameters

$value

string

Returns