/** * Return current template * * @return string */ protected function getTemplate() { return $this->useBodyTemplate() ? $this->getBody() : parent::getTemplate(); }
/** * Link session cell name with related list * * @return string */ protected function getSessionCell() { $cell = parent::getSessionCell() . '_' . \XLite::getController()->getPagerSessionCell(); return $cell; }
/** * isVisible * * @return boolean */ protected function isVisible() { return parent::isVisible() && ($this->isPagesListVisible() || $this->isItemsPerPageVisible()); }
/** * Avoid using preselect from session * * @param string $param Parameter name * * @return mixed */ protected function getSavedRequestParam($param) { $result = null; if (static::PARAM_PRESELECT != $param) { $result = parent::getSavedRequestParam($param); } return $result; }
/** * Unset 'pageId' value from saved parameters * * @param string $param Parameter name * * @return mixed */ protected function getSavedRequestParam($param) { $result = null; if ($this->isSavedPageId() || static::PARAM_PAGE_ID != $param) { $result = parent::getSavedRequestParam($param); } return $result; }