Barcode/Renderer/RendererAbstract.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Barcode  
Subpackage
Renderer  
Version
$Id$  

\Zend_Barcode_Renderer_RendererAbstract

Package: Zend_Barcode
Class for rendering the barcode
Children
\Zend_Barcode_Renderer_Pdf
\Zend_Barcode_Renderer_Image
\Zend_Barcode_Renderer_Svg
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedboolean $_automaticRenderError = false
Activate/Deactivate the automatic rendering of exception
Default valuefalseDetails
Type
boolean
>VPropertyprotected\Zend_Barcode_Object_ObjectAbstract $_barcode
Barcode object
>VPropertyprotectedinteger $_horizontalPosition = 'left'
Horizontal position of the barcode in the rendering resource
Default value'left'Details
Type
integer
>VPropertyprotectedinteger $_leftOffset = 0
Offset of the barcode from the left of the rendering resource
Default value0Details
Type
integer
>VPropertyprotectedfloat $_moduleSize = 1
Module size rendering
Default value1Details
Type
float
>VPropertyprotectedstring $_rendererNamespace = 'Zend_Barcode_Renderer'
Namespace of the renderer for autoloading
Default value'Zend_Barcode_Renderer'Details
Type
string
>VPropertyprotected$_resource
Drawing resource
Details
Type
n/a
>VPropertyprotectedinteger $_topOffset = 0
Offset of the barcode from the top of the rendering resource
Default value0Details
Type
integer
>VPropertyprotectedstring $_type = null
Renderer type
Default valuenullDetails
Type
string
>VPropertyprotectedinteger $_verticalPosition = 'top'
Vertical position of the barcode in the rendering resource
Default value'top'Details
Type
integer

Methods

methodpublic__construct(array | \Zend_Config $options = null) : void

Constructor

Parameters
NameTypeDescription
$optionsarray | \Zend_Config
methodprotected_adjustPosition(float $supportHeight, float $supportWidth) : void

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

Parameters
NameTypeDescription
$supportHeightfloat
$supportWidthfloat
methodprotected_checkBarcodeObject() : void

Check if a barcode object is correctly provided

Details
Throw
 
methodprotected_checkParams() : void
abstract

Checking of parameters after all settings

methodprivate_drawInstructionList() : void

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

methodprotected_drawPolygon(array $points, integer $color, boolean $filled = true) : void
abstract

Draw a polygon in the rendering resource

Parameters
NameTypeDescription
$pointsarray
$colorinteger
$filledboolean
methodprotected_drawText(string $text, float $size, array $position, string $font, integer $color, string $alignment = 'center', float $orientation = 0) : void
abstract

Draw a polygon in the rendering resource

Parameters
NameTypeDescription
$textstring
$sizefloat
$positionarray
$fontstring
$colorinteger
$alignmentstring
$orientationfloat
methodprotected_initRenderer() : void
abstract

Initialize the rendering resource

methodpubliccheckParams() : boolean

Checking of parameters after all settings

Returns
TypeDescription
boolean
methodpublicdraw() : mixed

Draw the barcode in the rendering resource

Returns
TypeDescription
mixed
methodpublicgetAutomaticRenderError() : boolean

Retrieve the automatic rendering of exception

Returns
TypeDescription
boolean
methodpublicgetBarcode() : \Zend_Barcode_Object

Retrieve the barcode object

Returns
TypeDescription
\Zend_Barcode_Object
methodpublicgetHorizontalPosition() : string

Horizontal position of the barcode in the rendering resource

Returns
TypeDescription
string
methodpublicgetLeftOffset() : integer

Retrieve vertical adjustment

Returns
TypeDescription
integer
methodpublicgetModuleSize() : float

Set the size of a module

Returns
TypeDescription
float
methodpublicgetRendererNamespace() : string

Retrieve renderer namespace

Returns
TypeDescription
string
methodpublicgetTopOffset() : integer

Retrieve vertical adjustment

Returns
TypeDescription
integer
methodpublicgetType() : string

Retrieve renderer type

Returns
TypeDescription
string
methodpublicgetVerticalPosition() : string

Vertical position of the barcode in the rendering resource

Returns
TypeDescription
string
methodpublicrender() : mixed
abstract

Render the resource by sending headers and drawed resource

Returns
TypeDescription
mixed
methodpublicsetAutomaticRenderError(boolean $value) : void

Activate/Deactivate the automatic rendering of exception

Parameters
NameTypeDescription
$valueboolean
methodpublicsetBarcode(\Zend_Barcode_Object $barcode) : \Zend_Barcode_Renderer

Set the barcode object

Parameters
NameTypeDescription
$barcode\Zend_Barcode_Object
Returns
TypeDescription
\Zend_Barcode_Renderer
methodpublicsetConfig(\Zend_Config $config) : \Zend_Renderer_Object

Set renderer state from config object

Parameters
NameTypeDescription
$config\Zend_Config
Returns
TypeDescription
\Zend_Renderer_Object
methodpublicsetHorizontalPosition(string $value) : \Zend_Barcode_Renderer

Horizontal position of the barcode in the rendering resource

Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
\Zend_Barcode_Renderer
Details
Throw
 
methodpublicsetLeftOffset(integer $value) : \Zend_Barcode_Renderer

Manually adjust left position

Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Renderer
Details
Throw
 
methodpublicsetModuleSize(float $value) : \Zend_Barcode_Renderer

Set the size of a module

Parameters
NameTypeDescription
$valuefloat
Returns
TypeDescription
\Zend_Barcode_Renderer
Details
Throw
 
methodpublicsetOptions(array $options) : \Zend_Renderer_Object

Set renderer state from options array

Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Renderer_Object
methodpublicsetRendererNamespace(string $namespace) : \Zend_Renderer_Object

Set renderer namespace for autoloading

Parameters
NameTypeDescription
$namespacestring
Returns
TypeDescription
\Zend_Renderer_Object
methodpublicsetTopOffset(integer $value) : \Zend_Barcode_Renderer

Manually adjust top position

Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Renderer
Details
Throw
 
methodpublicsetVerticalPosition(string $value) : \Zend_Barcode_Renderer

Vertical position of the barcode in the rendering resource

Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
\Zend_Barcode_Renderer
Details
Throw
 
Documentation was generated by phpDocumentor 2.2.0 .