Esempio n. 1
0
 /**
  * Initializes the html frontend module
  * @return boolean
  */
 protected function Init()
 {
     $contentContainer = ContentContainer::Schema()->ByContent($this->content);
     $tree = new ContainerContentTreeProvider($contentContainer->GetContainer());
     $renderer = new ContentsRenderer($tree->TopMost(), $tree);
     $this->contents = $renderer->Render();
     return parent::Init();
 }
Esempio n. 2
0
 function Render()
 {
     $renderer = new ContentsRenderer($this->tree->TopMost(), $this->tree);
     return $renderer->Render();
 }
Esempio n. 3
0
 private function RenderPageChildren()
 {
     $pageContent = $this->content->GetPageContent();
     $provider = new PageContentTreeProvider($pageContent->GetPage(), $pageContent->GetArea());
     $renderer = new ContentsRenderer($provider->FirstChildOf($pageContent), $provider);
     return $renderer->Render();
 }