Beispiel #1
0
 /**
  * The function returns current product Category.
  * 
  * @access public
  * @return object The Category.
  */
 public function getCategory()
 {
     $Category = new Product_Category();
     return $Category->findItem(array('Id = ' . $this->CategoryId));
 }
Beispiel #2
0
 /**
  * The function returns Product Category for current Layout.
  * 
  * @access public
  * @return object The Product Category.
  */
 public function getCategory()
 {
     $Category = new Product_Category();
     return $Category->findItem(array('Layout = ' . get_class($this)));
 }