Esempio n. 1
0
 /**
  * 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));
     }
 }
Esempio n. 2
0
 /**
  * Load the data
  */
 private function loadData()
 {
     $this->record = FrontendGalleriaModel::getImagesForAlbum($this->data['id']);
 }
Esempio n. 3
0
 /**
  * Load the data
  */
 protected function loadData()
 {
     $this->record = FrontendGalleryModel::getAlbumsForOverview();
 }