Barcode/Object/Ean8.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Barcode  
Subpackage
Object  
Version
$Id: 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

>VPropertyprotected\$_addLeadingZeros $_addLeadingZeros = true
inherited
Activate automatic addition of leading zeros if barcode length is fixed
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  
>VPropertyprotectedinteger $_backgroundColor = 16777215
Default value16777215Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_backgroundColor  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_backgroundColor  
>VPropertyprotectedinteger $_barHeight = 50
Default value50Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barHeight  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_barHeight  
>VPropertyprotectedinteger $_barThickWidth = 3
Default value3Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barThickWidth  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_barThickWidth  
>VPropertyprotectedinteger $_barThinWidth = 1
Default value1Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_barThinWidth  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_barThinWidth  
>VPropertyprotected\$_barcodeLength $_barcodeLength = null
inherited
Fix barcode length (numeric or string like 'even')
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  
>VPropertyprotectedstring $_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  
>VPropertyprotectedarray $_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  
>VPropertyprotectedboolean $_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  
>VPropertyprotectedinteger $_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  
>VPropertyprotectedinteger|string $_font = null
inherited
Font resource - integer (1 to 5): corresponds to GD included fonts - string: corresponds to path of a TTF font
Inherited from: \Zend_Barcode_Object_ObjectAbstract::$$_font\Zend_Barcode_Object_Ean13::$$_font
Default valuenullDetails
Type
integer | string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_font  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_font  
>VPropertyprotectedfloat $_fontSize = 10
Default value10Details
Type
float
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_fontSize  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_fontSize  
>VPropertyprotectedinteger $_foreColor = 0
Default value0Details
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_foreColor  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_foreColor  
>VPropertyprotectedinteger $_height = null
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_height  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_height  
>VPropertyprotectedarray $_instructions = array()
Default valuearray()Details
Type
array
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_instructions  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_instructions  
>VPropertyprotected\$_mandatoryChecksum $_mandatoryChecksum = false
inherited
Activation of mandatory checksum to deactivate unauthorized modification
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  
>VPropertyprotectedboolean $_mandatoryQuietZones = false
>VPropertyprotectedinteger $_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  
>VPropertyprotectedinteger $_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  
>VPropertyprotectedfloat $_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  
>VPropertyprotected$_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'))
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  
>VPropertyprotectedstring $_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  
>VPropertyprotectedboolean $_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  
>VPropertyprotected\$_substituteChecksumCharacter $_substituteChecksumCharacter = 0
inherited
Character used to substitute checksum character for validation
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  
>VPropertyprotectedstring $_text = null
Default valuenullDetails
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_text  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_text  
>VPropertyprotectedstring $_type = null
Default valuenullDetails
Type
string
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_type  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_type  
>VPropertyprotectedinteger $_width = null
Default valuenullDetails
Type
integer
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_width  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_width  
>VPropertyprotectedboolean $_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  
>VPropertyprotectedboolean $_withChecksum = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withChecksum  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_withChecksum  
>VPropertyprotectedboolean $_withChecksumInText = false
Default valuefalseDetails
Type
boolean
Inherited_from
\Zend_Barcode_Object_ObjectAbstract::$$_withChecksumInText  
Inherited_from
\Zend_Barcode_Object_Ean13::$$_withChecksumInText  
>VPropertyprotectedboolean $_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
NameTypeDescription
$optionsarray | \Zend_Config
methodprotected_addInstruction(array $instruction) : void
inherited

Add an instruction in the array of instructions

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

Automatically add leading zeros if barcode length is fixed

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

Add a polygon drawing instruction in the set of instructions

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

Add a text drawing instruction in the set of instructions

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

Width of the barcode (in pixels)

Returns
TypeDescription
integer
methodprotected_calculateHeight() : integer
Returns
TypeDescription
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
TypeDescription
integer
methodprotected_checkFontAndOrientation() : void
Details
Throw
 
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
NameTypeDescription
$mininteger
$maxinteger
Details
Throw
 
methodprotected_checkText( $value = null) : void
inherited

Check if a text is really provided to barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::_checkText()\Zend_Barcode_Object_Ean13::_checkText()
Parameters
NameTypeDescription
$value
Details
Throw
 
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
methodprotected_prepareBarcode() : array

Prepare array to draw barcode

.. )

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

Apply rotation on a point in X/Y dimensions

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

