Barcode/Object/Ean8.php

Show: inherited
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 [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: Ean8.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Barcode_Object_Ean8

Package: Zend\Barcode

Class for generate Ean8 barcode

Parent(s)
\Zend_Barcode_Object_Ean13 < \Zend_Barcode_Object_ObjectAbstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotected\$_addLeadingZeros $_addLeadingZeros = true
inherited

Activate automatic addition of leading zeros if barcode length is fixed

<p>boolean</p>Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_addLeadingZeros\Zend_Barcode_Object_Ean13::$$_addLeadingZeros
Default valuetrueDetails
Type
\$_addLeadingZeros
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_addLeadingZeros  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_addLeadingZeros  
Propertyprotectedinteger $_backgroundColor = 16777215
Default value16777215Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_backgroundColor  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_backgroundColor  
Propertyprotectedinteger $_barHeight = 50
Default value50Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barHeight  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_barHeight  
Propertyprotectedinteger $_barThickWidth = 3
Default value3Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barThickWidth  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_barThickWidth  
Propertyprotectedinteger $_barThinWidth = 1
Default value1Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barThinWidth  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_barThinWidth  
Propertyprotected\$_barcodeLength $_barcodeLength = null
inherited

Fix barcode length (numeric or string like 'even')

<p>integer | string</p>Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_barcodeLength\Zend_Barcode_Object_Ean13::$$_barcodeLength
Default valuenullDetails
Type
\$_barcodeLength
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barcodeLength  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_barcodeLength  
Propertyprotectedstring $_barcodeNamespace = 'Zend_Barcode_Object'
Default value'Zend_Barcode_Object'Details
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barcodeNamespace  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_barcodeNamespace  
Propertyprotectedarray $_codingMap = array('A' => array(0 => "0001101", 1 => "0011001", 2 => "0010011", 3 => "0111101", 4 => "0100011", 5 => "0110001", 6 => "0101111", 7 => "0111011", 8 => "0110111", 9 => "0001011"), 'B' => array(0 => "0100111", 1 => "0110011", 2 => "0011011", 3 => "0100001", 4 => "0011101", 5 => "0111001", 6 => "0000101", 7 => "0010001", 8 => "0001001", 9 => "0010111"), 'C' => array(0 => "1110010", 1 => "1100110", 2 => "1101100", 3 => "1000010", 4 => "1011100", 5 => "1001110", 6 => "1010000", 7 => "1000100", 8 => "1001000", 9 => "1110100"))
inherited

Coding map - 0 = narrow bar - 1 = wide bar

Inherited from: \Zend_Barcode_Object_Ean13::$$_codingMap
Default valuearray('A' => array(0 => "0001101", 1 => "0011001", 2 => "0010011", 3 => "0111101", 4 => "0100011", 5 => "0110001", 6 => "0101111", 7 => "0111011", 8 => "0110111", 9 => "0001011"), 'B' => array(0 => "0100111", 1 => "0110011", 2 => "0011011", 3 => "0100001", 4 => "0011101", 5 => "0111001", 6 => "0000101", 7 => "0010001", 8 => "0001001", 9 => "0010111"), 'C' => array(0 => "1110010", 1 => "1100110", 2 => "1101100", 3 => "1000010", 4 => "1011100", 5 => "1001110", 6 => "1010000", 7 => "1000100", 8 => "1001000", 9 => "1110100"))Details
Type
array
Inherited_from
\Zend_Barcode_Object_Ean13::$$_codingMap  
Propertyprotectedboolean $_drawText = true
inherited

Display (or not) human readable text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_drawText\Zend_Barcode_Object_Ean13::$$_drawText
Default valuetrueDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_drawText  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_drawText  
Propertyprotectedinteger $_factor = 1
inherited

Factor to multiply bar and font measure (barHeight, barThinWidth, barThickWidth & fontSize)

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_factor\Zend_Barcode_Object_Ean13::$$_factor
Default value1Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_factor  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_factor  
Propertyprotectedinteger|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\Zend_Barcode_Object_Ean13::$$_font
Default valuenullDetails
Type
integer | string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_font  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_font  
Propertyprotectedfloat $_fontSize = 10
Default value10Details
Type
float
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_fontSize  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_fontSize  
Propertyprotectedinteger $_foreColor = 0
inherited

Font and bars color of the object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_foreColor\Zend_Barcode_Object_Ean13::$$_foreColor
Default value0Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_foreColor  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_foreColor  
Propertyprotectedinteger $_height = null
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_height  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_height  
Propertyprotectedarray $_instructions = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_instructions  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_instructions  
Propertyprotected\$_mandatoryChecksum $_mandatoryChecksum = false
inherited

Activation of mandatory checksum to deactivate unauthorized modification

<p>boolean</p>Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_mandatoryChecksum\Zend_Barcode_Object_Ean13::$$_mandatoryChecksum
Default valuefalseDetails
Type
\$_mandatoryChecksum
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_mandatoryChecksum  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_mandatoryChecksum  
Propertyprotectedboolean $_mandatoryQuietZones = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_mandatoryQuietZones  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_mandatoryQuietZones  
Propertyprotectedinteger $_offsetLeft = null
inherited

Offset from the left the object (calculated from the orientation)

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_offsetLeft\Zend_Barcode_Object_Ean13::$$_offsetLeft
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_offsetLeft  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_offsetLeft  
Propertyprotectedinteger $_offsetTop = null
inherited

Offset from the top the object (calculated from the orientation)

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_offsetTop\Zend_Barcode_Object_Ean13::$$_offsetTop
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_offsetTop  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_offsetTop  
Propertyprotectedfloat $_orientation = 0
inherited

Orientation of the barcode in degrees

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_orientation\Zend_Barcode_Object_Ean13::$$_orientation
Default value0Details
Type
float
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_orientation  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_orientation  
Propertyprotected$_parities = array(0 => array('A', 'A', 'A', 'A', 'A', 'A'), 1 => array('A', 'A', 'B', 'A', 'B', 'B'), 2 => array('A', 'A', 'B', 'B', 'A', 'B'), 3 => array('A', 'A', 'B', 'B', 'B', 'A'), 4 => array('A', 'B', 'A', 'A', 'B', 'B'), 5 => array('A', 'B', 'B', 'A', 'A', 'B'), 6 => array('A', 'B', 'B', 'B', 'A', 'A'), 7 => array('A', 'B', 'A', 'B', 'A', 'B'), 8 => array('A', 'B', 'A', 'B', 'B', 'A'), 9 => array('A', 'B', 'B', 'A', 'B', 'A'))
inheritedInherited from: \Zend_Barcode_Object_Ean13::$$_parities
Default valuearray(0 => array('A', 'A', 'A', 'A', 'A', 'A'), 1 => array('A', 'A', 'B', 'A', 'B', 'B'), 2 => array('A', 'A', 'B', 'B', 'A', 'B'), 3 => array('A', 'A', 'B', 'B', 'B', 'A'), 4 => array('A', 'B', 'A', 'A', 'B', 'B'), 5 => array('A', 'B', 'B', 'A', 'A', 'B'), 6 => array('A', 'B', 'B', 'B', 'A', 'A'), 7 => array('A', 'B', 'A', 'B', 'A', 'B'), 8 => array('A', 'B', 'A', 'B', 'B', 'A'), 9 => array('A', 'B', 'B', 'A', 'B', 'A'))Details
Type
n/a
Inherited_from
\Zend_Barcode_Object_Ean13::$$_parities  
Propertyprotectedstring $_staticFont = null
staticinherited

TTF font name: can be set before instanciation of the object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_staticFont\Zend_Barcode_Object_Ean13::$$_staticFont
Default valuenullDetails
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_staticFont  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_staticFont  
Propertyprotectedboolean $_stretchText = false
inherited

Adjust (or not) position of human readable characters with barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_stretchText\Zend_Barcode_Object_Ean13::$$_stretchText
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_stretchText  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_stretchText  
Propertyprotected\$_substituteChecksumCharacter $_substituteChecksumCharacter = 0
inherited

Character used to substitute checksum character for validation

<p>mixed</p>Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_substituteChecksumCharacter\Zend_Barcode_Object_Ean13::$$_substituteChecksumCharacter
Default value0Details
Type
\$_substituteChecksumCharacter
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_substituteChecksumCharacter  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_substituteChecksumCharacter  
Propertyprotectedstring $_text = null
Default valuenullDetails
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_text  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_text  
Propertyprotectedstring $_type = null
Default valuenullDetails
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_type  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_type  
Propertyprotectedinteger $_width = null
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_width  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_width  
Propertyprotectedboolean $_withBorder = false
inherited

Activate/deactivate border of the object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withBorder\Zend_Barcode_Object_Ean13::$$_withBorder
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withBorder  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_withBorder  
Propertyprotectedboolean $_withChecksum = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withChecksum  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_withChecksum  
Propertyprotectedboolean $_withChecksumInText = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withChecksumInText  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_withChecksumInText  
Propertyprotectedboolean $_withQuietZones = true
inherited

Activate/deactivate drawing of quiet zones

Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_withQuietZones\Zend_Barcode_Object_Ean13::$$_withQuietZones
Default valuetrueDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withQuietZones  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_withQuietZones  

Methods

methodpublic__construct(array | \Zend_Config $options = null) : void
Parameters
Name Type Description
$options array | \Zend_Config
methodprotected_addInstruction(array $instruction) : void
inherited

Add an instruction in the array of instructions

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_addInstruction()\Zend_Barcode_Object_Ean13::_addInstruction()
Parameters
Name Type Description
$instruction array
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()\Zend_Barcode_Object_Ean13::_addLeadingZeros()
Parameters
Name Type Description
$text string
$withoutChecksum boolean
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()\Zend_Barcode_Object_Ean13::_addPolygon()
Parameters
Name Type Description
$points array
$color integer
$filled boolean
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()\Zend_Barcode_Object_Ean13::_addText()
Parameters
Name Type Description
$text string
$size float
$position array
$font string
$color integer
$alignment string
$orientation float
methodprotected_calculateBarcodeHeight() : integer
Returns
Type Description
integer
methodprotected_calculateBarcodeWidth() : integer

Width of the barcode (in pixels)

Returns
Type Description
integer
methodprotected_calculateHeight() : integer
Returns
Type Description
integer
methodprotected_calculateWidth() : integer
inherited

Width of the result image (before any rotation)

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_calculateWidth()\Zend_Barcode_Object_Ean13::_calculateWidth()
Returns
Type Description
integer
methodprotected_checkFontAndOrientation() : void
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodprotected_checkParams() : void
inherited

Partial check of interleaved EAN/UPC barcode

Inherited from: \Zend_Barcode_Object_Ean13::_checkParams()
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()\Zend_Barcode_Object_Ean13::_checkRatio()
Parameters
Name Type Description
$min integer
$max integer
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodprotected_checkText( $value = null) : void
inherited

Check if a text is really provided to barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_checkText()\Zend_Barcode_Object_Ean13::_checkText()
Parameters
Name Type Description
$value
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodprotected_drawBarcode() : void
methodprotected_drawBorder() : void
methodprotected_drawEan13Text() : void
methodprotected_drawText() : void

Partial function to draw text

methodprotected_getDefaultOptions() : void

Default options for Postnet barcode

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()\Zend_Barcode_Object_Ean13::_postDrawBarcode()
methodprotected_preDrawBarcode() : void
inherited

Allow each child to draw something else

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

Prepare array to draw barcode

.. )

