ILIAS
eassessment Revision 61809
|
Public Member Functions | |
__construct ($code, $type) | |
This is the class constructor. | |
getBarcodeArray () | |
Return an array representations of barcode. | |
setBarcode ($code, $type) | |
Set the barcode. | |
dec_to_hex ($number) | |
Convert large integer number to hexadecimal representation. | |
hex_to_dec ($hex) | |
Convert large hexadecimal number to decimal representation (string). |
Protected Member Functions | |
barcode_code39 ($code, $extended=false, $checksum=false) | |
CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9. | |
encode_code39_ext ($code) | |
Encode a string to be used for CODE 39 Extended mode. | |
checksum_code39 ($code) | |
Calculate CODE 39 checksum (modulo 43). | |
barcode_code93 ($code) | |
CODE 93 - USS-93 Compact code similar to Code 39. | |
checksum_code93 ($code) | |
Calculate CODE 93 checksum (modulo 47). | |
checksum_s25 ($code) | |
Checksum for standard 2 of 5 barcodes. | |
barcode_msi ($code, $checksum=false) | |
MSI. | |
barcode_s25 ($code, $checksum=false) | |
Standard 2 of 5 barcodes. | |
binseq_to_array ($seq, $bararray) | |
Convert binary barcode sequence to TCPDF barcode array. | |
barcode_i25 ($code, $checksum=false) | |
Interleaved 2 of 5 barcodes. | |
barcode_c128 ($code, $type='B') | |
C128 barcodes. | |
barcode_eanupc ($code, $len=13) | |
EAN13 and UPC-A barcodes. | |
barcode_eanext ($code, $len=5) | |
UPC-Based Extentions 2-Digit Ext. | |
barcode_postnet ($code, $planet=false) | |
POSTNET and PLANET barcodes. | |
barcode_rms4cc ($code, $kix=false) | |
RMS4CC - CBC - KIX RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index) RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service. | |
barcode_codabar ($code) | |
CODABAR barcodes. | |
barcode_code11 ($code) | |
CODE11 barcodes. | |
barcode_pharmacode ($code) | |
Pharmacode Contains digits (0 to 9) | |
barcode_pharmacode2t ($code) | |
Pharmacode two-track Contains digits (0 to 9) | |
barcode_imb ($code) | |
IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200 (requires PHP bcmath extension) Intelligent Mail barcode is a 65-bar code for use on mail in the United States. | |
imb_crc11fcs ($code_arr) | |
Intelligent Mail Barcode calculation of Frame Check Sequence. | |
imb_reverse_us ($num) | |
Reverse unsigned short value. | |
imb_tables ($n, $size) | |
generate Nof13 tables used for Intelligent Mail Barcode |
Protected Attributes | |
$barcode_array |
Definition at line 55 of file barcodes.php.
TCPDFBarcode::__construct | ( | $code, | |
$type | |||
) |
This is the class constructor.
Return an array representations for common 1D barcodes:
string | $code | code to print |
string | $type | type of barcode:
|
Definition at line 77 of file barcodes.php.
References $type, and setBarcode().
|
protected |
C128 barcodes.
Very capable code, excellent density, high reliability; in very wide use world-wide
string | $code | code to represent. |
string | $type | barcode type: A, B or C |
Definition at line 792 of file barcodes.php.
Referenced by setBarcode().
|
protected |
CODABAR barcodes.
Older code often used in library systems, sometimes in blood banks
string | $code | code to represent. |
Definition at line 1480 of file barcodes.php.
References $t.
Referenced by setBarcode().
|
protected |
CODE11 barcodes.
Used primarily for labeling telecommunications equipment
string | $code | code to represent. |
Definition at line 1536 of file barcodes.php.
References $t.
Referenced by setBarcode().
|
protected |
CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.
General-purpose code in very wide use world-wide
string | $code | code to represent. |
boolean | $checksum | if true add a checksum to the code |
Definition at line 230 of file barcodes.php.
References $t, checksum_code39(), and encode_code39_ext().
Referenced by setBarcode().
|
protected |
CODE 93 - USS-93 Compact code similar to Code 39.
string | $code | code to represent. |
boolean | $checksum | if true add a checksum to the code |
Definition at line 399 of file barcodes.php.
References $t, and checksum_code93().
Referenced by setBarcode().
|
protected |
UPC-Based Extentions 2-Digit Ext.
: Used to indicate magazines and newspaper issue numbers 5-Digit Ext.: Used to mark suggested retail price of books
string | $code | code to represent. |
string | $len | barcode type: 2 = 2-Digit, 5 = 5-Digit |
Definition at line 1181 of file barcodes.php.
References binseq_to_array().
Referenced by setBarcode().
|
protected |
EAN13 and UPC-A barcodes.
EAN13: European Article Numbering international retail product code UPC-A: Universal product code seen on almost all retail products in the USA and Canada UPC-E: Short version of UPC symbol
string | $code | code to represent. |
string | $len | barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A |
Definition at line 988 of file barcodes.php.
References $t.
Referenced by setBarcode().
|
protected |
Interleaved 2 of 5 barcodes.
Compact numeric code, widely used in industry, air cargo Contains digits (0 to 9) and encodes the data in the width of both bars and spaces.
string | $code | code to represent. |
boolean | $checksum | if true add a checksum to the code |
Definition at line 728 of file barcodes.php.
References $t, and checksum_s25().
Referenced by setBarcode().
|
protected |
IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200 (requires PHP bcmath extension) Intelligent Mail barcode is a 65-bar code for use on mail in the United States.
The fields are described as follows:
string | $code | code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode) |
Definition at line 1717 of file barcodes.php.
References $data, dec_to_hex(), hex_to_dec(), imb_crc11fcs(), and imb_tables().
Referenced by setBarcode().
|
protected |
MSI.
Variation of Plessey code, with similar applications Contains digits (0 to 9) and encodes the data only in the width of bars.
string | $code | code to represent. |
boolean | $checksum | if true add a checksum to the code (modulo 11) |
Definition at line 598 of file barcodes.php.
References binseq_to_array().
Referenced by setBarcode().
|
protected |
Pharmacode Contains digits (0 to 9)
string | $code | code to represent. |
Definition at line 1628 of file barcodes.php.
References binseq_to_array().
Referenced by setBarcode().
|
protected |
Pharmacode two-track Contains digits (0 to 9)
string | $code | code to represent. |
Definition at line 1654 of file barcodes.php.
Referenced by setBarcode().
|
protected |
POSTNET and PLANET barcodes.
Used by U.S. Postal Service for automated mail sorting
string | $code | zip code to represent. Must be a string containing a zip code of the form DDDDD or DDDDD-DDDD. |
boolean | $planet | if true print the PLANET barcode, otherwise print POSTNET |
Definition at line 1256 of file barcodes.php.
Referenced by setBarcode().
|
protected |
RMS4CC - CBC - KIX RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index) RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service.
string | $code | code to print |
boolean | $kix | if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) - in this case the house number must be sufficed with an X and placed at the end of the code. |
Definition at line 1329 of file barcodes.php.
References $row.
Referenced by setBarcode().
|
protected |
Standard 2 of 5 barcodes.
Used in airline ticket marking, photofinishing Contains digits (0 to 9) and encodes the data only in the width of bars.
string | $code | code to represent. |
boolean | $checksum | if true add a checksum to the code |
Definition at line 657 of file barcodes.php.
References binseq_to_array(), and checksum_s25().
Referenced by setBarcode().
|
protected |
Convert binary barcode sequence to TCPDF barcode array.
string | $seq | barcode as binary sequence òparam array $bararray TCPDF barcode array to fill up |
Definition at line 698 of file barcodes.php.
References $t.
Referenced by barcode_eanext(), barcode_msi(), barcode_pharmacode(), and barcode_s25().
|
protected |
Calculate CODE 39 checksum (modulo 43).
string | $code | code to represent. |
Definition at line 375 of file barcodes.php.
Referenced by barcode_code39().
|
protected |
Calculate CODE 93 checksum (modulo 47).
string | $code | code to represent. |
Definition at line 527 of file barcodes.php.
Referenced by barcode_code93().
|
protected |
Checksum for standard 2 of 5 barcodes.
string | $code | code to process. |
Definition at line 572 of file barcodes.php.
Referenced by barcode_i25(), and barcode_s25().
TCPDFBarcode::dec_to_hex | ( | $number | ) |
Convert large integer number to hexadecimal representation.
(requires PHP bcmath extension)
string | $number | number to convert specified as a string |
Definition at line 1841 of file barcodes.php.
Referenced by barcode_imb().
|
protected |
Encode a string to be used for CODE 39 Extended mode.
string | $code | code to represent. |
Definition at line 324 of file barcodes.php.
Referenced by barcode_code39().
TCPDFBarcode::getBarcodeArray | ( | ) |
Return an array representations of barcode.
Definition at line 85 of file barcodes.php.
References $barcode_array.
TCPDFBarcode::hex_to_dec | ( | $hex | ) |
Convert large hexadecimal number to decimal representation (string).
(requires PHP bcmath extension)
string | $hex | hexadecimal number to convert specified as a string |
Definition at line 1865 of file barcodes.php.
References $pos.
Referenced by barcode_imb().
|
protected |
Intelligent Mail Barcode calculation of Frame Check Sequence.
string | $code_arr | array of hexadecimal values (13 bytes holding 102 bits right justified). |
Definition at line 1882 of file barcodes.php.
References $data.
Referenced by barcode_imb().
|
protected |
Reverse unsigned short value.
int | $num | value to reversr |
Definition at line 1918 of file barcodes.php.
Referenced by imb_tables().
|
protected |
generate Nof13 tables used for Intelligent Mail Barcode
int | $n | is the type of table: 2 for 2of13 table, 5 for 5of13table |
int | $size | size of table (78 for n=2 and 1287 for n=5) |
Definition at line 1935 of file barcodes.php.
References imb_reverse_us().
Referenced by barcode_imb().
TCPDFBarcode::setBarcode | ( | $code, | |
$type | |||
) |
Set the barcode.
string | $code | code to print |
string | $type | type of barcode:
|
Definition at line 95 of file barcodes.php.
References $type, barcode_c128(), barcode_codabar(), barcode_code11(), barcode_code39(), barcode_code93(), barcode_eanext(), barcode_eanupc(), barcode_i25(), barcode_imb(), barcode_msi(), barcode_pharmacode(), barcode_pharmacode2t(), barcode_postnet(), barcode_rms4cc(), and barcode_s25().
Referenced by __construct().
|
protected |
Definition at line 61 of file barcodes.php.
Referenced by getBarcodeArray().