Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

xhtml_content_renderer.php
Go to the documentation of this file.
1 <?php
12 class ezpContentXHTMLRenderer extends ezpRestContentRendererInterface
13 {
19 public function __construct( ezpContent $content, ezpRestMvcController $controller )
20 {
21 $this->content = $content;
22 $this->controller = $controller;
23 }
24
30 public function render()
31 {
32 $tpl = eZTemplate::factory();
33 $ini = eZINI::instance( 'rest.ini' );
34
35 $nodeViewData = eZNodeviewfunctions::generateNodeViewData( $tpl, $this->content->main_node, $this->content->main_node->attribute( 'object' ), $this->content->activeLanguage, 'rest', 0 );
36
37 $tpl->setVariable( 'module_result', $nodeViewData );
38
39 $routingInfos = $this->controller->getRouter()->getRoutingInformation();
40 $templateName = $ini->variable( $routingInfos->controllerClass . '_'. $routingInfos->action . '_OutputSettings', 'Template' );
41
42 return $tpl->fetch( 'design:' . $templateName );
43 }
44 }
$ini
$ini
Definition: classes/admin/linklist.php:64
ezpContentXHTMLRenderer
Definition: xhtml_content_renderer.php:13
ezpContentXHTMLRenderer\render
render()
Definition: xhtml_content_renderer.php:30
ezpContentXHTMLRenderer\__construct
__construct(ezpContent $content, ezpRestMvcController $controller)
Definition: xhtml_content_renderer.php:19
ezpContent
Definition: private/api/content/content.php:57
ezpRestContentRendererInterface
Definition: interfaces/content_renderer.php:13
ezpRestContentRendererInterface\$content
$content
Definition: interfaces/content_renderer.php:17
ezpRestContentRendererInterface\$controller
$controller
Definition: interfaces/content_renderer.php:22
ezpRestMvcController
Definition: rest_controller.php:16
$tpl
$tpl
Definition: mailtofriend.php:58
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.