Свойство | Тип | Описание | |
---|---|---|---|
$barcode_array | Barcode array to be returned which is readable by Dinesh Rabara. | ||
$clusters | 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:
|
||
$rsfactors | Array of factors of the Reed-Solomon polynomial equations used for error correction; one sub array for each correction level (0-8). | ||
$start_pattern | Start pattern. | ||
$stop_pattern | Stop pattern. | ||
$textlatch | Array of switching codes for Text Compaction Sub-Modes. | ||
$textsubmodes | Array of text Compaction Sub-Modes (values 0xFB - 0xFF are used for submode changers). |
Метод | Описание | |
---|---|---|
__construct ( $code, $ecl, $aspectratio = 2, $macro = [] ) | This is the class constructor. | |
getBarcodeArray ( ) : array | Returns a barcode array which is readable by Dinesh Rabara |
Метод | Описание | |
---|---|---|
getCompaction ( $mode, $code, $addmode = true ) : array | Compact data by mode. | |
getErrorCorrection ( $cw, $ecl ) : array | Returns the error correction codewords | |
getErrorCorrectionLevel ( $ecl, $numcw ) : integer | Returns the error correction level (0-8) to be used | |
getInputSequences ( $code ) : bidimensional | Create array of sequences from input |
public __construct ( $code, $ecl, $aspectratio = 2, $macro = [] ) | ||
$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 |
public getBarcodeArray ( ) : array | ||
Результат | array | barcode array readable by Dinesh Rabara; |
protected getCompaction ( $mode, $code, $addmode = true ) : array | ||
$mode | (int) compaction mode number | |
$code | (string) data to compact | |
$addmode | (boolean) if true add the mode codeword at first position | |
Результат | array | of codewords |
protected getErrorCorrection ( $cw, $ecl ) : array | ||
$cw | (array) array of codewords including Symbol Lenght Descriptor and pad | |
$ecl | (int) error correction level 0-8 | |
Результат | array | of error correction codewords |
protected getErrorCorrectionLevel ( $ecl, $numcw ) : integer | ||
$ecl | (int) error correction level | |
$numcw | (int) number of data codewords | |
Результат | integer | error correction level |
protected getInputSequences ( $code ) : bidimensional | ||
$code | (string) code | |
Результат | bidimensional | array containing characters and classification |
protected $barcode_array |
protected $clusters |
protected $rsfactors |
protected $textlatch |