Exemplo n.º 1
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     $this->code = array('0000202000', '2000000020', '0020000020', '2020000000', '0000200020', '2000200000', '0020200000', '0000002020', '2000002000', '0020002000');
     $this->setChecksum(false);
 }
Exemplo n.º 2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     $this->code = array('01010101', '01010110', '01011001', '01011010', '01100101', '01100110', '01101001', '01101010', '10010101', '10010110');
     $this->setChecksum(0);
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     $this->code = array('11000', '00011', '00101', '00110', '01001', '01010', '01100', '10001', '10010', '10100');
     $this->setThickness(9);
 }
Exemplo n.º 4
0
 /**
  * Constructor
  *
  * @param char $start
  */
 public function __construct($start = 'B')
 {
     parent::__construct();
     if ($start === 'A') {
         $this->starting = 103;
     } elseif ($start === 'B') {
         $this->starting = 104;
     } elseif ($start === 'C') {
         $this->starting = 105;
     }
     /* CODE 128 A */
     $this->keysA = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_';
     for ($i = 0; $i < 32; $i++) {
         $this->keysA .= chr($i);
     }
     /* CODE 128 B */
     $this->keysB = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~' . chr(127);
     /* CODE 128 C */
     $this->keysC = array();
     for ($i = 0; $i <= 9; $i++) {
         $this->keysC .= $i;
     }
     $this->code = array('101111', '111011', '111110', '010112', '010211', '020111', '011102', '011201', '021101', '110102', '110201', '120101', '001121', '011021', '011120', '002111', '012011', '012110', '112100', '110021', '110120', '102101', '112001', '201020', '200111', '210011', '210110', '201101', '211001', '211100', '101012', '101210', '121010', '000212', '020012', '020210', '001202', '021002', '021200', '100202', '120002', '120200', '001022', '001220', '021020', '002012', '002210', '022010', '202010', '100220', '120020', '102002', '102200', '102020', '200012', '200210', '220010', '201002', '201200', '221000', '203000', '110300', '320000', '000113', '000311', '010013', '010310', '030011', '030110', '001103', '001301', '011003', '011300', '031001', '031100', '130100', '110003', '302000', '130001', '023000', '000131', '010031', '010130', '003101', '013001', '013100', '300101', '310001', '310100', '101030', '103010', '301010', '000032', '000230', '020030', '003002', '003200', '300002', '300200', '002030', '003020', '200030', '300020', '100301', '100103', '100121', '122000');
     $this->errorText = '';
     $this->setStart($start);
     $this->setTilde(true);
     // Latches and Shifts
     $this->latch = array(array(null, self::KEYA_CODEB, self::KEYA_CODEC), array(self::KEYB_CODEA, null, self::KEYB_CODEC), array(self::KEYC_CODEA, self::KEYC_CODEB, null));
     $this->shift = array(array(null, self::KEYA_SHIFT), array(self::KEYB_SHIFT, null));
     $this->fnc = array(array(self::KEYA_FNC1, self::KEYA_FNC2, self::KEYA_FNC3, self::KEYA_FNC4), array(self::KEYB_FNC1, self::KEYB_FNC2, self::KEYB_FNC3, self::KEYB_FNC4), array(self::KEYC_FNC1, null, null, null));
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->starting = $this->ending = 43;
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '-', '.', ' ', '$', '/', '+', '%', '*');
     $this->code = array('0001101000', '1001000010', '0011000010', '1011000000', '0001100010', '1001100000', '0011100000', '0001001010', '1001001000', '0011001000', '1000010010', '0010010010', '1010010000', '0000110010', '1000110000', '0010110000', '0000011010', '1000011000', '0010011000', '0000111000', '1000000110', '0010000110', '1010000100', '0000100110', '1000100100', '0010100100', '0000001110', '1000001100', '0010001100', '0000101100', '1100000010', '0110000010', '1110000000', '0100100010', '1100100000', '0110100000', '0100001010', '1100001000', '0110001000', '0101010000', '0101000100', '0100010100', '0001010100', '0100101000');
     $this->setChecksum(false);
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     // Left-Hand Odd Parity starting with a space
     // Right-Hand is the same of Left-Hand starting with a bar
     $this->code = array('2100', '1110', '1011', '0300', '0021', '0120', '0003', '0201', '0102', '2001');
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     $this->code = array('2100', '1110', '1011', '0300', '0021', '0120', '0003', '0201', '0102', '2001');
     // Parity, 0=Odd, 1=Even. Depending Checksum
     $this->codeParity = array(array(1, 1, 0, 0, 0), array(1, 0, 1, 0, 0), array(1, 0, 0, 1, 0), array(1, 0, 0, 0, 1), array(0, 1, 1, 0, 0), array(0, 0, 1, 1, 0), array(0, 0, 0, 1, 1), array(0, 1, 0, 1, 0), array(0, 1, 0, 0, 1), array(0, 0, 1, 0, 1));
 }
 */
