public function fetchSitemapUrls()
 {
     $this->addUrl('files/index/index');
     foreach ($this->categoryRepository->getAllByModuleName(Schema::MODULE_NAME) as $category) {
         $this->addUrl('files/index/files/cat_' . $category['id']);
     }
     foreach ($this->filesRepository->getAll($this->date->getCurrentDateTime()) as $result) {
         $this->addUrl(sprintf(Helpers::URL_KEY_PATTERN, $result['id']), $this->date->format($result['updated_at'], 'Y-m-d'));
     }
 }
示例#2
0
 /**
  * Erstellt den Cache für die Kategorien eines Moduls
  *
  * @param string $moduleName
  *  Das Modul, für welches der Kategorien-Cache erstellt werden soll
  *
  * @return boolean
  */
 public function saveCache($moduleName)
 {
     return $this->cache->save($moduleName, $this->categoryRepository->getAllByModuleName($moduleName));
 }