API Documentation

Barcode/Renderer/RendererAbstract.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Barcode
subpackage
Renderer
version
$Id: RendererAbstract.php 20316 2010-01-15 22:27:00Z mikaelkael $
Classes
Zend_Barcode_Renderer_RendererAbstract

Description

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.

Zend_Barcode_Renderer_RendererAbstract

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Barcode
Properties
$_rendererNamespace
$_type
$_automaticRenderError
$_topOffset
$_leftOffset
$_horizontalPosition
$_verticalPosition
$_moduleSize
$_barcode
$_resource
Methods
__construct
setOptions
setConfig
setRendererNamespace
getRendererNamespace
getType
setTopOffset
getTopOffset
setLeftOffset
getLeftOffset
setAutomaticRenderError
setHorizontalPosition
getHorizontalPosition
setVerticalPosition
getVerticalPosition
setModuleSize
getModuleSize
getAutomaticRenderError
setBarcode
getBarcode
checkParams
_checkBarcodeObject
_adjustPosition
draw
_drawInstructionList
_checkParams
render
_initRenderer
_drawPolygon
_drawText

Description

Class for rendering the barcode

Properties

$_automaticRenderError

boolean $_automaticRenderError = 'false'

Activate/Deactivate the automatic rendering of exception

Details

$_automaticRenderError
boolean
visibility
protected
default
false
final
false
static
false

$_barcode

Zend_Barcode_Object $_barcode = ''

Barcode object

Details

$_barcode
Zend_Barcode_Object
visibility
protected
default
final
false
static
false

$_horizontalPosition

integer $_horizontalPosition = 'left'

Horizontal position of the barcode in the rendering resource

Details

$_horizontalPosition
integer
visibility
protected
default
left
final
false
static
false

$_leftOffset

integer $_leftOffset = '0'

Offset of the barcode from the left of the rendering resource

Details

$_leftOffset
integer
visibility
protected
default
0
final
false
static
false

$_moduleSize

float $_moduleSize = '1'

Module size rendering

Details

$_moduleSize
float
visibility
protected
default
1
final
false
static
false

$_rendererNamespace

string $_rendererNamespace = 'Zend_Barcode_Renderer'

Namespace of the renderer for autoloading

Details

$_rendererNamespace
string
visibility
protected
default
Zend_Barcode_Renderer
final
false
static
false

$_resource

 $_resource = ''

Drawing resource

Details

visibility
protected
default
final
false
static
false

$_topOffset

integer $_topOffset = '0'

Offset of the barcode from the top of the rendering resource

Details

$_topOffset
integer
visibility
protected
default
0
final
false
static
false

$_type

string $_type = 'null'

Renderer type

Details

$_type
string
visibility
protected
default
null
final
false
static
false

$_verticalPosition

integer $_verticalPosition = 'top'

Vertical position of the barcode in the rendering resource

Details

$_verticalPosition
integer
visibility
protected
default
top
final
false
static
false

Methods

__construct

__construct( array|Zend_Config $options = null ) : void

Constructor

Arguments
$options
arrayZend_Config
Details
visibility
public
final
false
static
false

_adjustPosition

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

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

Arguments
$supportHeight
float
$supportWidth
float
Details
visibility
protected
final
false
static
false

_checkBarcodeObject

_checkBarcodeObject( ) : void

Check if a barcode object is correctly provided

Details
visibility
protected
final
false
static
false
throw

_checkParams

_checkParams( ) : void

Checking of parameters after all settings

Details
visibility
protected
final
false
static
false

_drawInstructionList

_drawInstructionList( ) :

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

Details
visibility
private
final
false
static
false

_drawPolygon

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

Draw a polygon in the rendering resource

Arguments
$points
array
$color
integer
$filled
boolean
Details
visibility
protected
final
false
static
false

_drawText

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

Draw a polygon in the rendering resource

Arguments
$text
string
$size
float
$position
array
$font
string
$color
integer
$alignment
string
$orientation
float
Details
visibility
protected
final
false
static
false

_initRenderer

_initRenderer( ) : void

Initialize the rendering resource

Details
visibility
protected
final
false
static
false

