public function __call($method, array $arguments = array()) { return parent::__call($method, $arguments); // TODO: Change the autogenerated stub }
/** * Magic overload: Proxy to other navigation helpers or the container * * Examples of usage from a view script or layout * * ``` * // proxy to Menu helper and render container: * echo $this->navigation()->menu(); * * // proxy to Breadcrumbs helper and set indentation: * $this->navigation()->breadcrumbs()->setIndent(8); * * // proxy to container and find all pages with 'blog' route: * $blogPages = $this->navigation()->findAllByRoute('blog'); * ``` * * @param string $method helper name or method name in container * @param array $arguments [optional] arguments to pass * @return mixed returns what the proxied call returns */ public function __call($method, array $arguments = array()) { // check if call should proxy to another helper $helper = $this->findHelper($method, false); if ($helper) { if (method_exists($helper, 'setCache')) { $helper->setCache($this->cache); } return call_user_func_array($helper, $arguments); } // default behaviour: proxy call to container return parent::__call($method, $arguments); }