Barcode/Object/Code25.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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Barcode  
Subpackage
Object  
Version
$Id: Code25.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Barcode_Object_Code25

Package: Zend\Barcode
Class for generate Interleaved 2 of 5 barcode
Parent(s)
\Zend_Barcode_Object_ObjectAbstract
Children
\Zend_Barcode_Object_Code25interleaved
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotected\$_addLeadingZeros $_addLeadingZeros = true
inherited
Activate automatic addition of leading zeros if barcode length is fixed
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_addLeadingZeros
Default valuetrueDetails
Type
\$_addLeadingZeros
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_addLeadingZeros  
>VPropertyprotectedinteger $_backgroundColor = 16777215
inherited
Background color of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_backgroundColor
Default value16777215Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_backgroundColor  
>VPropertyprotectedinteger $_barHeight = 50
inherited
Height of the bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barHeight
Default value50Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barHeight  
>VPropertyprotectedinteger $_barThickWidth = 3
inherited
Width of a thick bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barThickWidth
Default value3Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barThickWidth  
>VPropertyprotectedinteger $_barThinWidth = 1
inherited
Width of a thin bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barThinWidth
Default value1Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barThinWidth  
>VPropertyprotected\$_barcodeLength $_barcodeLength = null
inherited
Fix barcode length (numeric or string like 'even')
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barcodeLength
Default valuenullDetails
Type
\$_barcodeLength
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barcodeLength  
>VPropertyprotectedstring $_barcodeNamespace = 'Zend_Barcode_Object'
inherited
Namespace of the barcode for autoloading
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barcodeNamespace
Default value'Zend_Barcode_Object'Details
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barcodeNamespace  
>VPropertyprotectedarray $_codingMap = array('0' => '00110', '1' => '10001', '2' => '01001', '3' => '11000', '4' => '00101', '5' => '10100', '6' => '01100', '7' => '00011', '8' => '10010', '9' => '01010')
Coding map - 0 = narrow bar - 1 = wide bar
Default valuearray('0' => '00110', '1' => '10001', '2' => '01001', '3' => '11000', '4' => '00101', '5' => '10100', '6' => '01100', '7' => '00011', '8' => '10010', '9' => '01010')Details
Type
array
>VPropertyprotectedboolean $_drawText = true
inherited
Display (or not) human readable text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_drawText
Default valuetrueDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_drawText  
>VPropertyprotectedinteger $_factor = 1
inherited
Factor to multiply bar and font measure (barHeight, barThinWidth, barThickWidth & fontSize)
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_factor
Default value1Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_factor  
>VPropertyprotectedinteger|string $_font = null
inherited
Font resource - integer (1 to 5): corresponds to GD included fonts - string: corresponds to path of a TTF font
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_font
Default valuenullDetails
Type
integer | string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_font  
>VPropertyprotectedfloat $_fontSize = 10
inherited
Font size
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_fontSize
Default value10Details
Type
float
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_fontSize  
>VPropertyprotectedinteger $_foreColor = 0
inherited
Font and bars color of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_foreColor
Default value0Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_foreColor  
>VPropertyprotectedinteger $_height = null
inherited
Height of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_height
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_height  
>VPropertyprotectedarray $_instructions = array()
inherited
Set of drawing instructions
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_instructions
Default valuearray()Details
Type
array
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_instructions  
>VPropertyprotected\$_mandatoryChecksum $_mandatoryChecksum = false
inherited
Activation of mandatory checksum to deactivate unauthorized modification
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryChecksum
Default valuefalseDetails
Type
\$_mandatoryChecksum
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_mandatoryChecksum  
>VPropertyprotectedboolean $_mandatoryQuietZones = false
inherited
Force quiet zones even if
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryQuietZones
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_mandatoryQuietZones  
>VPropertyprotectedinteger $_offsetLeft = null
inherited
Offset from the left the object (calculated from the orientation)
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_offsetLeft
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_offsetLeft  
>VPropertyprotectedinteger $_offsetTop = null
inherited
Offset from the top the object (calculated from the orientation)
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_offsetTop
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_offsetTop  
>VPropertyprotectedfloat $_orientation = 0
inherited
Orientation of the barcode in degrees
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_orientation
Default value0Details
Type
float
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_orientation  
>VPropertyprotectedstring $_staticFont = null
staticinherited
TTF font name: can be set before instanciation of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_staticFont
Default valuenullDetails
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_staticFont  
>VPropertyprotectedboolean $_stretchText = false
inherited
Adjust (or not) position of human readable characters with barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_stretchText
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_stretchText  
>VPropertyprotected\$_substituteChecksumCharacter $_substituteChecksumCharacter = 0
inherited
Character used to substitute checksum character for validation
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_substituteChecksumCharacter
Default value0Details
Type
\$_substituteChecksumCharacter
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_substituteChecksumCharacter  
>VPropertyprotectedstring $_text = null
inherited
Text to display
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_text
Default valuenullDetails
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_text  
>VPropertyprotectedstring $_type = null
inherited
Barcode type
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_type
Default valuenullDetails
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_type  
>VPropertyprotectedinteger $_width = null
inherited
Width of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_width
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_width  
>VPropertyprotectedboolean $_withBorder = false
inherited
Activate/deactivate border of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withBorder
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withBorder  
>VPropertyprotectedboolean $_withChecksum = false
inherited
Drawing of checksum
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withChecksum
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withChecksum  
>VPropertyprotectedboolean $_withChecksumInText = false
inherited
Drawing of checksum inside text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withChecksumInText
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withChecksumInText  
>VPropertyprotectedboolean $_withQuietZones = true
inherited
Activate/deactivate drawing of quiet zones
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withQuietZones
Default valuetrueDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withQuietZones  