checkParams

checkParams( ) : boolean

Checking of parameters after all settings

Output
boolean
Details
visibility
public
final
false
static
false

draw

draw( ) : mixed

Draw the barcode in the rendering resource

Output
mixed
Details
visibility
public
final
false
static
false

getAutomaticRenderError

getAutomaticRenderError( ) : boolean

Retrieve the automatic rendering of exception

Output
boolean
Details
visibility
public
final
false
static
false

getBarcode

getBarcode( ) : Zend_Barcode_Object

Retrieve the barcode object

Output
Zend_Barcode_Object
Details
visibility
public
final
false
static
false

getHorizontalPosition

getHorizontalPosition( ) : string

Horizontal position of the barcode in the rendering resource

Output
string
Details
visibility
public
final
false
static
false

getLeftOffset

getLeftOffset( ) : integer

Retrieve vertical adjustment

Output
integer
Details
visibility
public
final
false
static
false

getModuleSize

getModuleSize( ) : float

Set the size of a module

Output
float
Details
visibility
public
final
false
static
false

getRendererNamespace

getRendererNamespace( ) : string

Retrieve renderer namespace

Output
string
Details
visibility
public
final
false
static
false

getTopOffset

getTopOffset( ) : integer

Retrieve vertical adjustment

Output
integer
Details
visibility
public
final
false
static
false

getType

getType( ) : string

Retrieve renderer type

Output
string
Details
visibility
public
final
false
static
false

getVerticalPosition

getVerticalPosition( ) : string

Vertical position of the barcode in the rendering resource

Output
string
Details
visibility
public
final
false
static
false

render

render( ) : mixed

Render the resource by sending headers and drawed resource

Output
mixed
Details
visibility
public
final
false
static
false

setAutomaticRenderError

setAutomaticRenderError( boolean $value ) :

Activate/Deactivate the automatic rendering of exception

Arguments
$value
boolean
Details
visibility
public
final
false
static
false

setBarcode

setBarcode( Zend_Barcode_Object $barcode ) : Zend_Barcode_Renderer

Set the barcode object

Arguments
$barcode
Zend_Barcode_Object
Output
Zend_Barcode_Renderer
Details
visibility
public
final
false
static
false

setConfig

setConfig( Zend_Config $config ) : Zend_Renderer_Object

Set renderer state from config object

Arguments
$config
Zend_Config
Output
Zend_Renderer_Object
Details
visibility
public
final
false
static
false

setHorizontalPosition

setHorizontalPosition( string $value ) : Zend_Barcode_Renderer

Horizontal position of the barcode in the rendering resource

Arguments
$value
string
Output
Zend_Barcode_Renderer
Details
visibility
public
final
false
static
false
throw

setLeftOffset

setLeftOffset( integer $value ) : Zend_Barcode_Renderer

Manually adjust left position

Arguments
$value
integer
Output
Zend_Barcode_Renderer
Details
visibility
public
final
false
static
false
throw

setModuleSize

setModuleSize( float $value ) : Zend_Barcode_Renderer

Set the size of a module

Arguments
$value
float
Output
Zend_Barcode_Renderer
Details
visibility
public
final
false
static
false
throw

setOptions

setOptions( array $options ) : Zend_Renderer_Object

Set renderer state from options array

Arguments
$options
array
Output
Zend_Renderer_Object
Details
visibility
public
final
false
static
false

setRendererNamespace

setRendererNamespace( string $namespace ) : Zend_Renderer_Object

Set renderer namespace for autoloading

Arguments
$namespace
string
Output
Zend_Renderer_Object
Details
visibility
public
final
false
static
false

setTopOffset

setTopOffset( integer $value ) : Zend_Barcode_Renderer

Manually adjust top position

Arguments
$value
integer
Output
Zend_Barcode_Renderer
Details
visibility
public
final
false
static
false
throw

setVerticalPosition

setVerticalPosition( string $value ) : Zend_Barcode_Renderer

Vertical position of the barcode in the rendering resource

Arguments
$value
string
Output
Zend_Barcode_Renderer
Details
visibility
public
final
false
static
false
throw
Documentation was generated by DocBlox.