Example #1
0
 /**
  * Copies the content from the other page given.
  * @param \Cx\Core\ContentManager\Model\Entity\Page $page
  * @param boolean $includeThemeOptions (optional) Wheter to adopt theme options as well (default false)
  */
 public function setContentOf($page, $includeThemeOptions = false)
 {
     $this->isVirtual = true;
     $this->content = $page->getContent();
     $this->module = $page->getModule();
     $this->cmd = $page->getCmd();
     if ($includeThemeOptions) {
         $this->skin = $page->getSkin();
         $this->customContent = $page->getCustomContent();
         $this->applicationTemplate = $page->getApplicationTemplate();
         $this->cssName = $page->getCssName();
     }
     $this->cssNavName = $page->getCssNavName();
     $this->type = $page->getType();
     $this->target = $page->getTarget();
 }
Example #2
0
 /**
  * Copies the content from the other page given.
  * @param \Cx\Core\ContentManager\Model\Entity\Page $page
  */
 public function getFallbackContentFrom($page)
 {
     $this->isVirtual = true;
     $this->content = $page->getContent();
     $this->module = $page->getModule();
     $this->cmd = $page->getCmd();
     $this->skin = $page->getSkin();
     $this->customContent = $page->getCustomContent();
     $this->cssName = $page->getCssName();
     $this->cssNavName = $page->getCssNavName();
     $this->type = $page->getType();
     $this->target = $page->getTarget();
 }
 public function getCssNavName()
 {
     $this->_load();
     return parent::getCssNavName();
 }