Methods

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

Constructor

Inherited from: \Zend_Barcode_Object_ObjectAbstract::__construct()
Parameters
NameTypeDescription
$optionsarray | \Zend_Config
methodprotected_addInstruction(array $instruction) : void
inherited

Add an instruction in the array of instructions

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addInstruction()
Parameters
NameTypeDescription
$instructionarray
methodprotected_addLeadingZeros(string $text, boolean $withoutChecksum = false) : void
inherited

Automatically add leading zeros if barcode length is fixed

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addLeadingZeros()
Parameters
NameTypeDescription
$textstring
$withoutChecksumboolean
methodprotected_addPolygon(array $points, integer $color = null, boolean $filled = true) : void
inherited

Add a polygon drawing instruction in the set of instructions

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addPolygon()
Parameters
NameTypeDescription
$pointsarray
$colorinteger
$filledboolean
methodprotected_addText(string $text, float $size, array $position, string $font, integer $color, string $alignment = 'center', float $orientation = 0) : void
inherited

Add a text drawing instruction in the set of instructions

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addText()
Parameters
NameTypeDescription
$textstring
$sizefloat
$positionarray
$fontstring
$colorinteger
$alignmentstring
$orientationfloat
methodprotected_calculateBarcodeHeight() : integer
inherited

Height of the barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_calculateBarcodeHeight()
Returns
TypeDescription
integer
methodprotected_calculateBarcodeWidth() : integer

Width of the barcode (in pixels)

Returns
TypeDescription
integer
methodprotected_calculateHeight() : integer
inherited

Height of the result object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_calculateHeight()
Returns
TypeDescription
integer
methodprotected_calculateWidth() : integer
inherited

Width of the result image (before any rotation)

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_calculateWidth()
Returns
TypeDescription
integer
methodprotected_checkFontAndOrientation() : void
inherited

Drawing with an angle is just allow TTF font

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_checkFontAndOrientation()
Details
Throw
 
methodprotected_checkParams() : void

Partial check of interleaved 2 of 5 barcode

methodprotected_checkRatio(integer $min = 2, integer $max = 3) : void
inherited

Check the ratio between the thick and the thin bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_checkRatio()
Parameters
NameTypeDescription
$mininteger
$maxinteger
Details
Throw
 
methodprotected_checkText( $value = null) : void
inherited

Check if a text is really provided to barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_checkText()
Parameters
NameTypeDescription
$value
Details
Throw
 
methodprotected_drawBarcode() : void
inherited

Draw the barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawBarcode()
methodprotected_drawBorder() : void
inherited

Partial function to draw border

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawBorder()
methodprotected_drawText() : void
inherited

Partial function to draw text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawText()
methodprotected_getDefaultOptions() : void
inherited

