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.003

Variables

Methods



Class Details

[line 62]
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.003
link:  http://www.tcpdf.org
name:  TCPDFBarcode
license:  LGPL


[ Top ]


Class Variables

$barcode_array =  false

[line 68]



Tags:

var:  representation of barcode.
access:  protected

Type:   array


[ Top ]



Class Methods


constructor __construct [line 80]

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:
  • 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

[ Top ]

method getBarcodeArray [line 88]

array getBarcodeArray( )

Return an array representations of barcode.



Tags:

access:  public


[ Top ]

method setBarcode [line 98]

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

[ Top ]


Documentation generated on Fri, 14 May 2010 12:43:23 +0200 by phpDocumentor 1.4.3