Öffentliche Methoden | |
__construct ($code) | |
getBarcodeArray () | |
Geschützte Methoden | |
getGFProduct ($a, $b, $log, $alog, $gf) | |
getErrorCorrection ($wd, $nb, $nd, $nc, $gf=256, $pp=301) | |
get253StateCodeword ($cwpad, $cwpos) | |
get255StateCodeword ($cwpad, $cwpos) | |
isCharMode ($chr, $mode) | |
lookAheadTest ($data, $pos, $mode) | |
getSwitchEncodingCodeword ($mode) | |
getMaxDataCodewords ($numcw) | |
getHighLevelEncoding ($data) | |
placeModule ($marr, $nrow, $ncol, $row, $col, $chr, $bit) | |
placeUtah ($marr, $nrow, $ncol, $row, $col, $chr) | |
placeCornerA ($marr, $nrow, $ncol, $chr) | |
placeCornerB ($marr, $nrow, $ncol, $chr) | |
placeCornerC ($marr, $nrow, $ncol, $chr) | |
placeCornerD ($marr, $nrow, $ncol, $chr) | |
getPlacementMap ($nrow, $ncol) | |
Geschützte Attribute | |
$barcode_array = array() | |
$last_enc = ENC_ASCII | |
$symbattr | |
$chset_id = array(ENC_C40 => 'C40', ENC_TXT => 'TXT', ENC_X12 =>'X12') | |
$chset | |
Class to create DataMatrix ECC 200 barcode arrays for TCPDF class. DataMatrix (ISO/IEC 16022:2006) is a 2-dimensional bar code.
Definiert in Zeile 110 der Datei datamatrix.php.
__construct | ( | $code) |
This is the class constructor. Creates a datamatrix object
$code | (string) Code to represent using Datamatrix. |
Definiert in Zeile 235 der Datei datamatrix.php.
Benutzt $barcode_array, ENC_ASCII, ENC_BASE256, ENC_EDF, get253StateCodeword(), getErrorCorrection(), getHighLevelEncoding() und getPlacementMap().
|
protected |
Return the 253-state codeword
$cwpad | (int) Pad codeword. |
$cwpos | (int) Number of data codewords from the beginning of encoded data. |
Definiert in Zeile 444 der Datei datamatrix.php.
Wird benutzt von __construct().
|
protected |
Return the 255-state codeword
$cwpad | (int) Pad codeword. |
$cwpos | (int) Number of data codewords from the beginning of encoded data. |
Definiert in Zeile 459 der Datei datamatrix.php.
Wird benutzt von getHighLevelEncoding().
getBarcodeArray | ( | ) |
Returns a barcode array which is readable by TCPDF
Definiert in Zeile 350 der Datei datamatrix.php.
Benutzt $barcode_array.
|
protected |
Add error correction codewords to data codewords array (ANNEX E).
$wd | (array) Array of datacodewords. |
$nb | (int) Number of blocks. |
$nd | (int) Number of data codewords per block. |
$nc | (int) Number of correction codewords per block. |
$gf | (int) numner of fields on log/antilog table (power of 2). |
$pp | (int) The value of its prime modulus polynomial (301 for ECC200). |
Definiert in Zeile 382 der Datei datamatrix.php.
Benutzt getGFProduct().
Wird benutzt von __construct().
|
protected |
Product of two numbers in a Power-of-Two Galois Field
$a | (int) first number to multiply. |
$b | (int) second number to multiply. |
$log | (array) Log table. |
$alog | (array) Anti-Log table. |
$gf | (array) Number of Factors of the Reed-Solomon polynomial. |
Definiert in Zeile 364 der Datei datamatrix.php.
Wird benutzt von getErrorCorrection().
|
protected |
Get high level encoding using the minimum symbol data characters for ECC 200
$data | (string) data to encode |
Definiert in Zeile 702 der Datei datamatrix.php.
Benutzt ENC_ASCII, ENC_ASCII_EXT, ENC_ASCII_NUM, ENC_BASE256, ENC_C40, ENC_EDF, ENC_TXT, ENC_X12, get255StateCodeword(), getMaxDataCodewords(), getSwitchEncodingCodeword(), isCharMode() und lookAheadTest().
Wird benutzt von __construct().
|
protected |
Choose the minimum matrix size and return the max number of data codewords.
$numcw | (int) Number of current codewords. |
Definiert in Zeile 687 der Datei datamatrix.php.
Wird benutzt von getHighLevelEncoding().
|
protected |
Build a placement map. (Annex F - ECC 200 symbol character placement)
$nrow | (int) Number of rows. |
$ncol | (int) Number of columns. |
Definiert in Zeile 1093 der Datei datamatrix.php.
Benutzt placeCornerA(), placeCornerB(), placeCornerC(), placeCornerD() und placeUtah().
Wird benutzt von __construct().
|
protected |
Get the switching codeword to a new encoding mode (latch codeword)
$mode | (int) New encoding mode. |
Definiert in Zeile 651 der Datei datamatrix.php.
Benutzt ENC_ASCII, ENC_BASE256, ENC_C40, ENC_EDF, ENC_TXT und ENC_X12.
Wird benutzt von getHighLevelEncoding().
|
protected |
Returns true if the char belongs to the selected mode
$chr | (int) Character (byte) to check. |
$mode | (int) Current encoding mode. |
Definiert in Zeile 474 der Datei datamatrix.php.
Benutzt ENC_ASCII, ENC_ASCII_EXT, ENC_ASCII_NUM, ENC_BASE256, ENC_C40, ENC_EDF, ENC_TXT und ENC_X12.
Wird benutzt von getHighLevelEncoding() und lookAheadTest().
|
protected |
The look-ahead test scans the data to be encoded to find the best mode (Annex P - steps from J to S).
$data | (string) data to encode |
$pos | (int) current position |
$mode | (int) current encoding mode |
Definiert in Zeile 521 der Datei datamatrix.php.
Benutzt ENC_ASCII, ENC_ASCII_EXT, ENC_ASCII_NUM, ENC_BASE256, ENC_C40, ENC_EDF, ENC_TXT, ENC_X12 und isCharMode().
Wird benutzt von getHighLevelEncoding().
|
protected |
Places the 8 bits of the first special corner case. (Annex F - ECC 200 symbol character placement)
$marr | (array) Array of symbols. |
$nrow | (int) Number of rows. |
$ncol | (int) Number of columns. |
$chr | (int) Char byte. |
Definiert in Zeile 1007 der Datei datamatrix.php.
Benutzt placeModule().
Wird benutzt von getPlacementMap().
|
protected |
Places the 8 bits of the second special corner case. (Annex F - ECC 200 symbol character placement)
$marr | (array) Array of symbols. |
$nrow | (int) Number of rows. |
$ncol | (int) Number of columns. |
$chr | (int) Char byte. |
Definiert in Zeile 1029 der Datei datamatrix.php.
Benutzt placeModule().
Wird benutzt von getPlacementMap().
|
protected |
Places the 8 bits of the third special corner case. (Annex F - ECC 200 symbol character placement)
$marr | (array) Array of symbols. |
$nrow | (int) Number of rows. |
$ncol | (int) Number of columns. |
$chr | (int) Char byte. |
Definiert in Zeile 1051 der Datei datamatrix.php.
Benutzt placeModule().
Wird benutzt von getPlacementMap().
|
protected |
Places the 8 bits of the fourth special corner case. (Annex F - ECC 200 symbol character placement)
$marr | (array) Array of symbols. |
$nrow | (int) Number of rows. |
$ncol | (int) Number of columns. |
$chr | (int) Char byte. |
Definiert in Zeile 1073 der Datei datamatrix.php.
Benutzt placeModule().
Wird benutzt von getPlacementMap().
|
protected |
Places "chr+bit" with appropriate wrapping within array[]. (Annex F - ECC 200 symbol character placement)
$marr | (array) Array of symbols. |
$nrow | (int) Number of rows. |
$ncol | (int) Number of columns. |
$row | (int) Row number. |
$col | (int) Column number. |
$chr | (int) Char byte. |
$bit | (int) Bit. |
Definiert in Zeile 960 der Datei datamatrix.php.
Wird benutzt von placeCornerA(), placeCornerB(), placeCornerC(), placeCornerD() und placeUtah().
|
protected |
Places the 8 bits of a utah-shaped symbol character. (Annex F - ECC 200 symbol character placement)
$marr | (array) Array of symbols. |
$nrow | (int) Number of rows. |
$ncol | (int) Number of columns. |
$row | (int) Row number. |
$col | (int) Column number. |
$chr | (int) Char byte. |
Definiert in Zeile 985 der Datei datamatrix.php.
Benutzt placeModule().
Wird benutzt von getPlacementMap().
|
protected |
Barcode array to be returned which is readable by TCPDF.
Definiert in Zeile 116 der Datei datamatrix.php.
Wird benutzt von __construct() und getBarcodeArray().
|
protected |
Basic set of characters for each encodation mode.
Definiert in Zeile 190 der Datei datamatrix.php.
Map encodation modes whit character sets.
Definiert in Zeile 184 der Datei datamatrix.php.
|
protected |
Store last used encoding for data codewords.
Definiert in Zeile 122 der Datei datamatrix.php.
|
protected |
Table of Data Matrix ECC 200 Symbol Attributes:
Definiert in Zeile 145 der Datei datamatrix.php.