Set default options for particular object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_getDefaultOptions()
methodprotected_postDrawBarcode() : void
inherited

Allow each child to draw something else (ex: bearer bars in interleaved 2 of 5 code)

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_postDrawBarcode()
methodprotected_preDrawBarcode() : void
inherited

Allow each child to draw something else

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_preDrawBarcode()
methodprotected_prepareBarcode() : array

Prepare array to draw barcode

.. )

Returns
TypeDescription
array
methodprotected_rotate(float $x1, float $y1) : array
inherited

Apply rotation on a point in X/Y dimensions

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_rotate()
Parameters
NameTypeDescription
$x1float

x-position before rotation

$y1float

y-position before rotation

Returns
TypeDescription
arrayArray of two elements corresponding to the new XY point
methodprotected_validateText(string $value, array $options = array()) : void
inherited

Standard validation for most of barcode objects

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_validateText()
Parameters
NameTypeDescription
$valuestring
$optionsarray
methodpubliccheckParams() : void
inherited

Checking of parameters after all settings

Inherited from: \Zend_Barcode_Object_ObjectAbstract::checkParams()
methodpublicdraw() : array
inherited

Complete drawing of the barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::draw()
Returns
TypeDescription
arrayTable of instructions
methodpublicgetBackgroundColor() : integer
inherited

Retrieve background color of the image

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBackgroundColor()
Returns
TypeDescription
integer
methodpublicgetBarHeight() : integer
inherited

Get height of the barcode bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBarHeight()
Returns
TypeDescription
integer
methodpublicgetBarThickWidth() : integer
inherited

Get thickness of thick bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBarThickWidth()
Returns
TypeDescription
integer
methodpublicgetBarThinWidth() : integer
inherited

Get thickness of thin bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBarThinWidth()
Returns
TypeDescription
integer
methodpublicgetBarcodeNamespace() : string
inherited

Retrieve barcode namespace

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBarcodeNamespace()
Returns
TypeDescription
string
methodpublicgetChecksum(string $text) : int

Get barcode checksum

Parameters
NameTypeDescription
$textstring
Returns
TypeDescription
int
methodpublicgetDrawText() : boolean
inherited

Retrieve if drawing of text to encode is enabled

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getDrawText()
Returns
TypeDescription
boolean
methodpublicgetFactor() : integer
inherited

Get factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFactor()
Returns
TypeDescription
integer
methodpublicgetFont() : integer | string
inherited

Retrieve the font

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFont()
Returns
TypeDescription
integer | string
methodpublicgetFontSize() : float
inherited

Retrieve the size of the font in case of TTF

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFontSize()
Returns
TypeDescription
float
methodpublicgetForeColor() : \unknown
inherited

Retrieve color of the barcode and text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getForeColor()
Returns
TypeDescription
\unknown
methodpublicgetHeight( $recalculate = false) : integer
inherited

Get height of the result object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getHeight()
Parameters
NameTypeDescription
$recalculate
Returns
TypeDescription
integer
methodpublicgetInstructions() : array
inherited

Retrieve the set of drawing instructions

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getInstructions()
Returns
TypeDescription
array
methodpublicgetOffsetLeft(boolean $recalculate = false) : float
inherited

Calculate the offset from the left of the object if an orientation is activated

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getOffsetLeft()
Parameters
NameTypeDescription
$recalculateboolean
Returns
TypeDescription
float
methodpublicgetOffsetTop(boolean $recalculate = false) : float
inherited

Calculate the offset from the top of the object if an orientation is activated

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getOffsetTop()
Parameters
NameTypeDescription
$recalculateboolean
Returns
TypeDescription
float
methodpublicgetOrientation() : float
inherited

Retrieve orientation of barcode and text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getOrientation()
Returns
TypeDescription
float
methodpublicgetQuietZone() : integer
inherited

Quiet zone before first bar and after the last bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getQuietZone()
Returns
TypeDescription
integer
methodpublicgetRawText() : string
inherited

Retrieve text to encode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getRawText()
Returns
TypeDescription
string
methodpublicgetStretchText() : boolean
inherited

Retrieve if the adjustment of the position of the characters to the position of the bars is enabled

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getStretchText()
Returns
TypeDescription
boolean
methodpublicgetText() : string
inherited

