Barcode/Object/Identcode.php
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: Identcode.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Barcode_Object_Identcode
- Parent(s)
- \Zend_Barcode_Object_Code25interleaved < \Zend_Barcode_Object_Code25 < \Zend_Barcode_Object_ObjectAbstract
- Children
- \Zend_Barcode_Object_Leitcode
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

\$_addLeadingZeros $_addLeadingZeros = truetrueDetails- Type
- \$_addLeadingZeros
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_addLeadingZeros
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_addLeadingZeros
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_addLeadingZeros

integer $_backgroundColor = 1677721516777215Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_backgroundColor
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_backgroundColor
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_backgroundColor

integer $_barHeight = 5050Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barHeight
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barHeight
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_barHeight

integer $_barThickWidth = 33Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barThickWidth
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barThickWidth
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_barThickWidth

integer $_barThinWidth = 11Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barThinWidth
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barThinWidth
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_barThinWidth

\$_barcodeLength $_barcodeLength = nullnullDetails- Type
- \$_barcodeLength
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barcodeLength
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barcodeLength
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_barcodeLength

string $_barcodeNamespace = 'Zend_Barcode_Object''Zend_Barcode_Object'Details- Type
- string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barcodeNamespace
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barcodeNamespace
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_barcodeNamespace

array $_codingMap = array('0' => '00110', '1' => '10001', '2' => '01001', '3' => '11000', '4' => '00101', '5' => '10100', '6' => '01100', '7' => '00011', '8' => '10010', '9' => '01010')array('0' => '00110', '1' => '10001', '2' => '01001', '3' => '11000', '4' => '00101', '5' => '10100', '6' => '01100', '7' => '00011', '8' => '10010', '9' => '01010')Details- Type
- array
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_codingMap
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_codingMap

boolean $_drawText = truetrueDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_drawText
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_drawText
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_drawText

integer $_factor = 11Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_factor
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_factor
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_factor

integer|string $_font = nullnullDetails- Type
- integer | string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_font
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_font
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_font

float $_fontSize = 1010Details- Type
- float
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_fontSize
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_fontSize
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_fontSize

integer $_foreColor = 00Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_foreColor
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_foreColor
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_foreColor

integer $_height = nullnullDetails- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_height
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_height
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_height

array $_instructions = array()array()Details- Type
- array
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_instructions
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_instructions
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_instructions

\$_mandatoryChecksum $_mandatoryChecksum = falsefalseDetails- Type
- \$_mandatoryChecksum
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryChecksum
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_mandatoryChecksum
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_mandatoryChecksum

boolean $_mandatoryQuietZones = falsefalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryQuietZones
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_mandatoryQuietZones
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_mandatoryQuietZones

integer $_offsetLeft = nullnullDetails- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_offsetLeft
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_offsetLeft
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_offsetLeft

integer $_offsetTop = nullnullDetails- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_offsetTop
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_offsetTop
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_offsetTop

float $_orientation = 00Details- Type
- float
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_orientation
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_orientation
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_orientation

string $_staticFont = nullnullDetails- Type
- string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_staticFont
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_staticFont
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_staticFont

boolean $_stretchText = falsefalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_stretchText
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_stretchText
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_stretchText

\$_substituteChecksumCharacter $_substituteChecksumCharacter = 00Details- Type
- \$_substituteChecksumCharacter
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_substituteChecksumCharacter
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_substituteChecksumCharacter
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_substituteChecksumCharacter

string $_text = nullnullDetails- Type
- string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_text
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_text
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_text

string $_type = nullnullDetails- Type
- string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_type
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_type
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_type

integer $_width = nullnullDetails- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_width
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_width
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_width

boolean $_withBearerBars = falsefalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_withBearerBars

boolean $_withBorder = falsefalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_withBorder
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_withBorder
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_withBorder

boolean $_withChecksum = falsefalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_withChecksum
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_withChecksum
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_withChecksum

boolean $_withChecksumInText = falsefalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_withChecksumInText
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_withChecksumInText
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_withChecksumInText

