dev.obliquid.com: general
[ class tree: general ] [ index: general ] [ all elements ]

Class: barcode

Source Location: Program_Root/classes/general/barcode.php

Class Overview


Barcode class


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 43]
Barcode class





[ Top ]


Class Variables

$a = array('0001101',         '0011001',         '0010011',         '0111101',         '0100011',         '0110001',         '0101111',         '0111011',         '0110111',         '0001011')

[line 46]




Type:   mixed


[ Top ]

$AB = array('aaaaaa',         'aababb',         'aabbab',         'aabbba',         'abaabb',         'abbaab',         'abbbaa',         'ababab',         'ababba',         'abbaba')

[line 79]




Type:   mixed


[ Top ]

$b = array('0100111',         '0110011',         '0011011',         '0100001',         '0011101',         '0111011',         '0000101',         '0010001',         '0001001',         '0010111')

[line 57]




Type:   mixed


[ Top ]

$bar128c = array('00' => '212222',
            '01' => '222122',
            '02' => '222221',
            '03' => '121223',
            '04' => '121322',
            '05' => '131222',
            '06' => '122213',
            '07' => '122312',
            '08' => '132212',
            '09' => '221213',
            '10' => '221312',
            '11' => '231212',
            '12' => '112232',
            '13' => '122132',
            '14' => '122231',
            '15' => '113222',
            '16' => '123122',
            '17' => '123221',
            '18' => '223211',
            '19' => '221132',
            '20' => '221231',
            '21' => '213212',
            '22' => '223112',
            '23' => '312131',
            '24' => '311222',
            '25' => '321122',
            '26' => '321221',
            '27' => '312212',
            '28' => '322112',
            '29' => '322211',
            '30' => '212123',
            '31' => '212321',
            '32' => '232121',
            '33' => '111323',
            '34' => '131123',
            '35' => '131321',
            '36' => '112313',
            '37' => '132113',
            '38' => '132311',
            '39' => '211313',
            '40' => '231113',
            '41' => '231311',
            '42' => '112133',
            '43' => '112331',
            '44' => '132131',
            '45' => '113123',
            '46' => '113321',
            '47' => '133121',
            '48' => '313121',
            '49' => '211331',
            '50' => '231131',
            '51' => '213113',
            '52' => '213311',
            '53' => '213131',
            '54' => '311123',
            '55' => '311321',
            '56' => '331121',
            '57' => '312113',
            '58' => '312311',
            '59' => '332111',
            '60' => '314111',
            '61' => '221411',
            '62' => '431111',
            '63' => '111224',
            '64' => '111422',
            '65' => '121124',
            '66' => '121421',
            '67' => '141122',
            '68' => '141221',
            '69' => '112214',
            '70' => '112412',
            '71' => '122114',
            '72' => '122411',
            '73' => '142112',
            '74' => '142211',
            '75' => '241211',
            '76' => '221114',
            '77' => '413111',
            '78' => '241112',
            '79' => '134111',
            '80' => '111242',
            '81' => '121142',
            '82' => '121241',
            '83' => '114212',
            '84' => '124112',
            '85' => '124211',
            '86' => '411212',
            '87' => '421112',
            '88' => '421211',
            '89' => '212141',
            '90' => '214121',
            '91' => '412121',
            '92' => '111143',
            '93' => '111341',
            '94' => '131141',
            '95' => '114113',
            '96' => '114311',
            '97' => '411113',
            '98' => '411311',
            '99' => '113141',
            'ST' => '211232',             'OP' => '2331112')

[line 210]




Type:   mixed


[ Top ]

$codabar = array('0' => '101010011',
            '1' => '101011001',
            '2' => '101001011',
            '3' => '110010101',
            '4' => '101101001',
            '5' => '110101001',
            '6' => '100101011',
            '7' => '100101101',
            '8' => '100110101',
            '9' => '110100101',
            '-' => '101001101',
            '$' => '101100101',
            ':' => '1101011011',
            '/' => '1101101011',
            '.' => '1101101101',
            '+' => '1011011011',
            'A' => '1011001001',             'B' => '1010010011',
            'C' => '1001001011',
            'D' => '1010011001',
            'a' => '1011001001',
            'b' => '1010010011',
            'c' => '1001001011',
            'd' => '1010011001')

