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.
Class for generate Code128 barcode

array
$_charSets= 'array(
'A' => array(
' ''
Character sets ABC
array(
'A' => array(
' '
Details
_calculateBarcodeWidth(
)
:
integer
Width of the barcode (in pixels)
Type | Description |
---|---|
integer |

_convertToBarcodeChars(
$string
)
:
array
Convert string to barcode string
Name | Type | Description |
---|---|---|
$string |
Type | Description |
---|---|
array |

_isDigit(
string $string, int $pos, int $length
=
2
)
:
bool
Checks if the next $length chars of $string starting at $pos are numeric.
Returns false if the end of the string is reached.
Name | Type | Description |
---|---|---|
$string | string | String to search |
$pos | int | Starting position |
$length | int | Length to search |
Type | Description |
---|---|
bool |

_validateText(
string $value, array $options
=
array()
)
:
void
Standard validation for most of barcode objects
Name | Type | Description |
---|---|---|
$value | string | |
$options | array |

getChecksum(
string $text
)
:
int
Get barcode checksum
Name | Type | Description |
---|---|---|
$text | string |
Type | Description |
---|---|
int |