[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/www/se3/html2pdf/_tcpdf_5.0.002/ -> 2dbarcodes.php (summary)

PHP class to creates array representations for 2D barcodes to be used with TCPDF.

Author: Nicola Asuni
Copyright: 2008-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
License: http://www.gnu.org/copyleft/lesser.html LGPL
Version: 1.0.003
File Size: 155 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

TCPDF2DBarcode:: (3 methods):
  __construct()
  getBarcodeArray()
  setBarcode()


Class: TCPDF2DBarcode  - X-Ref

PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>

__construct($code, $type)   X-Ref
This is the class constructor.
Return an array representations for 2D barcodes:<ul>
<li>$arrcode['code'] code to be printed on text label</li>
<li>$arrcode['num_rows'] required number of rows</li>
<li>$arrcode['num_cols'] required number of columns</li>
<li>$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)</li></ul>

param: string $code code to print
param: string $type type of barcode: <ul>li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li></ul>

getBarcodeArray()   X-Ref
Return an array representations of barcode.

return: array

setBarcode($code, $type)   X-Ref
Set the barcode.

param: string $code code to print
param: string $type type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li></ul>
return: array



Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1