Example #1
0
 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);
     }
 }
Example #2
0
 /**
  * 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);
 }