public function RulesConditionalContainer::__call in Conditional Rules 7
Same name and namespace in other branches
- 8 includes/rules_conditional.core.inc \RulesConditionalContainer::__call()
Intercepts calls to magic methods, possibly using reserved keywords.
Overrides RulesExtendable::__call
File
- includes/
rules_conditional.core.inc, line 33 - Conditional Rules framework implementation.
Class
- RulesConditionalContainer
- Base conditional statement plugin implementation.
Code
public function __call($name, $arguments = array()) {
if (in_array($name, $this->interceptMethods) && method_exists($this, $mapMethod = 'call_' . $name)) {
return call_user_func_array(array(
$this,
$mapMethod,
), $arguments);
}
else {
return parent::__call($name, $arguments);
}
}