/** * 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)); }
/** * 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))); }