1266.1. Zend\Barcode\Object\Code128
Class for generate Code128 barcode
1266.1.1. Methods
1266.1.1.1. calculateBarcodeWidth
-
calculateBarcodeWidth()
Width of the barcode (in pixels)
1266.1.1.2. checkSpecificParams
-
checkSpecificParams()
Partial check of code128 barcode
1266.1.1.3. prepareBarcode
-
prepareBarcode()
Prepare array to draw barcode
1266.1.1.4. _isDigit
-
_isDigit()
Checks if the next $length chars of $string starting at $pos are numeric.
Returns false if the end of the string is reached.
Parameters: |
- string – String to search
- int – Starting position
- int – Length to search
|
Return type: | bool
|
1266.1.1.5. convertToBarcodeChars
-
convertToBarcodeChars()
Convert string to barcode string
Parameters: | string – |
Return type: | array |
1266.1.1.6. setText
-
setText()
Set text to encode
Parameters: | string – |
Return type: | Code128 |
1266.1.1.7. getText
-
getText()
Retrieve text to encode
1266.1.1.8. getChecksum
-
getChecksum()
Get barcode checksum
Parameters: | string – |
Return type: | int |