示例#1
0
文件: UPCE.php 项目: kostya1017/our
 protected function parse_upc()
 {
     parent::parse_upc();
     $this->toUPCA();
     if ($this->upca) {
         $this->man = substr($this->upca, 1, 5);
         $this->prod = substr($this->upca, 6, 5);
     }
 }
示例#2
0
文件: UPCA.php 项目: kostya1017/our
 /**
  * Parse the components of a UPC. For UPC-A
  * get the manufacturer's id and the product code
  */
 protected function parse_upc()
 {
     parent::parse_upc();
     $this->man = self::parse_man($this->upc);
     $this->prod = self::parse_prod($this->upc);
 }