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'); }
private function doFetchRequest() { Session::checkSession(); return Request::call(Requests::getEntryList($this->module->getModuleName(), $this->prepareWhere(), $this->fields, $this->orderClause)); }