Ejemplo n.º 1
0
 /**
  * Intercept missing methods, pass any methods that begin with add to the
  * internal fieldsBuilder
  * @param  string $method
  * @param  array $args
  * @return mixed
  */
 public function __call($method, $args)
 {
     if (preg_match('/^add.+/', $method) && method_exists($this->fieldsBuilder, $method)) {
         $field = $this->callAddFieldMethod($method, $args);
         $field->setParentContext($this);
         return $field;
     }
     return parent::__call($method, $args);
 }