boolean $_withQuietZones = truetrueDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_withQuietZones
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_withQuietZones
- Inherited_from
- \Zend_Barcode_Object_Code25interleaved::$$_withQuietZones
Methods

__construct(array | \Zend_Config $options = null) : voidConstructor
Inherited from: \Zend_Barcode_Object_ObjectAbstract::__construct()\Zend_Barcode_Object_Code25::__construct()\Zend_Barcode_Object_Code25interleaved::__construct()| Name | Type | Description |
|---|---|---|
| $options | array | \Zend_Config |

_addInstruction(array $instruction) : voidAdd an instruction in the array of instructions
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addInstruction()\Zend_Barcode_Object_Code25::_addInstruction()\Zend_Barcode_Object_Code25interleaved::_addInstruction()| Name | Type | Description |
|---|---|---|
| $instruction | array |

_addLeadingZeros(string $text, boolean $withoutChecksum = false) : voidAutomatically add leading zeros if barcode length is fixed
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addLeadingZeros()\Zend_Barcode_Object_Code25::_addLeadingZeros()\Zend_Barcode_Object_Code25interleaved::_addLeadingZeros()| Name | Type | Description |
|---|---|---|
| $text | string | |
| $withoutChecksum | boolean |

_addPolygon(array $points, integer $color = null, boolean $filled = true) : voidAdd a polygon drawing instruction in the set of instructions
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addPolygon()\Zend_Barcode_Object_Code25::_addPolygon()\Zend_Barcode_Object_Code25interleaved::_addPolygon()| Name | Type | Description |
|---|---|---|
| $points | array | |
| $color | integer | |
| $filled | boolean |

_addText(string $text, float $size, array $position, string $font, integer $color, string $alignment = 'center', float $orientation = 0) : voidAdd a text drawing instruction in the set of instructions
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addText()\Zend_Barcode_Object_Code25::_addText()\Zend_Barcode_Object_Code25interleaved::_addText()| Name | Type | Description |
|---|---|---|
| $text | string | |
| $size | float | |
| $position | array | |
| $font | string | |
| $color | integer | |
| $alignment | string | |
| $orientation | float |

_calculateBarcodeHeight() : integerHeight of the barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_calculateBarcodeHeight()\Zend_Barcode_Object_Code25::_calculateBarcodeHeight()\Zend_Barcode_Object_Code25interleaved::_calculateBarcodeHeight()| Type | Description |
|---|---|
| integer |

_calculateBarcodeWidth() : integerWidth of the barcode (in pixels)
Inherited from: \Zend_Barcode_Object_Code25interleaved::_calculateBarcodeWidth()| Type | Description |
|---|---|
| integer |

_calculateHeight() : integerHeight of the result object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_calculateHeight()\Zend_Barcode_Object_Code25::_calculateHeight()\Zend_Barcode_Object_Code25interleaved::_calculateHeight()| Type | Description |
|---|---|
| integer |

_calculateWidth() : integerWidth of the result image (before any rotation)
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_calculateWidth()\Zend_Barcode_Object_Code25::_calculateWidth()\Zend_Barcode_Object_Code25interleaved::_calculateWidth()| Type | Description |
|---|---|
| integer |

_checkFontAndOrientation() : voidDrawing with an angle is just allow TTF font
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_checkFontAndOrientation()\Zend_Barcode_Object_Code25::_checkFontAndOrientation()\Zend_Barcode_Object_Code25interleaved::_checkFontAndOrientation()- Throw

_checkParams() : voidPartial check of interleaved 2 of 5 barcode
Inherited from: \Zend_Barcode_Object_Code25::_checkParams()\Zend_Barcode_Object_Code25interleaved::_checkParams()
_checkRatio(integer $min = 2, integer $max = 3) : voidCheck the ratio between the thick and the thin bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_checkRatio()\Zend_Barcode_Object_Code25::_checkRatio()\Zend_Barcode_Object_Code25interleaved::_checkRatio()| Name | Type | Description |
|---|---|---|
| $min | integer | |
| $max | integer |
- Throw

