You are here

public function RulesConditionalContainer::__call in Conditional Rules 8

Same name and namespace in other branches
  1. 7 includes/rules_conditional.core.inc \RulesConditionalContainer::__call()

Intercepts calls to magic methods, possibly using reserved keywords.

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);
  }
}