Example #1
0
 /**
  *  Magic method to allow calls to the category object
  */
 public function __call($method, $args)
 {
     foreach ($this->_table->getTemplates() as $template) {
         if (method_exists($template, $method)) {
             $template->setInvoker($this);
             return call_user_func_array(array($template, $method), $args);
         }
     }
     $methods = $this->getCategoryMethods();
     if (in_array($method, $methods)) {
         return call_user_func_array(array($this->getCategoryObject(), $method), $args);
     } else {
         return parent::__call($method, $args);
     }
 }