Exemplo n.º 1
0
 /**
  * Call specified api model method or default of base model
  * @param string $name
  * @param array $params
  * @return mixed
  */
 public function __call($name, $params)
 {
     if (in_array($name, $this->methods)) {
         return $this->call($name);
     }
     return parent::__call($name, $params);
 }