示例#1
0
 /**
  * Search the mixin method map and call the method or forward the call to each row for processing.
  *
  * @param  string   $method    The function name
  * @param  array    $arguments The function arguments
  * @throws \BadMethodCallException   If method could not be found
  * @return mixed The result of the function
  */
 public function __call($method, $arguments)
 {
     //If the mixed method exists call it for all the rows
     if (!isset($this->_mixed_methods[$method])) {
         foreach ($this as $i => $row) {
             $row->__call($method, $arguments);
         }
         return $this;
     }
     return parent::__call($method, $arguments);
 }