Barcode/Object/Code25interleaved.php
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 [email protected] 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: Code25interleaved.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Barcode_Object_Code25interleaved
Class for generate Interleaved 2 of 5 barcode
- Parent(s)
- \Zend_Barcode_Object_Code25 < \Zend_Barcode_Object_ObjectAbstract
- Children
- \Zend_Barcode_Object_Itf14
- \Zend_Barcode_Object_Identcode
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

\$_addLeadingZeros $_addLeadingZeros = trueActivate automatic addition of leading zeros if barcode length is fixed
<p>boolean</p>Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_addLeadingZeros\Zend_Barcode_Object_Code25::$$_addLeadingZerostrueDetails- Type
- \$_addLeadingZeros
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_addLeadingZeros
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_addLeadingZeros

integer $_backgroundColor = 16777215Background color of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_backgroundColor\Zend_Barcode_Object_Code25::$$_backgroundColor16777215Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_backgroundColor
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_backgroundColor

integer $_barHeight = 50Height of the bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barHeight\Zend_Barcode_Object_Code25::$$_barHeight50Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barHeight
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barHeight

integer $_barThickWidth = 3Width of a thick bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barThickWidth\Zend_Barcode_Object_Code25::$$_barThickWidth3Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barThickWidth
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barThickWidth

integer $_barThinWidth = 1Width of a thin bar
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barThinWidth\Zend_Barcode_Object_Code25::$$_barThinWidth1Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barThinWidth
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barThinWidth

\$_barcodeLength $_barcodeLength = nullFix barcode length (numeric or string like 'even')
<p>integer | string</p>Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barcodeLength\Zend_Barcode_Object_Code25::$$_barcodeLengthnullDetails- Type
- \$_barcodeLength
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barcodeLength
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barcodeLength

string $_barcodeNamespace = 'Zend_Barcode_Object'Namespace of the barcode for autoloading
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barcodeNamespace\Zend_Barcode_Object_Code25::$$_barcodeNamespace'Zend_Barcode_Object'Details- Type
- string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_barcodeNamespace
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_barcodeNamespace

