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

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.001
link:  http://www.tcpdf.org
name:  TCPDFBarcode
license:  LGPL


[ Top ]


Class Variables

$barcode_array =

[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:
  • TEST
  • 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:
  • TEST
  • 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 Wed, 07 Apr 2010 10:00:55 +0200 by phpDocumentor 1.4.3