Example #1
0
 /**
  * The index handler.
  * 
  * @access public
  * @return string The HTML code.
  */
 public function index()
 {
     $Material = new Product_Material();
     $this->getView()->set('Materials', $Material->findList(array(), 'Name asc'));
     return $this->getView()->render();
 }
Example #2
0
 /**
  * The function returns current Reference product Material.
  * 
  * @access public
  * @return object The Material.
  */
 public function getMaterial()
 {
     $Material = new Product_Material();
     return $Material->findItem(array('Id = ' . $this->MaterialId));
 }