Returns
Type Description
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()\Zend_Barcode_Object_Ean13::_rotate()
Parameters
Name Type Description
$x1 float

x-position before rotation

$y1 float

y-position before rotation

Returns
Type Description
array Array of two elements corresponding to the new XY point
methodprotected_validateText(string $value, array $options = array()) : void

Particular validation for Ean8 barcode objects (to suppress checksum character substitution)

Parameters
Name Type Description
$value string
$options array
methodpubliccheckParams() : void
inherited

Checking of parameters after all settings

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

Complete drawing of the barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::draw()\Zend_Barcode_Object_Ean13::draw()
Returns
Type Description
array Table of instructions
methodpublicgetBackgroundColor() : integer
Returns
Type Description
integer
methodpublicgetBarHeight() : integer
Returns
Type Description
integer
methodpublicgetBarThickWidth() : integer
Returns
Type Description
integer
methodpublicgetBarThinWidth() : integer
Returns
Type Description
integer
methodpublicgetBarcodeNamespace() : string
Returns
Type Description
string
methodpublicgetChecksum(string $text) : int
inherited

Get barcode checksum

Inherited from: \Zend_Barcode_Object_Ean13::getChecksum()
Parameters
Name Type Description
$text string
Returns
Type Description
int
methodpublicgetDrawText() : boolean
inherited