[line 146]




Type:   mixed


[ Top ]

$code39 = array('0' => '101001101101',
            '1' => '110100101011',
            '2' => '101100101011',
            '3' => '110110010101',
            '4' => '101001101011',
            '5' => '110100110101',
            '6' => '101100110101',
            '7' => '101001011011',
            '8' => '110100101101',
            '9' => '101100101101',
            'A' => '110101001011',
            'B' => '101101001011',
            'C' => '110110100101',
            'D' => '101011001011',
            'E' => '110101100101',
            'F' => '101101100101',
            'G' => '101010011011',
            'H' => '110101001101',
            'I' => '101101001101',
            'J' => '101011001101',
            'K' => '110101010011',
            'L' => '101101010011',
            'M' => '110110101001',
            'N' => '101011010011',
            'O' => '110101101001',
            'P' => '101101101001',
            'Q' => '101010110011',
            'R' => '110101011001',
            'S' => '101101011001',
            'T' => '101011011001',
            'U' => '110010101011',
            'V' => '100110101011',
            'W' => '110011010101',
            'X' => '100101101011',
            'Y' => '110010110101',
            'Z' => '100110110101',
            '-' => '100101011011',
            '.' => '110010101101',
            ' ' => '100110101101',
            '$' => '100100100101',
            '/' => '100100101001',
            '+' => '100101001001',
            '%' => '101001001001',
            '*' => '100101101101')

[line 101]




Type:   mixed


[ Top ]

$kix = array('0' => 'mmww',             '1' => 'mbtw',
            '2' => 'mbwt',
            '3' => 'bmtw',
            '4' => 'bmwt',
            '5' => 'bbtt',
            '6' => 'mtbw',
            '7' => 'mwmw',
            '8' => 'mwbt',
            '9' => 'btmw',
            'A' => 'btbt',
            'B' => 'bwmt',
            'C' => 'mtwb',
            'D' => 'mwtb',
            'E' => 'mwwm',
            'F' => 'bttb',
            'G' => 'btwm',
            'H' => 'bwtm',
            'I' => 'tmbw',
            'J' => 'tbmw',
            'K' => 'tbbt',
            'L' => 'wmmw',
            'M' => 'wmbt',
            'N' => 'wbmt',
            'O' => 'tmwb',
            'P' => 'tbtb',
            'Q' => 'tbwm',
            'R' => 'wmtb',
            'S' => 'wmwm',
            'T' => 'wbtm',
            'U' => 'ttbb',
            'V' => 'twmb',
            'W' => 'twbm',
            'X' => 'wtmb',
            'Y' => 'wtmb',
            'Z' => 'wwmm')

[line 171]




Type:   mixed


[ Top ]

$right = array('1110010',         '1100110',         '1101100',         '1000010',         '1011100',         '1001110',         '1010000',         '1000100',         '1001000',         '1110100')

[line 68]




Type:   mixed


[ Top ]

$UPCE = array('bbbaaa',         'bbabaa',         'bbaaba',         'bbaaab',         'babbaa',         'baabba',         'baaabb',         'bababa',         'babaab',         'baabab')

[line 90]




Type:   mixed


[ Top ]



Class Methods


method create [line 324]

list($success, create( text $barcode, text $coding, [text $filename = ""], [boolean $dispcod = false])

Creates barcode image



Tags:

return:  result is boolean and message an error message


Parameters:

text   $barcode   the string to be encoded
text   $coding   the format, one of "DWIM" (Do what I mean), "UPC-A" (US/Canada), "UPC-E" (US/Canada), EAN-13 (Europe/Japan), "EAN-8" (Europe/Japan), "Code 39" (Text), "Codabar", "KIX", "128C"
text   $filename   an optional filename where the generated PNG image is saved. If no filename is given, the image will be sent to standard output
boolean   $dispcod   show or not the coding format on the top of the codebar The code string is always shown, this shows or not the coding name

[ Top ]

method createImage [line 719]

void createImage( mixed $x, mixed $y)





[ Top ]

method suffix [line 727]

void suffix( mixed &$position, mixed $value)





[ Top ]


Documentation generated on Tue, 29 Mar 2005 09:03:36 -0800 by phpDocumentor 1.2.0rc2