Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Class for rendering the barcode
boolean $_automaticRenderError = 'false'
Activate/Deactivate the automatic rendering of exception
Zend_Barcode_Object $_barcode = ''
Barcode object
integer $_horizontalPosition = 'left'
Horizontal position of the barcode in the rendering resource
integer $_leftOffset = '0'
Offset of the barcode from the left of the rendering resource
float $_moduleSize = '1'
Module size rendering
string $_rendererNamespace = 'Zend_Barcode_Renderer'
Namespace of the renderer for autoloading
$_resource = ''
Drawing resource
integer $_topOffset = '0'
Offset of the barcode from the top of the rendering resource
string $_type = 'null'
Renderer type
integer $_verticalPosition = 'top'
Vertical position of the barcode in the rendering resource
__construct(
array|Zend_Config $options
=
null
)
:
void
Constructor
_adjustPosition(
float $supportHeight, float $supportWidth
)
:
void
Calculate the left and top offset of the barcode in the rendering support
_checkBarcodeObject(
)
:
void
Check if a barcode object is correctly provided
_checkParams(
)
:
void
Checking of parameters after all settings
_drawInstructionList(
)
:
Sub process to draw the barcode instructions Needed by the automatic error rendering
_drawPolygon(
array $points, integer $color, boolean $filled
=
true
)
:
Draw a polygon in the rendering resource
_drawText(
string $text, float $size, array $position, string $font, integer $color, string $alignment
=
center, float $orientation
=
0
)
:
Draw a polygon in the rendering resource
_initRenderer(
)
:
void
Initialize the rendering resource
checkParams(
)
:
boolean
Checking of parameters after all settings
draw(
)
:
mixed
Draw the barcode in the rendering resource
getAutomaticRenderError(
)
:
boolean
Retrieve the automatic rendering of exception
getBarcode(
)
:
Zend_Barcode_Object
Retrieve the barcode object
getHorizontalPosition(
)
:
string
Horizontal position of the barcode in the rendering resource
getLeftOffset(
)
:
integer
Retrieve vertical adjustment
getModuleSize(
)
:
float
Set the size of a module
getRendererNamespace(
)
:
string
Retrieve renderer namespace
getTopOffset(
)
:
integer
Retrieve vertical adjustment
getType(
)
:
string
Retrieve renderer type
getVerticalPosition(
)
:
string
Vertical position of the barcode in the rendering resource
render(
)
:
mixed
Render the resource by sending headers and drawed resource
setAutomaticRenderError(
boolean $value
)
:
Activate/Deactivate the automatic rendering of exception
setBarcode(
Zend_Barcode_Object $barcode
)
:
Zend_Barcode_Renderer
Set the barcode object
setConfig(
Zend_Config $config
)
:
Zend_Renderer_Object
Set renderer state from config object
setHorizontalPosition(
string $value
)
:
Zend_Barcode_Renderer
Horizontal position of the barcode in the rendering resource
setLeftOffset(
integer $value
)
:
Zend_Barcode_Renderer
Manually adjust left position
setModuleSize(
float $value
)
:
Zend_Barcode_Renderer
Set the size of a module
setOptions(
array $options
)
:
Zend_Renderer_Object
Set renderer state from options array
setRendererNamespace(
string $namespace
)
:
Zend_Renderer_Object
Set renderer namespace for autoloading
setTopOffset(
integer $value
)
:
Zend_Barcode_Renderer
Manually adjust top position
setVerticalPosition(
string $value
)
:
Zend_Barcode_Renderer
Vertical position of the barcode in the rendering resource