Retrieve if drawing of text to encode is enabled

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getDrawText()\Zend_Barcode_Object_Ean13::getDrawText()
Returns
Type Description
boolean
methodpublicgetFactor() : integer
inherited

Get factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFactor()\Zend_Barcode_Object_Ean13::getFactor()
Returns
Type Description
integer
methodpublicgetFont() : integer | string
Returns
Type Description
integer | string
methodpublicgetFontSize() : float
inherited

Retrieve the size of the font in case of TTF

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getFontSize()\Zend_Barcode_Object_Ean13::getFontSize()
Returns
Type Description
float
methodpublicgetForeColor() : \unknown
inherited

Retrieve color of the barcode and text

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

Get height of the result object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getHeight()\Zend_Barcode_Object_Ean13::getHeight()
Parameters
Name Type Description
$recalculate
Returns
Type Description
integer
methodpublicgetInstructions() : array
inherited

Retrieve the set of drawing instructions

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getInstructions()\Zend_Barcode_Object_Ean13::getInstructions()
Returns
Type Description
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()\Zend_Barcode_Object_Ean13::getOffsetLeft()
Parameters
Name Type Description
$recalculate boolean
Returns
Type Description
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()\Zend_Barcode_Object_Ean13::getOffsetTop()
Parameters
Name Type Description
$recalculate boolean
Returns
Type Description
float
methodpublicgetOrientation() : float
inherited