x-position before rotation

$y1float

y-position before rotation

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

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

Parameters
NameTypeDescription
$valuestring
$optionsarray
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
TypeDescription
arrayTable of instructions
methodpublicgetBackgroundColor() : integer
Returns
TypeDescription
integer
methodpublicgetBarHeight() : integer
Returns
TypeDescription
integer
methodpublicgetBarThickWidth() : integer
Returns
TypeDescription
integer
methodpublicgetBarThinWidth() : integer
Returns
TypeDescription
integer
methodpublicgetBarcodeNamespace() : string
Returns
TypeDescription
string
methodpublicgetChecksum(string $text) : int
inherited

Get barcode checksum

Inherited from: \Zend_Barcode_Object_Ean13::getChecksum()
Parameters
NameTypeDescription
$textstring
Returns
TypeDescription
int
methodpublicgetDrawText() : boolean
inherited

Retrieve if drawing of text to encode is enabled

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getDrawText()\Zend_Barcode_Object_Ean13::getDrawText()
Returns
TypeDescription
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
TypeDescription
integer
methodpublicgetFont() : integer | string
Returns
TypeDescription
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
TypeDescription
float
methodpublicgetForeColor() : \unknown
inherited

Retrieve color of the barcode and text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getForeColor()\Zend_Barcode_Object_Ean13::getForeColor()
Returns
TypeDescription
\unknown
methodpublicgetHeight( $recalculate = false) : integer
Parameters
NameTypeDescription
$recalculate
Returns
TypeDescription
integer
methodpublicgetInstructions() : array
Returns
TypeDescription
array
methodpublicgetOffsetLeft(boolean $recalculate = false) : float
inherited

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

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

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

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

Retrieve orientation of barcode and text

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getOrientation()\Zend_Barcode_Object_Ean13::getOrientation()
Returns
TypeDescription
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
TypeDescription
integer
methodpublicgetRawText() : string
Returns
TypeDescription
string
methodpublicgetStretchText() : boolean
inherited

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

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getStretchText()\Zend_Barcode_Object_Ean13::getStretchText()
Returns
TypeDescription
boolean
methodpublicgetText() : string
Returns
TypeDescription
string
methodpublicgetTextToDisplay() : string
Returns
TypeDescription
string
methodpublicgetType() : string
Returns
TypeDescription
string
methodpublicgetWidth( $recalculate = false) : integer
Parameters
NameTypeDescription
$recalculate
Returns
TypeDescription
integer
methodpublicgetWithBorder() : boolean
Returns
TypeDescription
boolean
methodpublicgetWithChecksum() : boolean
inherited

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

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

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

Inherited from: \Zend_Barcode_Object_ObjectAbstract::getWithChecksumInText()\Zend_Barcode_Object_Ean13::getWithChecksumInText()
Returns
TypeDescription
boolean
methodpublicgetWithQuietZones() : boolean
Returns
TypeDescription
boolean
methodpublicsetBackgroundColor(integer $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarHeight(integer $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarThickWidth(integer $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarThinWidth(integer $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valueinteger
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetBarcodeFont(string $font) : void
staticinherited

Set the font for all instances of barcode

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setBarcodeFont()\Zend_Barcode_Object_Ean13::setBarcodeFont()
Parameters
NameTypeDescription
$fontstring
methodpublicsetBarcodeNamespace(string $namespace) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$namespacestring
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetConfig(\Zend_Config $config) : \Zend_Barcode_Object
inherited

Set barcode state from config object

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

Activate/deactivate drawing of text to encode

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

Set factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize

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

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

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

Set the size of the font in case of TTF

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

Set barcode state from options array

Inherited from: \Zend_Barcode_Object_ObjectAbstract::setOptions()\Zend_Barcode_Object_Ean13::setOptions()
Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Barcode_Object
methodpublicsetOrientation(float $value) : \Zend_Barcode_Object
Parameters
NameTypeDescription
$valuefloat
Returns
TypeDescription
\Zend_Barcode_Object
Details
Throw
 
methodpublicsetReverseColor() : \Zend_Barcode_Object
inherited

Allow fast inversion of font/bars color and background color

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

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

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

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

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

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

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

Activate/deactivate drawing of the quiet zones

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

Text to be ckecked

Documentation was generated by phpDocumentor 2.0.0a12.