コード例 #1
0
ファイル: item.php プロジェクト: vosaan/ankor.local
 /**
  * The function returns Product object for current Item.
  * 
  * @access public
  * @return object The Product object.
  */
 public function getProduct()
 {
     if ($this->cachedProduct === null) {
         $Product = new Product_Unit();
         $this->cachedProduct = $Product->findItem(array('Id = ' . $this->Product));
     }
     return $this->cachedProduct;
 }
コード例 #2
0
ファイル: custom.php プロジェクト: vosaan/ankor.local
 public function getUnit()
 {
     $Unit = new Product_Unit();
     return $Unit->findItem(array('Id = ' . $this->Unit));
 }