Retrieve orientation of barcode and text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getOrientation()\Zend_Barcode_Object_Ean13::getOrientation()
Returns
Type Description
float
methodpublicgetQuietZone() : integer
inherited

Quiet zone before first bar and after the last bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getQuietZone()\Zend_Barcode_Object_Ean13::getQuietZone()
Returns
Type Description
integer
methodpublicgetRawText() : string
Returns
Type Description
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()\Zend_Barcode_Object_Ean13::getStretchText()
Returns
Type Description
boolean
methodpublicgetText() : string
Returns
Type Description
string
methodpublicgetTextToDisplay() : string
Returns
Type Description
string
methodpublicgetType() : string
Returns
Type Description
string
methodpublicgetWidth( $recalculate = false) : integer
inherited

Get width of the result object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWidth()\Zend_Barcode_Object_Ean13::getWidth()
Parameters
Name Type Description
$recalculate
Returns
Type Description
integer
methodpublicgetWithBorder() : boolean
Returns
Type Description
boolean
methodpublicgetWithChecksum() : boolean
inherited

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

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithChecksum()\Zend_Barcode_Object_Ean13::getWithChecksum()
Returns
Type Description
boolean
methodpublicgetWithChecksumInText() : boolean
inherited

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

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithChecksumInText()\Zend_Barcode_Object_Ean13::getWithChecksumInText()
Returns
Type Description
boolean
methodpublicgetWithQuietZones() : boolean
Returns
Type Description
boolean
methodpublicsetBackgroundColor(integer $value) : \Zend_Barcode_Object
Parameters
Name Type Description
$value integer
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetBarHeight(integer $value) : \Zend_Barcode_Object
Parameters
Name Type Description
$value integer
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetBarThickWidth(integer $value) : \Zend_Barcode_Object
Parameters
Name Type Description
$value integer
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetBarThinWidth(integer $value) : \Zend_Barcode_Object
Parameters
Name Type Description
$value integer
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetBarcodeFont(string $font) : void
staticinherited

