protected function init($config) { if ($this->perPageChangeKey || $this->perPageSessionKey) { if (isset($_POST[$this->perPageChangeKey]) && is_numeric($_POST[$this->perPageChangeKey])) { $this->setLimitPerPage((int) $_POST[$this->perPageChangeKey]); WebApp::get()->request()->goBack(); } if ($this->perPageSessionKey && Session::get()->exists($this->perPageSessionKey)) { $this->perPage = Session::get()->value($this->perPageSessionKey); } elseif ($this->perPageCookieKey && Cookie::get()->exists($this->perPageCookieKey)) { Session::get()->set($this->perPageSessionKey, $this->perPage = Cookie::get()->value($this->perPageCookieKey)); } } return parent::init($config); }
protected function init($config) { self::$instance[get_class($this)] = $this; parent::init($config); }