Exemplo n.º 1
0
 public function __call($method, $args)
 {
     if (!in_array($method, array('call', 'start', 'loop', 'setOpt'))) {
         throw new Exception("[error] {$method} is not exist!");
     }
     return call_user_func_array(array(BaseModel::getInstance(), $method), (array) $args);
 }
Exemplo n.º 2
0
 public static function handle()
 {
     BaseModel::getInstance()->handle(new static());
 }