Set the font for all instances of barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarcodeFont()\Zend_Barcode_Object_Ean13::setBarcodeFont()
Parameters
Name Type Description
$font string
methodpublicsetBarcodeNamespace(string $namespace) : \Zend_Barcode_Object
Parameters
Name Type Description
$namespace string
Returns
Type Description
\Zend_Barcode_Object
methodpublicsetConfig(\Zend_Config $config) : \Zend_Barcode_Object
inherited

Set barcode state from config object

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setConfig()\Zend_Barcode_Object_Ean13::setConfig()
Parameters
Name Type Description
$config \Zend_Config
Returns
Type Description
\Zend_Barcode_Object
methodpublicsetDrawText(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate drawing of text to encode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setDrawText()\Zend_Barcode_Object_Ean13::setDrawText()
Parameters
Name Type Description
$value boolean
Returns
Type Description
\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()\Zend_Barcode_Object_Ean13::setFactor()
Parameters
Name Type Description
$value float
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
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()\Zend_Barcode_Object_Ean13::setFont()
Parameters
Name Type Description
$value integer | string
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetFontSize(float $value) : \Zend_Barcode_Object
inherited

Set the size of the font in case of TTF

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setFontSize()\Zend_Barcode_Object_Ean13::setFontSize()
Parameters
Name Type Description
$value float
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetForeColor(string $value) : \Zend_Barcode_Object
Parameters
Name Type Description
$value string
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetOptions(array $options) : \Zend_Barcode_Object
inherited

Set barcode state from options array

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setOptions()\Zend_Barcode_Object_Ean13::setOptions()
Parameters
Name Type Description
$options array
Returns
Type Description
\Zend_Barcode_Object
methodpublicsetOrientation(float $value) : \Zend_Barcode_Object
Parameters
Name Type Description
$value float
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetReverseColor() : \Zend_Barcode_Object
inherited

Allow fast inversion of font/bars color and background color

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setReverseColor()\Zend_Barcode_Object_Ean13::setReverseColor()
Returns
Type Description
\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()\Zend_Barcode_Object_Ean13::setStretchText()
Parameters
Name Type Description
$value boolean
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetText(string $value) : \Zend_Barcode_Object
Parameters
Name Type Description
$value string
Returns
Type Description
\Zend_Barcode_Object
methodpublicsetWithBorder(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate drawing of the bar

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithBorder()\Zend_Barcode_Object_Ean13::setWithBorder()
Parameters
Name Type Description
$value boolean
Returns
Type Description
\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()\Zend_Barcode_Object_Ean13::setWithChecksum()
Parameters
Name Type Description
$value boolean
Returns
Type Description
\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()\Zend_Barcode_Object_Ean13::setWithChecksumInText()
Parameters
Name Type Description
$value boolean
Returns
Type Description
\Zend_Barcode_Object
Throws
Exception Description
\Zend_Barcode_Object_Exception
methodpublicsetWithQuietZones(boolean $value) : \Zend_Barcode_Object
inherited

Activate/deactivate drawing of the quiet zones

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setWithQuietZones()\Zend_Barcode_Object_Ean13::setWithQuietZones()
Parameters
Name Type Description
$value boolean
Returns
Type Description
\Zend_Barcode_Object
methodpublicvalidateText(string $value) : void
Parameters
Name Type Description
$value string

Text to be ckecked

Documentation was generated by phpDocumentor 2.0.0a8.