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'; }
/** * Constructor. */ private function __construct() { $this->documentDao = BOL_DocumentDao::getInstance(); $this->menuItemDao = BOL_MenuItemDao::getInstance(); }
/** * Constructor. */ protected function __construct() { parent::__construct(); $this->documentDao = BOL_DocumentDao::getInstance(); }
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()}"); }