/** * @param mixed $content * @param string $websiteId * @param string $pageId * @param string $mode * @param array $globalContent * @param \Cms\Data\Page $page * @param null $codeType */ public function renderPageContent($content, $websiteId, $pageId, $mode, $globalContent, $page, $codeType = null) { // Check page content and stop/break nicely $content = $this->convertContentToArray($content); if (empty($content)) { return; } // create item meta data $currentItemInfo = array('id' => $pageId, 'websiteId' => $websiteId, 'name' => $page->getName(), 'pageType' => $page->getPageType(), 'description' => $page->getDescription(), 'date' => $page->getDate(), 'inNavigation' => $page->getInnavigation(), 'navigationTitle' => $page->getNavigationtitle(), 'globalContent' => $globalContent); $this->renderWithNewRenderer($content, $websiteId, $pageId, $mode, $currentItemInfo, $codeType, false); }
protected function setValuesFromData(PageData $data) { $this->setId($data->getId()); $this->setWebsiteId($data->getWebsiteid()); $this->setTemplateId($data->getTemplateid()); $this->setMediaId($data->getMediaId()); $this->setName($data->getName()); $this->setDescription($data->getDescription()); $this->setInNavigation($data->getInnavigation()); $this->setDate($data->getDate()); $this->setNavigationTitle($data->getNavigationtitle()); $this->setContent($data->getContent()); $this->setPageType($data->getPageType()); $this->setPageAttributes($data->getPageAttributes()); $this->setScreenshot(); }