Пример #1
0
 public static function __callStatic($name, $arguments)
 {
     Session::checkSession();
     $dynamicFinder = DynamicFinder::match($name);
     if ($dynamicFinder) {
         $where = Arrays::combine($dynamicFinder->getNames(), $arguments);
         return static::where($where);
     }
     throw new BadMethodCallException('Method [' . $name . '] not exists');
 }
Пример #2
0
 private function doFetchRequest()
 {
     Session::checkSession();
     return Request::call(Requests::getEntryList($this->module->getModuleName(), $this->prepareWhere(), $this->fields, $this->orderClause));
 }