Example #1
0
 function loadInfo()
 {
     if ($this->bInfoLoaded) {
         return;
     }
     try {
         $this->debug("Loading page info..." . ($this->bSkipLoadingTranslationsContent ? "(boost)" : "") . ($this->bSkipLoadingContent ? "(superboost)" : ""));
         if (!$this->isArchive()) {
             $oPage = AnwStorage::getPage($this->nId, $this->bSkipLoadingTranslationsContent, $this->bSkipLoadingContent);
         } else {
             $oPage = AnwStorage::getPageArchive($this->nId, $this->nChangeId, $this->bSkipLoadingTranslationsContent, $this->bSkipLoadingContent);
         }
         $this->sName = $oPage->getName();
         parent::doLoadInfo($oPage);
     } catch (AnwPageNotFoundException $e) {
         //page doesn't exist
         $this->bExists = false;
     }
     $this->bInfoLoaded = true;
 }