com-tecnick-tcpdf
[ class tree: com-tecnick-tcpdf ] [ index: com-tecnick-tcpdf ] [ all elements ]

Class: TCPDF2DBarcode

Source Location: /2dbarcodes.php

Class Overview


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


Author(s):

  • Nicola Asuni

Version:

  • 1.0.005

Variables

Methods



Class Details

[line 55]
PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).




Tags:

author:  Nicola Asuni
version:  1.0.005
link:  http://www.tcpdf.org
name:  TCPDFBarcode
license:  LGPL


[ Top ]


Class Variables

$barcode_array =  false

[line 61]



Tags:

var:  representation of barcode.
access:  protected

Type:   array


[ Top ]



Class Methods


constructor __construct [line 73]

TCPDF2DBarcode __construct( string $code, string $type)

This is the class constructor.

Return an array representations for 2D barcodes:

  • $arrcode['code'] code to be printed on text label
  • $arrcode['num_rows'] required number of rows
  • $arrcode['num_cols'] required number of columns
  • $arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)




Tags:

access:  public


Parameters:

string   $code   code to print
string   $type   type of barcode:
  • RAW: raw mode - comma-separad list of array rows
  • RAW2: raw mode - array rows are surrounded by square parenthesis.
  • QRCODE : QR-CODE Low error correction
  • QRCODE,L : QR-CODE Low error correction
  • QRCODE,M : QR-CODE Medium error correction
  • QRCODE,Q : QR-CODE Better error correction
  • QRCODE,H : QR-CODE Best error correction
  • PDF417 : PDF417 (ISO/IEC 15438:2006)
  • PDF417,a,e : PDF417 with aspect ratio (a = width/height) and error correction level (e = 0-8)

[ Top ]

method getBarcodeArray [line 81]

array getBarcodeArray( )

Return an array representations of barcode.



Tags:

access:  public


[ Top ]

method setBarcode [line 91]

array setBarcode( string $code, string $type)

Set the barcode.



Tags:

access:  public


Parameters:

string   $code   code to print
string   $type   type of barcode:
  • RAW: raw mode - comma-separad list of array rows
  • RAW2: raw mode - array rows are surrounded by square parenthesis.
  • QRCODE : QR-CODE Low error correction
  • QRCODE,L : QR-CODE Low error correction
  • QRCODE,M : QR-CODE Medium error correction
  • QRCODE,Q : QR-CODE Better error correction
  • QRCODE,H : QR-CODE Best error correction
  • PDF417 : PDF417 (ISO/IEC 15438:2006)
  • PDF417,a,e : PDF417 with aspect ratio (a = width/height) and error correction level (e = 0-8)

[ Top ]


Documentation generated on Sat, 05 Jun 2010 22:11:53 +0200 by phpDocumentor 1.4.3