Class for rendering the barcode

category Zend
package Zend_Barcode
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct(array|\Zend_Config $options = null) : \Zend_Barcode_Renderer_RendererAbstract

Parameters

$options

array\Zend_Config

Returns

\Zend_Barcode_Renderer_RendererAbstract

Checking of parameters after all settings

checkParams() : boolean

Returns

boolean

Draw the barcode in the rendering resource

draw() : mixed

Exceptions

\Zend_Exception
\Zend_Barcode_Exception

Returns

mixed

Retrieve the automatic rendering of exception

getAutomaticRenderError() : boolean

Returns

boolean

Retrieve the barcode object

getBarcode() : \Zend_Barcode_Object

Returns

\Zend_Barcode_Object

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_RendererAbstract
fluent This method is part of a fluent interface and will return the same instance

Parameters

$value

boolean

Returns

\Zend_Barcode_Renderer_RendererAbstract

Set the barcode object

setBarcode(\Zend_Barcode_Object $barcode) : \Zend_Barcode_Renderer

Parameters

$barcode

\Zend_Barcode_Object

Exceptions

\Zend_Barcode_Renderer_Exception

Returns

\Zend_Barcode_Renderer

Set renderer state from config object

setConfig(\Zend_Config $config) : \Zend_Renderer_Object

Parameters

$config

\Zend_Config

Returns

\Zend_Renderer_Object

Horizontal position of the barcode in the rendering resource

setHorizontalPosition(string $value) : \Zend_Barcode_Renderer

Parameters

$value

string

Exceptions

\Zend_Barcode_Renderer_Exception

Returns

\Zend_Barcode_Renderer

Manually adjust left position

setLeftOffset(integer $value) : \Zend_Barcode_Renderer

Parameters

$value

integer

Exceptions

\Zend_Barcode_Renderer_Exception

Returns

\Zend_Barcode_Renderer

Set the size of a module

setModuleSize(float $value) : \Zend_Barcode_Renderer

Parameters

$value

float

Exceptions

\Zend_Barcode_Renderer_Exception

Returns

\Zend_Barcode_Renderer

Set renderer state from options array

setOptions(array $options) : \Zend_Renderer_Object

Parameters

$options

array

Returns

\Zend_Renderer_Object

Set renderer namespace for autoloading

setRendererNamespace(string $namespace) : \Zend_Renderer_Object

Parameters

$namespace

string

Returns

\Zend_Renderer_Object

Manually adjust top position

setTopOffset(integer $value) : \Zend_Barcode_Renderer

Parameters

$value

integer

Exceptions

\Zend_Barcode_Renderer_Exception

Returns

\Zend_Barcode_Renderer

Vertical position of the barcode in the rendering resource

setVerticalPosition(string $value) : \Zend_Barcode_Renderer_RendererAbstract
fluent This method is part of a fluent interface and will return the same instance

Parameters

$value

string

Exceptions

\Zend_Barcode_Renderer_Exception

Returns

\Zend_Barcode_Renderer_RendererAbstract

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

Exceptions

\Zend_Barcode_Renderer_Exception

Checking of parameters after all settings

_checkParams() : void

Draw a polygon in the rendering resource

_drawPolygon(array $points, integer $color, boolean $filled = true

Parameters

$points

array

$color

integer

$filled

boolean

Draw a polygon in the rendering resource

_drawText(string $text, float $size, array $position, string $font, integer $color, string $alignment = 'center', float|integer $orientation = 0

Parameters

$text

string

$size

float

$position

array

$font

string

$color

integer

$alignment

string

$orientation

floatinteger

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 : boolean

Default

false
 

Barcode object

$_barcode : \Zend_Barcode_Object_ObjectAbstract

Default

 

Horizontal position of the barcode in the rendering resource

$_horizontalPosition : integer

Default

'left'
 

Offset of the barcode from the left of the rendering resource

$_leftOffset : integer

Default

0
 

Module size rendering

$_moduleSize : float

Default

1
 

Namespace of the renderer for autoloading

$_rendererNamespace : string

Default

'Zend_Barcode_Renderer'
 

Drawing resource

$_resource 

Default

 

Offset of the barcode from the top of the rendering resource

$_topOffset : integer

Default

0
 

Renderer type

$_type : string

Default

null
 

Vertical position of the barcode in the rendering resource

$_verticalPosition : integer

Default

'top'