_checkText( $value = null) : voidCheck if a text is really provided to barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_checkText()\Zend_Barcode_Object_Code25::_checkText()\Zend_Barcode_Object_Code25interleaved::_checkText()| Name | Type | Description |
|---|---|---|
| $value |
- Throw

_drawBarcode() : voidDraw the barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawBarcode()\Zend_Barcode_Object_Code25::_drawBarcode()\Zend_Barcode_Object_Code25interleaved::_drawBarcode()
_drawBorder() : voidPartial function to draw border
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawBorder()\Zend_Barcode_Object_Code25::_drawBorder()\Zend_Barcode_Object_Code25interleaved::_drawBorder()
_drawText() : voidPartial function to draw text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawText()\Zend_Barcode_Object_Code25::_drawText()\Zend_Barcode_Object_Code25interleaved::_drawText()
_postDrawBarcode() : voidDrawing of bearer bars (if enabled)
Inherited from: \Zend_Barcode_Object_Code25interleaved::_postDrawBarcode()
_preDrawBarcode() : voidAllow each child to draw something else
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_preDrawBarcode()\Zend_Barcode_Object_Code25::_preDrawBarcode()\Zend_Barcode_Object_Code25interleaved::_preDrawBarcode()
_prepareBarcode() : arrayPrepare array to draw barcode
Inherited from: \Zend_Barcode_Object_Code25interleaved::_prepareBarcode().. )
| Type | Description |
|---|---|
| array |

_rotate(float $x1, float $y1) : arrayApply rotation on a point in X/Y dimensions
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_rotate()\Zend_Barcode_Object_Code25::_rotate()\Zend_Barcode_Object_Code25interleaved::_rotate()| Name | Type | Description |
|---|---|---|
| $x1 | float | x-position before rotation |
| $y1 | float | y-position before rotation |
| Type | Description |
|---|---|
| array | Array of two elements corresponding to the new XY point |

_validateText(string $value, array $options = array()) : voidStandard validation for most of barcode objects
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_validateText()\Zend_Barcode_Object_Code25::_validateText()\Zend_Barcode_Object_Code25interleaved::_validateText()| Name | Type | Description |
|---|---|---|
| $value | string | |
| $options | array |

checkParams() : voidChecking of parameters after all settings
Inherited from: \Zend_Barcode_Object_ObjectAbstract::checkParams()\Zend_Barcode_Object_Code25::checkParams()\Zend_Barcode_Object_Code25interleaved::checkParams()
draw() : arrayComplete drawing of the barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::draw()\Zend_Barcode_Object_Code25::draw()\Zend_Barcode_Object_Code25interleaved::draw()| Type | Description |
|---|---|
| array | Table of instructions |

getBackgroundColor() : integerRetrieve background color of the image
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBackgroundColor()\Zend_Barcode_Object_Code25::getBackgroundColor()\Zend_Barcode_Object_Code25interleaved::getBackgroundColor()| Type | Description |
|---|---|
| integer |

getBarHeight() : integerGet height of the barcode bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBarHeight()\Zend_Barcode_Object_Code25::getBarHeight()\Zend_Barcode_Object_Code25interleaved::getBarHeight()| Type | Description |
|---|---|
| integer |

getBarThickWidth() : integerGet thickness of thick bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBarThickWidth()\Zend_Barcode_Object_Code25::getBarThickWidth()\Zend_Barcode_Object_Code25interleaved::getBarThickWidth()| Type | Description |
|---|---|
| integer |

getBarThinWidth() : integerGet thickness of thin bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBarThinWidth()\Zend_Barcode_Object_Code25::getBarThinWidth()\Zend_Barcode_Object_Code25interleaved::getBarThinWidth()| Type | Description |
|---|---|
| integer |

getBarcodeNamespace() : stringRetrieve barcode namespace
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getBarcodeNamespace()\Zend_Barcode_Object_Code25::getBarcodeNamespace()\Zend_Barcode_Object_Code25interleaved::getBarcodeNamespace()| Type | Description |
|---|---|
| string |

