Commit d630b126 by darh

Added magic __call() method to allow more friendly calls from <?php ?> block in the templates

git-svn-id: svn://dwoo.org/dwoo/trunk@253 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent 703f3039
......@@ -1502,4 +1502,15 @@ class Dwoo
{
return $this->scope;
}
/**
* Redirects all calls to unexisting to plugin proxy.
*
* @param string Method name
* @param array List of arguments
* @return mixed
*/
public function __call($method, $args) {
return call_user_func_array($this->getPluginProxy()->getCallback($method), $args);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment