Class for generate Code128 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_ObjectAbstract |
__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
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
inherited_from | \Zend_Barcode_Object_ObjectAbstract::getText() |
---|
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_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setBarHeight(integer $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setBarThickWidth(integer $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setBarThinWidth(integer $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setBarcodeFont(string $font)
string
setBarcodeNamespace(string $namespace) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
\Zend_Barcode_Object_Code128
setConfig(\Zend_Config $config) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
\Zend_Config
\Zend_Barcode_Object_Code128
setDrawText(boolean $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Code128
setFactor(integer|float|string|boolean $value) : \Zend_Barcode_Object_Code128
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_Code128
setFont(integer|string $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
integer
string
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setFontSize(float $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
float
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setForeColor(string $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setOptions(array $options) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
array
\Zend_Barcode_Object_Code128
setOrientation(integer|float|string|boolean $value) : \Zend_Barcode_Object_Code128
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_Code128
setReverseColor() : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
\Zend_Barcode_Object_Code128
setStretchText(boolean $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setText(string $value) : \Zend_Barcode_Object
inherited_from | \Zend_Barcode_Object_ObjectAbstract::setText() |
---|
string
\Zend_Barcode_Object
setText(string $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
\Zend_Barcode_Object_Code128
setWithBorder(boolean $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Code128
setWithChecksum(boolean $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Code128
setWithChecksumInText(boolean $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Exception |
---|
\Zend_Barcode_Object_Code128
setWithQuietZones(boolean $value) : \Zend_Barcode_Object_Code128
fluent | This method is part of a fluent interface and will return the same instance |
---|
boolean
\Zend_Barcode_Object_Code128
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_ObjectAbstract::_calculateBarcodeWidth() |
---|
integer
_calculateBarcodeWidth() : integer
integer
_calculateHeight() : integer
integer
_calculateWidth() : integer
integer
_checkFontAndOrientation()
\Zend_Barcode_Object_Exception |
---|
_checkParams() : void
inherited_from | \Zend_Barcode_Object_ObjectAbstract::_checkParams() |
---|
_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 |
---|
_convertToBarcodeChars($string) : array
array
_drawBarcode()
_drawBorder()
_drawText()
_getDefaultOptions()
_isDigit(string $string, integer $pos, integer $length = 2
) : boolean
Returns false if the end of the string is reached.
string
String to search
integer
Starting position
integer
Length to search
boolean
_postDrawBarcode()
_preDrawBarcode()
_prepareBarcode() : array
.. )
inherited_from | \Zend_Barcode_Object_ObjectAbstract::_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()
) : boolean
inherited_from | \Zend_Barcode_Object_ObjectAbstract::_validateText() |
---|
string
array
boolean
_validateText(string $value, array $options = array()
)
string
array
\Zend_Barcode_Object_Exception |
---|
$_addLeadingZeros :
true
$_backgroundColor : integer
16777215
$_charSets : array
array('A' => array(' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 'FNC3', 'FNC2', 'SHIFT', 'Code C', 'Code B', 'FNC4', 'FNC1', 'START A', 'START B', 'START C', 'STOP'), 'B' => array(' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', 127, 'FNC3', 'FNC2', 'SHIFT', 'Code C', 'FNC4', 'Code A', 'FNC1', 'START A', 'START B', 'START C', 'STOP'), 'C' => array('00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', 'Code B', 'Code A', 'FNC1', 'START A', 'START B', 'START C', 'STOP'))
$_codingMap
array(0 => "11011001100", 1 => "11001101100", 2 => "11001100110", 3 => "10010011000", 4 => "10010001100", 5 => "10001001100", 6 => "10011001000", 7 => "10011000100", 8 => "10001100100", 9 => "11001001000", 10 => "11001000100", 11 => "11000100100", 12 => "10110011100", 13 => "10011011100", 14 => "10011001110", 15 => "10111001100", 16 => "10011101100", 17 => "10011100110", 18 => "11001110010", 19 => "11001011100", 20 => "11001001110", 21 => "11011100100", 22 => "11001110100", 23 => "11101101110", 24 => "11101001100", 25 => "11100101100", 26 => "11100100110", 27 => "11101100100", 28 => "11100110100", 29 => "11100110010", 30 => "11011011000", 31 => "11011000110", 32 => "11000110110", 33 => "10100011000", 34 => "10001011000", 35 => "10001000110", 36 => "10110001000", 37 => "10001101000", 38 => "10001100010", 39 => "11010001000", 40 => "11000101000", 41 => "11000100010", 42 => "10110111000", 43 => "10110001110", 44 => "10001101110", 45 => "10111011000", 46 => "10111000110", 47 => "10001110110", 48 => "11101110110", 49 => "11010001110", 50 => "11000101110", 51 => "11011101000", 52 => "11011100010", 53 => "11011101110", 54 => "11101011000", 55 => "11101000110", 56 => "11100010110", 57 => "11101101000", 58 => "11101100010", 59 => "11100011010", 60 => "11101111010", 61 => "11001000010", 62 => "11110001010", 63 => "10100110000", 64 => "10100001100", 65 => "10010110000", 66 => "10010000110", 67 => "10000101100", 68 => "10000100110", 69 => "10110010000", 70 => "10110000100", 71 => "10011010000", 72 => "10011000010", 73 => "10000110100", 74 => "10000110010", 75 => "11000010010", 76 => "11001010000", 77 => "11110111010", 78 => "11000010100", 79 => "10001111010", 80 => "10100111100", 81 => "10010111100", 82 => "10010011110", 83 => "10111100100", 84 => "10011110100", 85 => "10011110010", 86 => "11110100100", 87 => "11110010100", 88 => "11110010010", 89 => "11011011110", 90 => "11011110110", 91 => "11110110110", 92 => "10101111000", 93 => "10100011110", 94 => "10001011110", 95 => "10111101000", 96 => "10111100010", 97 => "11110101000", 98 => "11110100010", 99 => "10111011110", 100 => "10111101110", 101 => "11101011110", 102 => "11110101110", 103 => "11010000100", 104 => "11010010000", 105 => "11010011100", 106 => "1100011101011")
$_convertedText : array
array()
$_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
$_staticFont : string
null
$_stretchText : boolean
false
$_substituteChecksumCharacter :
0
$_text : string
null
$_type : string
null
$_width : integer
null
$_withBorder : boolean
false
$_withChecksum : boolean
true
inherited_from | \Zend_Barcode_Object_ObjectAbstract::_withChecksum |
---|
$_withChecksum : boolean
false
$_withChecksumInText : boolean
false
$_withQuietZones : boolean
true