コード例 #1
0
ファイル: Detail.php プロジェクト: Comsa/modules
 /**
  * Load the data
  */
 protected function loadData()
 {
     //--Check the params
     if ($this->URL->getParameter(1) === null) {
         $this->redirect(FrontendNavigation::getURL(404));
     }
     //--Get record
     $this->record = FrontendGalleryModel::getAlbum($this->URL->getParameter(1));
     //--Redirect if empty
     if (empty($this->record)) {
         $this->redirect(FrontendNavigation::getURL(404));
     }
 }
コード例 #2
0
ファイル: Gallery.php プロジェクト: Comsa/modules
 /**
  * Load the data
  */
 private function loadData()
 {
     $this->record = FrontendGalleriaModel::getImagesForAlbum($this->data['id']);
 }
コード例 #3
0
ファイル: Index.php プロジェクト: Comsa-Veurne/modules
 /**
  * Load the data
  */
 protected function loadData()
 {
     $this->record = FrontendGalleryModel::getAlbumsForOverview();
 }