Class for generate UpcA barcode
category | Zend |
---|---|
package | Zend_Barcode |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Barcode_Object_Ean13 |
__construct(array|\Zend_Config $options = null
)
array
\Zend_Config
checkParams() : boolean
boolean
draw() : array
array
Table of instructionsgetBackgroundColor() : integer
integer
getBarHeight() : integer
integer
getBarThickWidth() : integer
integer
getBarThinWidth() : integer
integer
getBarcodeNamespace() : string
string
getChecksum(string $text) : integer
inherited_from | \Zend_Barcode_Object_Ean13::getChecksum() |
---|
string
integer
getChecksum(string $text) : integer
string
integer
getDrawText() : boolean
boolean
getFactor() : integer
integer
getFont() : integer | string
integer
string
getFontSize() : float
float
getForeColor() : \unknown
\unknown
getHeight(boolean $recalculate = false
) : integer
boolean
integer
getInstructions() : array
array
getOffsetLeft(boolean $recalculate = false
) : float
boolean
float
getOffsetTop(boolean $recalculate = false
) : float
boolean
float
getOrientation() : float
float
getQuietZone() : integer
integer
getRawText() : string
string
getStretchText() : boolean
boolean
getText() : string
string
getText() : string
string
getTextToDisplay() : string
string
getType() : string
string
getWidth(boolean $recalculate = false
) : integer
boolean
integer
getWithBorder() : boolean
boolean
getWithChecksum() : boolean
boolean
getWithChecksumInText() : boolean
boolean
getWithQuietZones() : boolean
boolean
setBackgroundColor(integer $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setBarHeight(integer $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setBarThickWidth(integer $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setBarThinWidth(integer $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setBarcodeFont(string $font)
string
setBarcodeNamespace(string $namespace) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
\Zend_Barcode_Object_Upce
setConfig(\Zend_Config $config) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
\Zend_Config
\Zend_Barcode_Object_Upce
setDrawText(boolean $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Upce
setFactor(integer|float|string|boolean $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
float
string
boolean
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setFont(integer|string $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
string
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setFontSize(float $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
float
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setForeColor(string $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setOptions(array $options) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
array
\Zend_Barcode_Object_Upce
setOrientation(integer|float|string|boolean $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
float
string
boolean
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setReverseColor() : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
\Zend_Barcode_Object_Upce
setStretchText(boolean $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setText(string $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
\Zend_Barcode_Object_Upce
setWithBorder(boolean $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Upce
setWithChecksum(boolean $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Upce
setWithChecksumInText(boolean $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Upce
setWithQuietZones(boolean $value) : \Zend_Barcode_Object_Upce
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Upce
validateText(string $value)
string
Text to be ckecked
_addInstruction(array $instruction)
array
_addLeadingZeros(string $text, boolean $withoutChecksum = false
) : string
string
boolean
string
_addPolygon(array $points, integer $color= null
, boolean $filled= true
)
array
integer
boolean
_addText(string $text, float $size, array $position, string $font, integer $color, string $alignment= 'center'
, float|integer $orientation= 0
)
string
float
array
string
integer
string
float
integer
_calculateBarcodeHeight() : integer
integer
_calculateBarcodeWidth() : integer
inherited_from | \Zend_Barcode_Object_Ean13::_calculateBarcodeWidth() |
---|
integer
_calculateBarcodeWidth() : integer
integer
_calculateHeight() : integer
integer
_calculateWidth() : integer
integer
_checkFontAndOrientation()
\Zend_Barcode_Object_Exception |
---|
_checkParams()
_checkRatio(integer $min= 2
, integer $max= 3
)
integer
integer
\Zend_Barcode_Object_Exception |
---|
_checkText(string|null $value = null
)
string
null
\Zend_Barcode_Object_Exception |
---|
_drawBarcode()
_drawBorder()
_drawEan13Text()
_drawText() : void
inherited_from | \Zend_Barcode_Object_Ean13::_drawText() |
---|
_drawText()
_getDefaultOptions() : void
inherited_from | \Zend_Barcode_Object_Ean13::_getDefaultOptions() |
---|
_getDefaultOptions()
_postDrawBarcode()
_preDrawBarcode()
_prepareBarcode() : array
.. )
inherited_from | \Zend_Barcode_Object_Ean13::_prepareBarcode() |
---|
array
_prepareBarcode() : array
.. )
array
_rotate(float $x1, float $y1) : array
float
x-position before rotation
float
y-position before rotation
array
Array of two elements corresponding to the new XY point_validateText(string $value, array $options = array()
)
string
array
\Zend_Barcode_Object_Exception |
---|
_validateText(string $value, array $options = array()
)
string
array
\Zend_Barcode_Object_Exception |
---|
$_addLeadingZeros :
true
$_backgroundColor : integer
16777215
$_codingMap : array
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"))
$_drawText : boolean
true
$_factor : integer
1
$_font : integer | string
null
$_fontSize : float
10
$_foreColor : integer
0
$_height : integer
null
$_instructions : array
array()
$_mandatoryChecksum :
false
$_mandatoryQuietZones : boolean
false
$_offsetLeft : integer
null
$_offsetTop : integer
null
$_orientation : float
0
$_parities
array(0 => array(0 => array('B', 'B', 'B', 'A', 'A', 'A'), 1 => array('B', 'B', 'A', 'B', 'A', 'A'), 2 => array('B', 'B', 'A', 'A', 'B', 'A'), 3 => array('B', 'B', 'A', 'A', 'A', 'B'), 4 => array('B', 'A', 'B', 'B', 'A', 'A'), 5 => array('B', 'A', 'A', 'B', 'B', 'A'), 6 => array('B', 'A', 'A', 'A', 'B', 'B'), 7 => array('B', 'A', 'B', 'A', 'B', 'A'), 8 => array('B', 'A', 'B', 'A', 'A', 'B'), 9 => array('B', 'A', 'A', 'B', 'A', 'B')), 1 => array(0 => array('A', 'A', 'A', 'B', 'B', 'B'), 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')))
inherited_from | \Zend_Barcode_Object_Ean13::_parities |
---|
$_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'))
$_staticFont : string
null
$_stretchText : boolean
false
$_substituteChecksumCharacter :
0
$_text : string
null
$_type : string
null
$_width : integer
null
$_withBorder : boolean
false
$_withChecksum : boolean
false
$_withChecksumInText : boolean
false
$_withQuietZones : boolean
true