当前位置: 首页>>代码示例>>PHP>>正文


PHP BCGBarcode1D::__construct方法代码示例

本文整理汇总了PHP中BCGBarcode1D::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BCGBarcode1D::__construct方法的具体用法?PHP BCGBarcode1D::__construct怎么用?PHP BCGBarcode1D::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BCGBarcode1D的用法示例。


在下文中一共展示了BCGBarcode1D::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * 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);
 }
开发者ID:minorusal,项目名称:administrador,代码行数:10,代码来源:BCGs25.barcode.php

示例2: __construct

 /**
  * 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);
 }
开发者ID:lincome,项目名称:wechat-O2O-hyk,代码行数:10,代码来源:BCGmsi.barcode.php

示例3: __construct

 /**
  * 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);
 }
开发者ID:OranTing,项目名称:gdby_github_repo,代码行数:10,代码来源:BCGpostnet.barcode.php

示例4: __construct

 /**
  * 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));
 }
开发者ID:viktoredz,项目名称:bpom-spkp,代码行数:36,代码来源:BCGcode128.barcode.php

示例5: __construct

 /**
  * 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);
 }
开发者ID:pradeep-chauhan,项目名称:chanchal,代码行数:11,代码来源:BCGcode39.barcode.php

示例6: __construct

 /**
  * 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');
 }
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:11,代码来源:BCGean8.barcode.php

示例7: __construct

 /**
  * 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));
 }
开发者ID:OranTing,项目名称:gdby_github_repo,代码行数:11,代码来源:BCGupcext5.barcode.php

示例8: __construct

 /**
  * 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)));
 }
开发者ID:marsa1985,项目名称:kazabiz,代码行数:13,代码来源:BCGupce.barcode.php

示例9: __construct

 /**
  * 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);
 }
开发者ID:dducrest,项目名称:brewcompetitiononlineentry,代码行数:15,代码来源:BCGean13.barcode.php

示例10: __construct

 /**
  * 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');
 }
开发者ID:hscomp2002,项目名称:superp,代码行数:27,代码来源:BCGcode128.barcode.php

示例11: __construct

 /**
  * 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');
 }
开发者ID:shojibflamon,项目名称:Bar-Code-example,代码行数:9,代码来源:BCGcodabar.barcode.php

示例12: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
开发者ID:hscomp2002,项目名称:superp,代码行数:7,代码来源:BCGothercode.barcode.php

示例13: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->setQuietZone(true);
     $this->setThickness(9);
 }
开发者ID:sea129,项目名称:kbay,代码行数:9,代码来源:BCGintelligentmail.barcode.php

示例14: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->keys = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
 }
开发者ID:sea129,项目名称:kbay,代码行数:8,代码来源:BCGothercode.barcode.php

示例15:

 */
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;
开发者ID:guillermoluced,项目名称:Plugin-VirtueMart,代码行数:10,代码来源:BCGcode93.barcode.php


注:本文中的BCGBarcode1D::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。