getChecksum(string $text) : intGet barcode checksum
| Name | Type | Description |
|---|---|---|
| $text | string |
| Type | Description |
|---|---|
| int |

getDrawText() : booleanRetrieve if drawing of text to encode is enabled
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getDrawText()\Zend_Barcode_Object_Code25::getDrawText()\Zend_Barcode_Object_Code25interleaved::getDrawText()| Type | Description |
|---|---|
| boolean |

getFactor() : integerGet factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFactor()\Zend_Barcode_Object_Code25::getFactor()\Zend_Barcode_Object_Code25interleaved::getFactor()| Type | Description |
|---|---|
| integer |

getFont() : integer | stringRetrieve the font
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFont()\Zend_Barcode_Object_Code25::getFont()\Zend_Barcode_Object_Code25interleaved::getFont()| Type | Description |
|---|---|
| integer | string |

getFontSize() : floatRetrieve the size of the font in case of TTF
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFontSize()\Zend_Barcode_Object_Code25::getFontSize()\Zend_Barcode_Object_Code25interleaved::getFontSize()| Type | Description |
|---|---|
| float |

getForeColor() : \unknownRetrieve color of the barcode and text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getForeColor()\Zend_Barcode_Object_Code25::getForeColor()\Zend_Barcode_Object_Code25interleaved::getForeColor()| Type | Description |
|---|---|
| \unknown |

getHeight( $recalculate = false) : integerGet height of the result object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getHeight()\Zend_Barcode_Object_Code25::getHeight()\Zend_Barcode_Object_Code25interleaved::getHeight()| Name | Type | Description |
|---|---|---|
| $recalculate |
| Type | Description |
|---|---|
| integer |

getInstructions() : arrayRetrieve the set of drawing instructions
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getInstructions()\Zend_Barcode_Object_Code25::getInstructions()\Zend_Barcode_Object_Code25interleaved::getInstructions()| Type | Description |
|---|---|
| array |

getOffsetLeft(boolean $recalculate = false) : floatCalculate the offset from the left of the object if an orientation is activated
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getOffsetLeft()\Zend_Barcode_Object_Code25::getOffsetLeft()\Zend_Barcode_Object_Code25interleaved::getOffsetLeft()| Name | Type | Description |
|---|---|---|
| $recalculate | boolean |
| Type | Description |
|---|---|
| float |

getOffsetTop(boolean $recalculate = false) : floatCalculate the offset from the top of the object if an orientation is activated
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getOffsetTop()\Zend_Barcode_Object_Code25::getOffsetTop()\Zend_Barcode_Object_Code25interleaved::getOffsetTop()| Name | Type | Description |
|---|---|---|
| $recalculate | boolean |
| Type | Description |
|---|---|
| float |

getOrientation() : floatRetrieve orientation of barcode and text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getOrientation()\Zend_Barcode_Object_Code25::getOrientation()\Zend_Barcode_Object_Code25interleaved::getOrientation()| Type | Description |
|---|---|
| float |

getQuietZone() : integerQuiet zone before first bar and after the last bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getQuietZone()\Zend_Barcode_Object_Code25::getQuietZone()\Zend_Barcode_Object_Code25interleaved::getQuietZone()| Type | Description |
|---|---|
| integer |

getRawText() : stringRetrieve text to encode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getRawText()\Zend_Barcode_Object_Code25::getRawText()\Zend_Barcode_Object_Code25interleaved::getRawText()| Type | Description |
|---|---|
| string |

getStretchText() : booleanRetrieve if the adjustment of the position of the characters to the position of the bars is enabled
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getStretchText()\Zend_Barcode_Object_Code25::getStretchText()\Zend_Barcode_Object_Code25interleaved::getStretchText()| Type | Description |
|---|---|
| boolean |

getText() : stringRetrieve text to encode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getText()\Zend_Barcode_Object_Code25::getText()\Zend_Barcode_Object_Code25interleaved::getText()| Type | Description |
|---|---|
| string |

getType() : stringRetrieve type of barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getType()\Zend_Barcode_Object_Code25::getType()\Zend_Barcode_Object_Code25interleaved::getType()| Type | Description |
|---|---|
| string |

