| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org). More...
 Collaboration diagram for TCPDF2DBarcode:
 Collaboration diagram for TCPDF2DBarcode:| Public Member Functions | |
| __construct ($code, $type) | |
| This is the class constructor. | |
| getBarcodeArray () | |
| Return an array representations of barcode. | |
| getBarcodeSVG ($w=3, $h=3, $color='black') | |
| Send barcode as SVG image object to the standard output. | |
| getBarcodeSVGcode ($w=3, $h=3, $color='black') | |
| Return a SVG string representation of barcode. | |
| getBarcodeHTML ($w=10, $h=10, $color='black') | |
| Return an HTML representation of barcode. | |
| getBarcodePNG ($w=3, $h=3, $color=array(0, 0, 0)) | |
| Return a PNG image representation of barcode (requires GD or Imagick library). | |
| setBarcode ($code, $type) | |
| Set the barcode. | |
| Protected Attributes | |
| $barcode_array = false | |
| Array representation of barcode. | |
PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).
Definition at line 50 of file tcpdf_barcodes_2d.php.
| TCPDF2DBarcode::__construct | ( | $code, | |
| $type | |||
| ) | 
This is the class constructor.
Return an array representations for 2D barcodes:
| $code | (string) code to print | 
| $type | (string) type of barcode: 
 | 
Definition at line 68 of file tcpdf_barcodes_2d.php.
References setBarcode().
 Here is the call graph for this function:
 Here is the call graph for this function:| TCPDF2DBarcode::getBarcodeArray | ( | ) | 
Return an array representations of barcode.
Definition at line 76 of file tcpdf_barcodes_2d.php.
References $barcode_array.
| TCPDF2DBarcode::getBarcodeHTML | ( | $w = 10, | |
| $h = 10, | |||
| $color = 'black' | |||
| ) | 
Return an HTML representation of barcode.
| $w | (int) Width of a single rectangle element in pixels. | 
| $h | (int) Height of a single rectangle element in pixels. | 
| $color | (string) Foreground color for bar elements (background is transparent). | 
Definition at line 144 of file tcpdf_barcodes_2d.php.
| TCPDF2DBarcode::getBarcodePNG | ( | $w = 3, | |
| $h = 3, | |||
| $color = array(0,0,0) | |||
| ) | 
Return a PNG image representation of barcode (requires GD or Imagick library).
| $w | (int) Width of a single rectangle element in pixels. | 
| $h | (int) Height of a single rectangle element in pixels. | 
| $color | (array) RGB (0-255) foreground color for bar elements (background is transparent). | 
Definition at line 173 of file tcpdf_barcodes_2d.php.
| TCPDF2DBarcode::getBarcodeSVG | ( | $w = 3, | |
| $h = 3, | |||
| $color = 'black' | |||
| ) | 
Send barcode as SVG image object to the standard output.
| $w | (int) Width of a single rectangle element in user units. | 
| $h | (int) Height of a single rectangle element in user units. | 
| $color | (string) Foreground color (in SVG format) for bar elements (background is transparent). | 
Definition at line 87 of file tcpdf_barcodes_2d.php.
References getBarcodeSVGcode().
 Here is the call graph for this function:
 Here is the call graph for this function:| TCPDF2DBarcode::getBarcodeSVGcode | ( | $w = 3, | |
| $h = 3, | |||
| $color = 'black' | |||
| ) | 
Return a SVG string representation of barcode.
| $w | (int) Width of a single rectangle element in user units. | 
| $h | (int) Height of a single rectangle element in user units. | 
| $color | (string) Foreground color (in SVG format) for bar elements (background is transparent). | 
Definition at line 108 of file tcpdf_barcodes_2d.php.
Referenced by getBarcodeSVG().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| TCPDF2DBarcode::setBarcode | ( | $code, | |
| $type | |||
| ) | 
Set the barcode.
| $code | (string) code to print | 
| $type | (string) type of barcode: 
 | 
Definition at line 235 of file tcpdf_barcodes_2d.php.
Referenced by __construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Array representation of barcode.
Definition at line 56 of file tcpdf_barcodes_2d.php.
Referenced by getBarcodeArray().