Пример #1
0
 public function getCustomPage($key)
 {
     if ($key == 'Terms') {
         $document = BOL_DocumentDao::getInstance()->findStaticDocument('terms-of-use');
         $content = OW::getLanguage()->text('base', "local_page_content_{$document->getKey()}");
         return $content;
     }
     return 'No content yet';
 }
Пример #2
0
 /**
  * Constructor.
  */
 private function __construct()
 {
     $this->documentDao = BOL_DocumentDao::getInstance();
     $this->menuItemDao = BOL_MenuItemDao::getInstance();
 }
Пример #3
0
 /**
  * Constructor.
  */
 protected function __construct()
 {
     parent::__construct();
     $this->documentDao = BOL_DocumentDao::getInstance();
 }
Пример #4
0
 public function getCustomPage($uri)
 {
     $document = BOL_DocumentDao::getInstance()->findStaticDocument($uri);
     if ($document === null) {
         return null;
     }
     return OW::getLanguage()->text('base', "local_page_content_{$document->getKey()}");
 }