getWidth( $recalculate = false) : integerGet width of the result object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWidth()\Zend_Barcode_Object_Code25::getWidth()\Zend_Barcode_Object_Code25interleaved::getWidth()| Name | Type | Description |
|---|---|---|
| $recalculate |
| Type | Description |
|---|---|
| integer |

getWithBearerBars() : booleanRetrieve if bearer bars are enabled
Inherited from: \Zend_Barcode_Object_Code25interleaved::getWithBearerBars()| Type | Description |
|---|---|
| boolean |

getWithBorder() : booleanRetrieve if border are draw or not
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithBorder()\Zend_Barcode_Object_Code25::getWithBorder()\Zend_Barcode_Object_Code25interleaved::getWithBorder()| Type | Description |
|---|---|
| boolean |

getWithChecksum() : booleanRetrieve if the checksum character is automatically added to the barcode text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithChecksum()\Zend_Barcode_Object_Code25::getWithChecksum()\Zend_Barcode_Object_Code25interleaved::getWithChecksum()| Type | Description |
|---|---|
| boolean |

getWithChecksumInText() : booleanRetrieve if the checksum character is automatically added to the barcode text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithChecksumInText()\Zend_Barcode_Object_Code25::getWithChecksumInText()\Zend_Barcode_Object_Code25interleaved::getWithChecksumInText()| Type | Description |
|---|---|
| boolean |

getWithQuietZones() : booleanRetrieve if quiet zones are draw or not
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithQuietZones()\Zend_Barcode_Object_Code25::getWithQuietZones()\Zend_Barcode_Object_Code25interleaved::getWithQuietZones()| Type | Description |
|---|---|
| boolean |

setBackgroundColor(integer $value) : \Zend_Barcode_ObjectSet the color of the background
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBackgroundColor()\Zend_Barcode_Object_Code25::setBackgroundColor()\Zend_Barcode_Object_Code25interleaved::setBackgroundColor()| Name | Type | Description |
|---|---|---|
| $value | integer |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setBarHeight(integer $value) : \Zend_Barcode_ObjectSet height of the barcode bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarHeight()\Zend_Barcode_Object_Code25::setBarHeight()\Zend_Barcode_Object_Code25interleaved::setBarHeight()| Name | Type | Description |
|---|---|---|
| $value | integer |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setBarThickWidth(integer $value) : \Zend_Barcode_ObjectSet thickness of thick bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarThickWidth()\Zend_Barcode_Object_Code25::setBarThickWidth()\Zend_Barcode_Object_Code25interleaved::setBarThickWidth()| Name | Type | Description |
|---|---|---|
| $value | integer |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setBarThinWidth(integer $value) : \Zend_Barcode_ObjectSet thickness of thin bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarThinWidth()\Zend_Barcode_Object_Code25::setBarThinWidth()\Zend_Barcode_Object_Code25interleaved::setBarThinWidth()| Name | Type | Description |
|---|---|---|
| $value | integer |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setBarcodeFont(string $font) : voidSet the font for all instances of barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarcodeFont()\Zend_Barcode_Object_Code25::setBarcodeFont()\Zend_Barcode_Object_Code25interleaved::setBarcodeFont()| Name | Type | Description |
|---|---|---|
| $font | string |

setBarcodeNamespace(string $namespace) : \Zend_Barcode_ObjectSet barcode namespace for autoloading
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarcodeNamespace()\Zend_Barcode_Object_Code25::setBarcodeNamespace()\Zend_Barcode_Object_Code25interleaved::setBarcodeNamespace()| Name | Type | Description |
|---|---|---|
| $namespace | string |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |

setConfig(\Zend_Config $config) : \Zend_Barcode_ObjectSet barcode state from config object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setConfig()\Zend_Barcode_Object_Code25::setConfig()\Zend_Barcode_Object_Code25interleaved::setConfig()| Name | Type | Description |
|---|---|---|
| $config | \Zend_Config |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |

