コード例 #1
0
ファイル: Controller.php プロジェクト: telenok/news
 public function getCacheKey($additional = '')
 {
     if ($key = parent::getCacheKey($additional)) {
         return $key . implode('', $this->getCategoryIds()) . $this->getNewsCategoryUrlPattern() . $this->getPerPage() . $this->getPage() . $this->getIgnorePage();
     } else {
         return false;
     }
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: telenok/news
 public function getCacheKey($additional = '')
 {
     if ($key = parent::getCacheKey($additional)) {
         return $key . ($this->newsUrlId ?: 0);
     } else {
         return false;
     }
 }
コード例 #3
0
ファイル: Controller.php プロジェクト: telenok/news
 public function getCacheKey($additional = '')
 {
     if ($key = parent::getCacheKey($additional)) {
         return $key . ($this->newsCategory ? $this->newsCategory->getKey() : 0);
     } else {
         return false;
     }
 }