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

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() : 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
Inherited

inherited_from \Zend\Barcode\Renderer\RendererInterface::render()

Returns

mixed

Activate/Deactivate the automatic rendering of exception

setAutomaticRenderError(bool $value) : \Zend\Barcode\Renderer\AbstractRenderer

Parameters

$value

bool

Returns

Set the barcode object

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

Horizontal position of the barcode in the rendering resource

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

Manually adjust left position

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

Set the size of a module

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

Set renderer state from options array

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

Parameters

$options

array

Returns

Set renderer namespace for autoloading

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

Parameters

$namespace

string

Returns

Manually adjust top position

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

Vertical position of the barcode in the rendering resource

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

Calculate the left and top offset of the barcode in the rendering support

adjustPosition(float $supportHeight, float $supportWidth) : void

Parameters

$supportHeight

float

$supportWidth

float

Check if a barcode object is correctly provided

checkBarcodeObject() : void

Checking of parameters after all settings

checkSpecificParams() : void

Draw a polygon in the rendering resource

drawPolygon(array $points, integer $color, bool $filled) 

Parameters

$points

array

$color

integer

$filled

bool

Draw a polygon in the rendering resource

drawText(string $text, float $size, array $position, string $font, integer $color, string $alignment, float $orientation) 

Parameters

$text

string

$size

float

$position

array

$font

string

$color

integer

$alignment

string

$orientation

float

Initialize the rendering resource

initRenderer() : void

Sub process to draw the barcode instructions Needed by the automatic error rendering

drawInstructionList() 

 Properties

 

Activate/Deactivate the automatic rendering of exception

$automaticRenderError : bool

 

Barcode object

$barcode : \Zend\Barcode\Object\ObjectInterface

 

Horizontal position of the barcode in the rendering resource

$horizontalPosition : integer

 

Offset of the barcode from the left of the rendering resource

$leftOffset : integer

 

Module size rendering

$moduleSize : float

 

Namespace of the renderer for autoloading

$rendererNamespace : string

 

Drawing resource

$resource 

 

Offset of the barcode from the top of the rendering resource

$topOffset : integer

 

Renderer type

$type : string

 

Vertical position of the barcode in the rendering resource

$verticalPosition : integer