You are here

public function RulesFormsAttributeWrapper::__call in Rules Forms Support 7.2

Magic method: Retrieve data from parent form element.

This is done by calling getElement methods directly. Setter methods are not supported.

File

includes/rules_forms.wrapper.inc, line 261
Manages and Process Form structure.

Class

RulesFormsAttributeWrapper
Wrapper class for form element attributes.

Code

public function __call($method, array $args) {
  if (substr($method, 0, 10) === 'getElement' && method_exists($this->info['parent'], $method)) {
    return call_user_func_array(array(
      $this->info['parent'],
      $method,
    ), $args);
  }
}