setDrawText(boolean $value) : \Zend_Barcode_ObjectActivate/deactivate drawing of text to encode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setDrawText()\Zend_Barcode_Object_Code25::setDrawText()\Zend_Barcode_Object_Code25interleaved::setDrawText()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |

setFactor(float $value) : \Zend_Barcode_ObjectSet factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setFactor()\Zend_Barcode_Object_Code25::setFactor()\Zend_Barcode_Object_Code25interleaved::setFactor()| Name | Type | Description |
|---|---|---|
| $value | float |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setFont(integer | string $value) : \Zend_Barcode_ObjectSet 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()\Zend_Barcode_Object_Code25::setFont()\Zend_Barcode_Object_Code25interleaved::setFont()| Name | Type | Description |
|---|---|---|
| $value | integer | string |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setFontSize(float $value) : \Zend_Barcode_ObjectSet the size of the font in case of TTF
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setFontSize()\Zend_Barcode_Object_Code25::setFontSize()\Zend_Barcode_Object_Code25interleaved::setFontSize()| Name | Type | Description |
|---|---|---|
| $value | float |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setForeColor(string $value) : \Zend_Barcode_ObjectSet color of the barcode and text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setForeColor()\Zend_Barcode_Object_Code25::setForeColor()\Zend_Barcode_Object_Code25interleaved::setForeColor()| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setOptions(array $options) : \Zend_Barcode_ObjectSet barcode state from options array
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setOptions()\Zend_Barcode_Object_Code25::setOptions()\Zend_Barcode_Object_Code25interleaved::setOptions()| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |

setOrientation(float $value) : \Zend_Barcode_ObjectSet orientation of barcode and text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setOrientation()\Zend_Barcode_Object_Code25::setOrientation()\Zend_Barcode_Object_Code25interleaved::setOrientation()| Name | Type | Description |
|---|---|---|
| $value | float |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setReverseColor() : \Zend_Barcode_ObjectAllow fast inversion of font/bars color and background color
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setReverseColor()\Zend_Barcode_Object_Code25::setReverseColor()\Zend_Barcode_Object_Code25interleaved::setReverseColor()| Type | Description |
|---|---|
| \Zend_Barcode_Object |

setStretchText(boolean $value) : \Zend_Barcode_ObjectActivate/deactivate the adjustment of the position of the characters to the position of the bars
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setStretchText()\Zend_Barcode_Object_Code25::setStretchText()\Zend_Barcode_Object_Code25interleaved::setStretchText()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setText(string $value) : \Zend_Barcode_ObjectSet text to encode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setText()\Zend_Barcode_Object_Code25::setText()\Zend_Barcode_Object_Code25interleaved::setText()| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |

setWithBearerBars(boolean $value) : \Zend_Barcode_Object_Int25Activate/deactivate drawing of bearer bars
Inherited from: \Zend_Barcode_Object_Code25interleaved::setWithBearerBars()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object_Int25 |

setWithBorder(boolean $value) : \Zend_Barcode_ObjectActivate/deactivate drawing of the bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithBorder()\Zend_Barcode_Object_Code25::setWithBorder()\Zend_Barcode_Object_Code25interleaved::setWithBorder()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |

setWithChecksum(boolean $value) : \Zend_Barcode_ObjectActivate/deactivate the automatic generation of the checksum character added to the barcode text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithChecksum()\Zend_Barcode_Object_Code25::setWithChecksum()\Zend_Barcode_Object_Code25interleaved::setWithChecksum()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |

setWithChecksumInText(boolean $value) : \Zend_Barcode_ObjectActivate/deactivate the automatic generation of the checksum character added to the barcode text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithChecksumInText()\Zend_Barcode_Object_Code25::setWithChecksumInText()\Zend_Barcode_Object_Code25interleaved::setWithChecksumInText()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
- Throw

setWithQuietZones(boolean $value) : \Zend_Barcode_ObjectActivate/deactivate drawing of the quiet zones
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithQuietZones()\Zend_Barcode_Object_Code25::setWithQuietZones()\Zend_Barcode_Object_Code25interleaved::setWithQuietZones()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |