示例#1
0
 /**
  * Return current template
  *
  * @return string
  */
 protected function getTemplate()
 {
     return $this->useBodyTemplate() ? $this->getBody() : parent::getTemplate();
 }
示例#2
0
 /**
  * Link session cell name with related list
  *
  * @return string
  */
 protected function getSessionCell()
 {
     $cell = parent::getSessionCell() . '_' . \XLite::getController()->getPagerSessionCell();
     return $cell;
 }
示例#3
0
文件: APager.php 项目: kingsj/core
 /**
  * isVisible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && ($this->isPagesListVisible() || $this->isItemsPerPageVisible());
 }
示例#4
0
 /**
  * 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;
 }
示例#5
0
 /**
  * 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;
 }