Zend Framework
3.0
|
Class for rendering the barcode. More...
Public Member Functions | |
__construct ($options=null) | |
Constructor. | |
setOptions ($options) | |
Set renderer state from options array. | |
setRendererNamespace ($namespace) | |
Set renderer namespace for autoloading. | |
getRendererNamespace () | |
Retrieve renderer namespace. | |
setTransparentBackground ($bool) | |
Set whether background should be transparent Will work for SVG and Image (png and gif only) | |
getTransparentBackground () | |
getType () | |
Retrieve renderer type. | |
setTopOffset ($value) | |
Manually adjust top position. | |
getTopOffset () | |
Retrieve vertical adjustment. | |
setLeftOffset ($value) | |
Manually adjust left position. | |
getLeftOffset () | |
Retrieve vertical adjustment. | |
setAutomaticRenderError ($value) | |
Activate/Deactivate the automatic rendering of exception. | |
setHorizontalPosition ($value) | |
Horizontal position of the barcode in the rendering resource. | |
getHorizontalPosition () | |
Horizontal position of the barcode in the rendering resource. | |
setVerticalPosition ($value) | |
Vertical position of the barcode in the rendering resource. | |
getVerticalPosition () | |
Vertical position of the barcode in the rendering resource. | |
setModuleSize ($value) | |
Set the size of a module. | |
getModuleSize () | |
Set the size of a module. | |
getAutomaticRenderError () | |
Retrieve the automatic rendering of exception. | |
setBarcode (Object\ObjectInterface $barcode) | |
Set the barcode object. | |
getBarcode () | |
Retrieve the barcode object. | |
checkParams () | |
Checking of parameters after all settings. | |
draw () | |
Draw the barcode in the rendering resource. | |
Public Member Functions inherited from RendererInterface | |
setBarcode (ObjectInterface $barcode) | |
Set the barcode object. | |
render () | |
Render the resource by sending headers and drawed resource. | |
Protected Member Functions | |
checkBarcodeObject () | |
Check if a barcode object is correctly provided. | |
adjustPosition ($supportHeight, $supportWidth) | |
Calculate the left and top offset of the barcode in the rendering support. | |
checkSpecificParams () | |
Checking of parameters after all settings. | |
initRenderer () | |
Initialize the rendering resource. | |
drawPolygon ($points, $color, $filled=true) | |
Draw a polygon in the rendering resource. | |
drawText ($text, $size, $position, $font, $color, $alignment= 'center', $orientation=0) | |
Draw a polygon in the rendering resource. | |
Protected Attributes | |
$rendererNamespace = 'Zend\Barcode\Renderer' | |
$type = null | |
$automaticRenderError = false | |
$topOffset = 0 | |
$leftOffset = 0 | |
$horizontalPosition = 'left' | |
$verticalPosition = 'top' | |
$moduleSize = 1 | |
$barcode | |
$resource | |
Drawing resource. | |
$transparentBackground = false | |
Class for rendering the barcode.
__construct | ( | $options = null | ) |
|
protected |
Calculate the left and top offset of the barcode in the rendering support.
float | $supportHeight | |
float | $supportWidth |
|
protected |
Check if a barcode object is correctly provided.
Exception\RuntimeException |
checkParams | ( | ) |
|
abstractprotected |
Checking of parameters after all settings.
draw | ( | ) |
Draw the barcode in the rendering resource.
BarcodeException\ExceptionInterface |
Implements RendererInterface.
|
abstractprotected |
Draw a polygon in the rendering resource.
array | $points | |
int | $color | |
bool | $filled |
|
abstractprotected |
Draw a polygon in the rendering resource.
string | $text | |
float | $size | |
array | $position | |
string | $font | |
int | $color | |
string | $alignment | |
float | int | $orientation |
getAutomaticRenderError | ( | ) |
getBarcode | ( | ) |
getHorizontalPosition | ( | ) |
Horizontal position of the barcode in the rendering resource.
Implements RendererInterface.
getLeftOffset | ( | ) |
getModuleSize | ( | ) |
getRendererNamespace | ( | ) |
getTopOffset | ( | ) |
getTransparentBackground | ( | ) |
getType | ( | ) |
getVerticalPosition | ( | ) |
Vertical position of the barcode in the rendering resource.
Implements RendererInterface.
|
abstractprotected |
Initialize the rendering resource.
setAutomaticRenderError | ( | $value | ) |
Activate/Deactivate the automatic rendering of exception.
bool | $value |
Implements RendererInterface.
setBarcode | ( | Object\ObjectInterface | $barcode | ) |
setHorizontalPosition | ( | $value | ) |
Horizontal position of the barcode in the rendering resource.
string | $value |
Exception\UnexpectedValueException |
Implements RendererInterface.
setLeftOffset | ( | $value | ) |
Manually adjust left position.
int | $value |
Exception\OutOfRangeException |
Implements RendererInterface.
setModuleSize | ( | $value | ) |
Set the size of a module.
float | $value |
Exception\OutOfRangeException |
Implements RendererInterface.
setOptions | ( | $options | ) |
Set renderer state from options array.
array | $options |
Implements RendererInterface.
setRendererNamespace | ( | $namespace | ) |
Set renderer namespace for autoloading.
string | $namespace |
Implements RendererInterface.
setTopOffset | ( | $value | ) |
Manually adjust top position.
int | $value |
Exception\OutOfRangeException |
Implements RendererInterface.
setTransparentBackground | ( | $bool | ) |
Set whether background should be transparent Will work for SVG and Image (png and gif only)
$bool |
setVerticalPosition | ( | $value | ) |
Vertical position of the barcode in the rendering resource.
string | $value |
Exception\UnexpectedValueException |
Implements RendererInterface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Drawing resource.
|
protected |
|
protected |
|
protected |
|
protected |