Exemplo n.º 1
0
 /**
  * loadLinkedPage()
  * @param Zend_Db_Table_Row_Abstract $objLinkedPage
  * @author Thomas Schedler <*****@*****.**>
  * @version 1.0
  */
 private function setPageLinkData($objLinkedPage)
 {
     try {
         $objParentFoldersData = $this->objModelPages->loadParentFolders($objLinkedPage->id);
         $strBreadcrumb = '';
         if (count($objParentFoldersData) > 0) {
             foreach ($objParentFoldersData as $objParentFolder) {
                 $strBreadcrumb = ' » ' . $objParentFolder->title . $strBreadcrumb;
             }
         }
         $this->objElement->setValue($objLinkedPage->pageId);
         $this->objElement->strLinkedPageId = $objLinkedPage->pageId;
         $this->objElement->intLinkedPageVersion = $objLinkedPage->version;
         $this->objElement->strLinkedPageTitle = $objLinkedPage->title;
         $this->objElement->strLinkedPageUrl = '/' . strtolower($objLinkedPage->languageCode) . '/' . $objLinkedPage->url;
         $this->objElement->intLinkedPageId = $objLinkedPage->id;
         $this->objElement->strLinkedPageBreadcrumb = ltrim($strBreadcrumb, ' » ') . ' » ';
     } catch (Exception $exc) {
         $this->core->logger->err($exc);
     }
 }