Пример #1
0
 /**
  * @param CreatorVisitor $visitor
  * @param string         $websiteId
  * @param string         $pageId
  */
 protected function setValues(CreatorVisitor $visitor, $websiteId, $pageId)
 {
     $context = $this->getCreatorContext();
     $this->result->setUsedModuleIds($visitor->getUsedModuleIds());
     $this->result->setLegacySupport((bool) $visitor->legacySupportActivated());
     $this->result->setPageContent($visitor->getContent());
     $this->result->setPageGlobal($context->getPageGlobal($websiteId, $pageId));
     $this->result->setPageMeta($context->getPageMeta($websiteId, $pageId));
     $this->result->setPageAttributes($context->getPageAttributes($websiteId, $pageId));
     $this->addUsedMediaAndAlbumIdsToResult();
 }