Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function getId()
 {
     if ($this->__isInitialized__ === false) {
         return parent::getId();
     }
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', array());
     return parent::getId();
 }
Пример #2
0
 /**
  * Holt anhand der Website-ID Daten zu den in der Navigation verwendeten Pages
  *
  * @param \Orm\Entity\Website $website
  * @return string
  */
 protected function getNavigationWithDataFromWebsite($website)
 {
     $pageInfos = $this->getBusiness('Page')->getInfosByWebsiteId($website->getId());
     $navigation = \Zend_Json::decode($website->getNavigation());
     $arrayVerwalter = new Seitenbau\ArrayData();
     if (is_array($pageInfos) && count($pageInfos) > 0 && is_array($navigation)) {
         $arrayVerwalter->mergeData($navigation, $pageInfos);
     }
     return $navigation;
 }