Example #1
0
 /**
  * Load group's pages information from meta file.
  */
 private function loadInfo()
 {
     if ($this->bInfoLoaded) {
         return;
     }
     try {
         //get PageGroup from storage system
         if (!$this->nId) {
             throw new AnwPageGroupNotFoundException();
         }
         AnwDebug::log("(AnwPageGroup)Loading PageGroup info...");
         $oPageGroup = AnwStorage::getPageGroup($this->nId);
         //PageGroup exists, update it's attributes
         $this->bExists = true;
         $this->sContentClass = $oPageGroup->getContentClassName();
         $this->aoPages = $oPageGroup->getPages();
     } catch (AnwPageGroupNotFoundException $e) {
         //PageGroup doesn't exist
         $this->bExists = false;
         $this->aoPages = array();
     }
     $this->bInfoLoaded = true;
 }