|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($code, $ecl=-1, $aspectratio=2, $macro=array()) | |
| getBarcodeArray () | |
Protected Member Functions | |
| getErrorCorrectionLevel ($ecl, $numcw) | |
| getErrorCorrection ($cw, $ecl) | |
| getInputSequences ($code) | |
| getCompaction ($mode, $code, $addmode=true) | |
Protected Attributes | |
| $barcode_array = array() | |
| $start_pattern = '11111111010101000' | |
| $stop_pattern = '111111101000101001' | |
| $textsubmodes | |
| $textlatch | |
| $clusters | |
| $rsfactors | |
Class to create PDF417 barcode arrays for TCPDF class. PDF417 (ISO/IEC 15438:2006) is a 2-dimensional stacked bar code created by Symbol Technologies in 1991.
Definition at line 93 of file pdf417.php.
| __construct | ( | $ | code, |
| $ | ecl = -1, |
||
| $ | aspectratio = 2, |
||
| $ | macro = array() |
||
| ) |
This is the class constructor. Creates a PDF417 object
| $code | (string) code to represent using PDF417 |
| $ecl | (int) error correction level (0-8); default -1 = automatic correction level |
| $aspectratio | (float) the width to height of the symbol (excluding quiet zones) |
| $macro | (array) information for macro block |
Definition at line 532 of file pdf417.php.

| getBarcodeArray | ( | ) |
Returns a barcode array which is readable by TCPDF
Definition at line 731 of file pdf417.php.
| getCompaction | ( | $ | mode, |
| $ | code, | ||
| $ | addmode = true |
||
| ) | [protected] |
Compact data by mode.
| $mode | (int) compaction mode number |
| $code | (string) data to compact |
| $addmode | (boolean) if true add the mode codeword at first position |
Definition at line 873 of file pdf417.php.

| getErrorCorrection | ( | $ | cw, |
| $ | ecl | ||
| ) | [protected] |
Returns the error correction codewords
| $cw | (array) array of codewords including Symbol Lenght Descriptor and pad |
| $ecl | (int) error correction level 0-8 |
Definition at line 780 of file pdf417.php.

| getErrorCorrectionLevel | ( | $ | ecl, |
| $ | numcw | ||
| ) | [protected] |
Returns the error correction level (0-8) to be used
| $ecl | (int) error correction level |
| $numcw | (int) number of data codewords |
Definition at line 742 of file pdf417.php.

| getInputSequences | ( | $ | code | ) | [protected] |
Create array of sequences from input
| $code | (string) code |
Definition at line 816 of file pdf417.php.

$barcode_array = array() [protected] |
Barcode array to be returned which is readable by TCPDF.
Definition at line 99 of file pdf417.php.
$clusters [protected] |
Clusters of codewords (0, 3, 6)
Values are hex equivalents of binary representation of bars (1 = bar, 0 = space).
The codewords numbered from 900 to 928 have special meaning, some enable to switch between modes in order to optimise the code:
Definition at line 156 of file pdf417.php.
$rsfactors [protected] |
Array of factors of the Reed-Solomon polynomial equations used for error correction; one sub array for each correction level (0-8).
Definition at line 445 of file pdf417.php.
$start_pattern = '11111111010101000' [protected] |
Start pattern.
Definition at line 105 of file pdf417.php.
$stop_pattern = '111111101000101001' [protected] |
Stop pattern.
Definition at line 111 of file pdf417.php.
$textlatch [protected] |
array( '01' => array(27), '02' => array(28), '03' => array(28,25), '10' => array(28,28), '12' => array(28), '13' => array(28,25), '20' => array(28), '21' => array(27), '23' => array(25), '30' => array(29), '31' => array(29,27), '32' => array(29,28) )
Array of switching codes for Text Compaction Sub-Modes.
Definition at line 128 of file pdf417.php.
$textsubmodes [protected] |
array( array(0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x20,0xFD,0xFE,0xFF), array(0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x20,0xFD,0xFE,0xFF), array(0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x26,0x0d,0x09,0x2c,0x3a,0x23,0x2d,0x2e,0x24,0x2f,0x2b,0x25,0x2a,0x3d,0x5e,0xFB,0x20,0xFD,0xFE,0xFF), array(0x3b,0x3c,0x3e,0x40,0x5b,0x5c,0x5d,0x5f,0x60,0x7e,0x21,0x0d,0x09,0x2c,0x3a,0x0a,0x2d,0x2e,0x24,0x2f,0x22,0x7c,0x2a,0x28,0x29,0x3f,0x7b,0x7d,0x27,0xFF) )
Array of text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers).
Definition at line 117 of file pdf417.php.