array $_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
Inherited from: \Zend_Barcode_Object_Code25::$$_codingMaparray('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

boolean $_drawText = trueDisplay (or not) human readable text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_drawText\Zend_Barcode_Object_Code25::$$_drawTexttrueDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_drawText
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_drawText

integer $_factor = 1Factor to multiply bar and font measure (barHeight, barThinWidth, barThickWidth & fontSize)
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_factor\Zend_Barcode_Object_Code25::$$_factor1Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_factor
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_factor

integer|string $_font = nullFont 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\Zend_Barcode_Object_Code25::$$_fontnullDetails- Type
- integer | string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_font
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_font

float $_fontSize = 10Font size
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_fontSize\Zend_Barcode_Object_Code25::$$_fontSize10Details- Type
- float
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_fontSize
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_fontSize

integer $_foreColor = 0Font and bars color of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_foreColor\Zend_Barcode_Object_Code25::$$_foreColor0Details- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_foreColor
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_foreColor

integer $_height = nullHeight of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_height\Zend_Barcode_Object_Code25::$$_heightnullDetails- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_height
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_height

array $_instructions = array()Set of drawing instructions
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_instructions\Zend_Barcode_Object_Code25::$$_instructionsarray()Details- Type
- array
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_instructions
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_instructions

\$_mandatoryChecksum $_mandatoryChecksum = falseActivation of mandatory checksum to deactivate unauthorized modification
<p>boolean</p>Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryChecksum\Zend_Barcode_Object_Code25::$$_mandatoryChecksumfalseDetails- Type
- \$_mandatoryChecksum
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryChecksum
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_mandatoryChecksum

boolean $_mandatoryQuietZones = falseForce quiet zones even if
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryQuietZones\Zend_Barcode_Object_Code25::$$_mandatoryQuietZonesfalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryQuietZones
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_mandatoryQuietZones

integer $_offsetLeft = nullOffset from the left the object (calculated from the orientation)
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_offsetLeft\Zend_Barcode_Object_Code25::$$_offsetLeftnullDetails- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_offsetLeft
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_offsetLeft

integer $_offsetTop = nullOffset from the top the object (calculated from the orientation)
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_offsetTop\Zend_Barcode_Object_Code25::$$_offsetTopnullDetails- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_offsetTop
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_offsetTop

float $_orientation = 0Orientation of the barcode in degrees
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_orientation\Zend_Barcode_Object_Code25::$$_orientation0Details- Type
- float
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_orientation
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_orientation

string $_staticFont = nullTTF font name: can be set before instanciation of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_staticFont\Zend_Barcode_Object_Code25::$$_staticFontnullDetails- Type
- string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_staticFont
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_staticFont

boolean $_stretchText = falseAdjust (or not) position of human readable characters with barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_stretchText\Zend_Barcode_Object_Code25::$$_stretchTextfalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_stretchText
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_stretchText

\$_substituteChecksumCharacter $_substituteChecksumCharacter = 0Character used to substitute checksum character for validation
<p>mixed</p>Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_substituteChecksumCharacter\Zend_Barcode_Object_Code25::$$_substituteChecksumCharacter0Details- Type
- \$_substituteChecksumCharacter
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_substituteChecksumCharacter
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_substituteChecksumCharacter

string $_text = nullText to display
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_text\Zend_Barcode_Object_Code25::$$_textnullDetails- Type
- string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_text
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_text

string $_type = nullBarcode type
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_type\Zend_Barcode_Object_Code25::$$_typenullDetails- Type
- string
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_type
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_type

integer $_width = nullWidth of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_width\Zend_Barcode_Object_Code25::$$_widthnullDetails- Type
- integer
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_width
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_width

boolean $_withBorder = falseActivate/deactivate border of the object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withBorder\Zend_Barcode_Object_Code25::$$_withBorderfalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_withBorder
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_withBorder

boolean $_withChecksum = falseDrawing of checksum
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withChecksum\Zend_Barcode_Object_Code25::$$_withChecksumfalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_withChecksum
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_withChecksum

boolean $_withChecksumInText = falseDrawing of checksum inside text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withChecksumInText\Zend_Barcode_Object_Code25::$$_withChecksumInTextfalseDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_withChecksumInText
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_withChecksumInText

boolean $_withQuietZones = trueActivate/deactivate drawing of quiet zones
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withQuietZones\Zend_Barcode_Object_Code25::$$_withQuietZonestrueDetails- Type
- boolean
- Inherited_from
- \Zend_Barcode_Object_ObjectAbstract::$$_withQuietZones
- Inherited_from
- \Zend_Barcode_Object_Code25::$$_withQuietZones
Methods

__construct(array | \Zend_Config $options = null) : voidConstructor
Inherited from: \Zend_Barcode_Object_ObjectAbstract::__construct()\Zend_Barcode_Object_Code25::__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()| 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()| 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()| 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()| 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()| Type | Description |
|---|---|
| integer |

_calculateHeight() : integerHeight of the result object
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_calculateHeight()\Zend_Barcode_Object_Code25::_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()| 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()| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

_checkParams() : voidPartial check of interleaved 2 of 5 barcode
Inherited from: \Zend_Barcode_Object_Code25::_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()| Name | Type | Description |
|---|---|---|
| $min | integer | |
| $max | integer |
| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

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

_drawBarcode() : voidDraw the barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawBarcode()\Zend_Barcode_Object_Code25::_drawBarcode()
_drawBorder() : voidPartial function to draw border
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawBorder()\Zend_Barcode_Object_Code25::_drawBorder()
_drawText() : voidPartial function to draw text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_drawText()\Zend_Barcode_Object_Code25::_drawText()
_preDrawBarcode() : voidAllow each child to draw something else
Inherited from: \Zend_Barcode_Object_ObjectAbstract::_preDrawBarcode()\Zend_Barcode_Object_Code25::_preDrawBarcode()
_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()| 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()| 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()
draw() : arrayComplete drawing of the barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::draw()\Zend_Barcode_Object_Code25::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()| Type | Description |
|---|---|
| integer |

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

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

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

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

getChecksum(string $text) : int
| 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()| Type | Description |
|---|---|
| boolean |

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

getFont() : integer | stringRetrieve the font
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFont()\Zend_Barcode_Object_Code25::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()| Type | Description |
|---|---|
| float |

getForeColor() : \unknownRetrieve color of the barcode and text
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getForeColor()\Zend_Barcode_Object_Code25::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()| 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()| 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()| 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()| 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()| 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()| Type | Description |
|---|---|
| integer |

getRawText() : stringRetrieve text to encode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getRawText()\Zend_Barcode_Object_Code25::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()| Type | Description |
|---|---|
| boolean |

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

getTextToDisplay() : stringRetrieve text to display
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getTextToDisplay()\Zend_Barcode_Object_Code25::getTextToDisplay()| Type | Description |
|---|---|
| string |

getType() : stringRetrieve type of barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getType()\Zend_Barcode_Object_Code25::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()| Name | Type | Description |
|---|---|---|
| $recalculate |
| Type | Description |
|---|---|
| integer |

getWithBorder() : booleanRetrieve if border are draw or not
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithBorder()\Zend_Barcode_Object_Code25::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()| 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()| Type | Description |
|---|---|
| boolean |

getWithQuietZones() : booleanRetrieve if quiet zones are draw or not
Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithQuietZones()\Zend_Barcode_Object_Code25::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()| Name | Type | Description |
|---|---|---|
| $value | integer |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

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

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

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

setBarcodeFont(string $font) : voidSet the font for all instances of barcode
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarcodeFont()\Zend_Barcode_Object_Code25::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()| 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()| 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()| 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()| Name | Type | Description |
|---|---|---|
| $value | float |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

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()| Name | Type | Description |
|---|---|---|
| $value | integer | string |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

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()| Name | Type | Description |
|---|---|---|
| $value | float |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

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

setOptions(array $options) : \Zend_Barcode_ObjectSet barcode state from options array
Inherited from: \Zend_Barcode_Object_ObjectAbstract::setOptions()\Zend_Barcode_Object_Code25::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()| Name | Type | Description |
|---|---|---|
| $value | float |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

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()| 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()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

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

setWithBearerBars(boolean $value) : \Zend_Barcode_Object_Int25Activate/deactivate drawing of bearer bars
| 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()| 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()| 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()| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Barcode_Object |
| Exception | Description |
|---|---|
| \Zend_Barcode_Object_Exception |

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

validateText(string $value) : voidCheck for invalid characters
Inherited from: \Zend_Barcode_Object_ObjectAbstract::validateText()\Zend_Barcode_Object_Code25::validateText()| Name | Type | Description |
|---|---|---|
| $value | string | Text to be ckecked |