include_once 'BCGParseException.php';
include_once 'BCGBarcode1D.php';
class BCGcode93 extends BCGBarcode1D
{
    const EXTENDED_1 = 43;
    const EXTENDED_2 = 44;
    const EXTENDED_3 = 45;
    const EXTENDED_4 = 46;
    private $starting, $ending;
Exemplo n.º 9
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     // Odd Parity starting with a space
     // Even Parity is the inverse (0=0012) starting with a space
     $this->code = array('2100', '1110', '1011', '0300', '0021', '0120', '0003', '0201', '0102', '2001');
     // Parity, 0=Odd, 1=Even for manufacturer code. Depending on 1st System Digit and Checksum
     $this->codeParity = array(array(array(1, 1, 1, 0, 0, 0), array(1, 1, 0, 1, 0, 0), array(1, 1, 0, 0, 1, 0), array(1, 1, 0, 0, 0, 1), array(1, 0, 1, 1, 0, 0), array(1, 0, 0, 1, 1, 0), array(1, 0, 0, 0, 1, 1), array(1, 0, 1, 0, 1, 0), array(1, 0, 1, 0, 0, 1), array(1, 0, 0, 1, 0, 1)), array(array(0, 0, 0, 1, 1, 1), array(0, 0, 1, 0, 1, 1), array(0, 0, 1, 1, 0, 1), array(0, 0, 1, 1, 1, 0), array(0, 1, 0, 0, 1, 1), array(0, 1, 1, 0, 0, 1), array(0, 1, 1, 1, 0, 0), array(0, 1, 0, 1, 0, 1), array(0, 1, 0, 1, 1, 0), array(0, 1, 1, 0, 1, 0)));
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
     // Left-Hand Odd Parity starting with a space
     // Left-Hand Even Parity is the inverse (0=0012) starting with a space
     // Right-Hand is the same of Left-Hand starting with a bar
     $this->code = array('2100', '1110', '1011', '0300', '0021', '0120', '0003', '0201', '0102', '2001');
     // Parity, 0=Odd, 1=Even for manufacturer code. Depending on 1st System Digit
     $this->codeParity = array(array(0, 0, 0, 0, 0), array(0, 1, 0, 1, 1), array(0, 1, 1, 0, 1), array(0, 1, 1, 1, 0), array(1, 0, 0, 1, 1), array(1, 1, 0, 0, 1), array(1, 1, 1, 0, 0), array(1, 0, 1, 0, 1), array(1, 0, 1, 1, 0), array(1, 1, 0, 1, 0));
     $this->alignDefaultLabel(true);
 }
Exemplo n.º 11
0
 /**
  * Constructor.
  *
  * @param char $start
  */
 public function __construct($start = NULL)
 {
     parent::__construct();
     /* CODE 128 A */
     $this->keysA = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_';
     for ($i = 0; $i < 32; $i++) {
         $this->keysA .= chr($i);
     }
     /* CODE 128 B */
     $this->keysB = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~' . chr(127);
     /* CODE 128 C */
     $this->keysC = '0123456789';
     $this->code = array('101111', '111011', '111110', '010112', '010211', '020111', '011102', '011201', '021101', '110102', '110201', '120101', '001121', '011021', '011120', '002111', '012011', '012110', '112100', '110021', '110120', '102101', '112001', '201020', '200111', '210011', '210110', '201101', '211001', '211100', '101012', '101210', '121010', '000212', '020012', '020210', '001202', '021002', '021200', '100202', '120002', '120200', '001022', '001220', '021020', '002012', '002210', '022010', '202010', '100220', '120020', '102002', '102200', '102020', '200012', '200210', '220010', '201002', '201200', '221000', '203000', '110300', '320000', '000113', '000311', '010013', '010310', '030011', '030110', '001103', '001301', '011003', '011300', '031001', '031100', '130100', '110003', '302000', '130001', '023000', '000131', '010031', '010130', '003101', '013001', '013100', '300101', '310001', '310100', '101030', '103010', '301010', '000032', '000230', '020030', '003002', '003200', '300002', '300200', '002030', '003020', '200030', '300020', '100301', '100103', '100121', '122000');
     $this->setStart($start);
     $this->setTilde(true);
     // Latches and Shifts
     $this->latch = array(array(null, self::KEYA_CODEB, self::KEYA_CODEC), array(self::KEYB_CODEA, null, self::KEYB_CODEC), array(self::KEYC_CODEA, self::KEYC_CODEB, null));
     $this->shift = array(array(null, self::KEYA_SHIFT), array(self::KEYB_SHIFT, null));
     $this->fnc = array(array(self::KEYA_FNC1, self::KEYA_FNC2, self::KEYA_FNC3, self::KEYA_FNC4), array(self::KEYB_FNC1, self::KEYB_FNC2, self::KEYB_FNC3, self::KEYB_FNC4), array(self::KEYC_FNC1, null, null, null));
     // Method available
     $this->METHOD = array(CODE128_A => 'A', CODE128_B => 'B', CODE128_C => 'C');
 }
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '$', ':', '/', '.', '+', 'A', 'B', 'C', 'D');
     $this->code = array('00000110', '00001100', '00010010', '11000000', '00100100', '10000100', '01000010', '01001000', '01100000', '10010000', '00011000', '00110000', '10001010', '10100010', '10101000', '00111110', '00110100', '01010010', '00010110', '00011100');
 }
Exemplo n.º 13
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 14
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->setQuietZone(true);
     $this->setThickness(9);
 }
Exemplo n.º 15
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
 }