Class for generate Barcode
Set default options for particular object
Return type: | void |
---|
Set barcode state from options array
Parameters: | array – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface |
Set barcode namespace for autoloading
Parameters: | string – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface |
Retrieve barcode namespace
Return type: | string |
---|
Set height of the barcode bar
Parameters: | integer – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Set thickness of thin bar
Parameters: | integer – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Set thickness of thick bar
Parameters: | integer – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Set factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize
Parameters: | float – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Get factor applying to thinBarWidth - thickBarWidth - barHeight - fontSize
Return type: | integer |
---|
Set color of the barcode and text
Parameters: | string – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Retrieve color of the barcode and text
Return type: | integer |
---|
Set the color of the background
Parameters: | integer – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Retrieve background color of the image
Return type: | integer |
---|
Activate/deactivate drawing of the bar
Parameters: | bool – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface |
Activate/deactivate drawing of the quiet zones
Parameters: | bool – |
---|---|
Return type: | AbstractObject |
Retrieve if quiet zones are draw or not
Return type: | bool |
---|
Allow fast inversion of font/bars color and background color
Return type: | ZendBarcodeObjectObjectInterface |
---|
Set orientation of barcode and text
Parameters: | float – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Retrieve orientation of barcode and text
Return type: | float |
---|
Set text to encode
Parameters: | string – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface |
Automatically add leading zeros if barcode length is fixed
Parameters: |
|
---|---|
Return type: | string |
Activate/deactivate drawing of text to encode
Parameters: | bool – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface |
Retrieve if drawing of text to encode is enabled
Return type: | bool |
---|
Activate/deactivate the adjustment of the position of the characters to the position of the bars
Parameters: | bool – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Retrieve if the adjustment of the position of the characters to the position of the bars is enabled
Return type: | bool |
---|
Activate/deactivate the automatic generation of the checksum character added to the barcode text
Parameters: | bool – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface |
Retrieve if the checksum character is automatically added to the barcode text
Return type: | bool |
---|
Activate/deactivate the automatic generation of the checksum character added to the barcode text
Parameters: | bool – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Retrieve if the checksum character is automatically added to the barcode text
Return type: | bool |
---|
Parameters: | integer|string – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Set the size of the font in case of TTF
Parameters: | float – |
---|---|
Return type: | ZendBarcodeObjectObjectInterface @throw ZendBarcodeObjectExceptionExceptionInterface |
Retrieve the size of the font in case of TTF
Return type: | float |
---|
Quiet zone before first bar and after the last bar
Return type: | integer |
---|
Add an instruction in the array of instructions
Parameters: | array – |
---|
Retrieve the set of drawing instructions
Return type: | array |
---|
Add a polygon drawing instruction in the set of instructions
Parameters: |
|
---|
Add a text drawing instruction in the set of instructions
Parameters: |
|
---|
Check if a text is really provided to barcode
Return type: | void @throw ZendBarcodeObjectExceptionExceptionInterface |
---|
Check the ratio between the thick and the thin bar
Parameters: |
|
---|---|
Return type: | void @throw ZendBarcodeObjectExceptionExceptionInterface |
Drawing with an angle is just allow TTF font
Return type: | void @throw ZendBarcodeObjectExceptionExceptionInterface |
---|
Width of the result image (before any rotation)
Return type: | integer |
---|
Calculate the width of the barcode
Return type: | integer |
---|
Height of the barcode
Return type: | integer |
---|
Get height of the result object
Parameters: | bool – |
---|---|
Return type: | integer |
Get width of the result object
Parameters: | bool – |
---|---|
Return type: | integer |
Calculate the offset from the left of the object if an orientation is activated
Parameters: | bool – |
---|---|
Return type: | float |
Calculate the offset from the top of the object if an orientation is activated
Parameters: | bool – |
---|---|
Return type: | float |
Apply rotation on a point in X/Y dimensions
Parameters: |
|
---|---|
Return type: | array Array of two elements corresponding to the new XY point |
Complete drawing of the barcode
Return type: | array Table of instructions |
---|
Check for invalid characters
Parameters: | string – Text to be checked |
---|---|
Return type: | void |
Standard validation for most of barcode objects
Parameters: |
|
---|
Each child must prepare the barcode and return a table like array(
- 0 => array(
- 0 => int (visible(black) or not(white)) 1 => int (width of the bar) 2 => float (0->1 position from the top of the beginning of the bar in %) 3 => float (0->1 position from the top of the end of the bar in %)
), 1 => ...
)
Return type: | array |
---|
Checking of parameters after all settings
Return type: | void |
---|