Retrieve text to encode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getText()
Returns
TypeDescription
string
methodpublicgetTextToDisplay() : string
inherited

Retrieve text to display

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getTextToDisplay()
Returns
TypeDescription
string
methodpublicgetType() : string
inherited

Retrieve type of barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getType()
Returns
TypeDescription
string
methodpublicgetWidth( $recalculate = false) : integer
inherited

Get width of the result object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWidth()
Parameters
NameTypeDescription
$recalculate
Returns
TypeDescription
integer
methodpublicgetWithBorder() : boolean
inherited

Retrieve if border are draw or not

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithBorder()
Returns
TypeDescription
boolean
methodpublicgetWithChecksum() : boolean
inherited

Retrieve if the checksum character is automatically added to the barcode text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithChecksum()
Returns
TypeDescription
boolean
methodpublicgetWithChecksumInText() : boolean
inherited

Retrieve if the checksum character is automatically added to the barcode text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithChecksumInText()
Returns
TypeDescription
boolean
methodpublicgetWithQuietZones() : boolean
inherited

Retrieve if quiet zones are draw or not

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithQuietZones()
Returns
TypeDescription
boolean
methodpublicsetBackgroundColor(integer $value) : \Zend_Barcode_Object
inherited

Set the color of the background

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBackgroundColor()
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarHeight(integer $value) : \Zend_Barcode_Object
inherited

Set height of the barcode bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarHeight()
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarThickWidth(integer $value) : \Zend_Barcode_Object
inherited

Set thickness of thick bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarThickWidth()
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarThinWidth(integer $value) : \Zend_Barcode_Object
inherited

Set thickness of thin bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarThinWidth()
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarcodeFont(string $font) : void
staticinherited

Set the font for all instances of barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarcodeFont()
Parameters
NameTypeDescription
$fontstring
methodpublicsetBarcodeNamespace(string $namespace) : \Zend_Barcode_Object
inherited

Set barcode namespace for autoloading

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarcodeNamespace()
Parameters
NameTypeDescription
$namespacestring
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetConfig(\Zend_Config $config) : \Zend_Barcode_Object
inherited

Set barcode state from config object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setConfig()
Parameters
NameTypeDescription
$config\Zend_Config
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetDrawText(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate drawing of text to encode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setDrawText()
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetFactor(float $value) : \Zend_Barcode_Object
inherited

Set factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setFactor()
Parameters
NameTypeDescription
$valuefloat
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetFont(integer | string $value) : \Zend_Barcode_Object
inherited

Set the font: - if integer between 1 and 5, use gd built-in fonts - if string, $value is assumed to be the path to a TTF font

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setFont()
Parameters
NameTypeDescription
$valueinteger | string
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetFontSize(float $value) : \Zend_Barcode_Object
inherited

Set the size of the font in case of TTF

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setFontSize()
Parameters
NameTypeDescription
$valuefloat
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetForeColor(string $value) : \Zend_Barcode_Object
inherited

Set color of the barcode and text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setForeColor()
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetOptions(array $options) : \Zend_Barcode_Object
inherited

Set barcode state from options array

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setOptions()
Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetOrientation(float $value) : \Zend_Barcode_Object
inherited

Set orientation of barcode and text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setOrientation()
Parameters
NameTypeDescription
$valuefloat
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetReverseColor() : \Zend_Barcode_Object
inherited

Allow fast inversion of font/bars color and background color

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setReverseColor()
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetStretchText(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate the adjustment of the position of the characters to the position of the bars

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setStretchText()
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetText(string $value) : \Zend_Barcode_Object
inherited

Set text to encode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setText()
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetWithBorder(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate drawing of the bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithBorder()
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetWithChecksum(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate the automatic generation of the checksum character added to the barcode text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithChecksum()
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetWithChecksumInText(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate the automatic generation of the checksum character added to the barcode text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithChecksumInText()
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetWithQuietZones(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate drawing of the quiet zones

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithQuietZones()
Parameters
NameTypeDescription
$valueboolean
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicvalidateText(string $value) : void
inherited

Check for invalid characters

Inherited from: \Zend_Barcode_Object_ObjectAbstract::validateText()
Parameters
NameTypeDescription
$valuestring

Text to be ckecked

Documentation was generated by phpDocumentor 2.0.0a12.