‪TYPO3CMS  9.5
BackendTemplateView.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 
27 {
31  protected ‪$moduleTemplate;
32 
36  protected ‪$templateView;
37 
42  {
43  $this->moduleTemplate = ‪$moduleTemplate;
44  }
45 
50  {
51  $this->templateView = ‪$templateView;
52  }
53 
57  public function ‪getModuleTemplate()
58  {
60  }
61 
71  public function ‪render($actionName = null)
72  {
73  $actionViewContent = $this->templateView->render($actionName);
74  $this->moduleTemplate->setContent($actionViewContent);
75  return $this->moduleTemplate->renderContent();
76  }
77 
83  public function ‪setControllerContext(\‪TYPO3\CMS\‪Extbase\Mvc\Controller\‪ControllerContext $controllerContext)
84  {
85  $this->templateView->setControllerContext($controllerContext);
86  }
87 
95  public function ‪assign($key, $value)
96  {
97  $this->templateView->assign($key, $value);
98  return $this;
99  }
100 
108  public function ‪assignMultiple(array $values)
109  {
110  $this->templateView->assignMultiple($values);
111  return $this;
112  }
113 
120  public function ‪canRender(‪ControllerContext $controllerContext)
121  {
122  return $this->templateView->canRender($controllerContext);
123  }
124 
128  public function ‪initializeView()
129  {
130  $this->templateView->initializeView();
131  }
132 
138  public function ‪setTemplateRootPaths(array $templateRootPaths)
139  {
140  $this->templateView->setTemplateRootPaths($templateRootPaths);
141  }
142 
148  public function ‪setPartialRootPaths(array $partialRootPaths)
149  {
150  $this->templateView->setPartialRootPaths($partialRootPaths);
151  }
152 
158  public function ‪setLayoutRootPaths(array $layoutRootPaths)
159  {
160  $this->templateView->setLayoutRootPaths($layoutRootPaths);
161  }
162 }
‪TYPO3\CMS\Backend\View\BackendTemplateView\setPartialRootPaths
‪setPartialRootPaths(array $partialRootPaths)
Definition: BackendTemplateView.php:146
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3\CMS\Backend\View\BackendTemplateView\setTemplateRootPaths
‪setTemplateRootPaths(array $templateRootPaths)
Definition: BackendTemplateView.php:136
‪TYPO3\CMS\Backend\View\BackendTemplateView\render
‪string render($actionName=null)
Definition: BackendTemplateView.php:69
‪TYPO3\CMS\Backend\View
‪TYPO3
‪TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext
Definition: ControllerContext.php:21
‪TYPO3\CMS\Backend\View\BackendTemplateView\canRender
‪bool canRender(ControllerContext $controllerContext)
Definition: BackendTemplateView.php:118
‪TYPO3\CMS\Backend\View\BackendTemplateView\injectModuleTemplate
‪injectModuleTemplate(ModuleTemplate $moduleTemplate)
Definition: BackendTemplateView.php:39
‪TYPO3\CMS\Fluid\View\TemplateView
Definition: TemplateView.php:24
‪TYPO3\CMS\Backend\Template\ModuleTemplate
Definition: ModuleTemplate.php:40
‪TYPO3\CMS\Backend\View\BackendTemplateView\$templateView
‪TemplateView $templateView
Definition: BackendTemplateView.php:34
‪TYPO3\CMS\Backend\View\BackendTemplateView\assign
‪TYPO3 CMS Fluid View AbstractTemplateView assign($key, $value)
Definition: BackendTemplateView.php:93
‪TYPO3\CMS\Backend\View\BackendTemplateView\setControllerContext
‪setControllerContext(\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
Definition: BackendTemplateView.php:81
‪TYPO3\CMS\Backend\View\BackendTemplateView\assignMultiple
‪TYPO3 CMS Fluid View AbstractTemplateView assignMultiple(array $values)
Definition: BackendTemplateView.php:106
‪TYPO3\CMS\Extbase\Mvc\View\ViewInterface
Definition: ViewInterface.php:21
‪TYPO3\CMS\Backend\View\BackendTemplateView
Definition: BackendTemplateView.php:27
‪TYPO3\CMS\Backend\View\BackendTemplateView\initializeView
‪initializeView()
Definition: BackendTemplateView.php:126
‪TYPO3\CMS\Backend\View\BackendTemplateView\injectTemplateView
‪injectTemplateView(TemplateView $templateView)
Definition: BackendTemplateView.php:47
‪TYPO3\CMS\Extbase\Mvc\View\ViewInterface\render
‪string render()
‪TYPO3\CMS\Backend\View\BackendTemplateView\getModuleTemplate
‪ModuleTemplate getModuleTemplate()
Definition: BackendTemplateView.php:55
‪TYPO3\CMS\Backend\View\BackendTemplateView\setLayoutRootPaths
‪setLayoutRootPaths(array $layoutRootPaths)
Definition: BackendTemplateView.php:156
‪TYPO3\CMS\Backend\View\BackendTemplateView\$moduleTemplate
‪ModuleTemplate $moduleTemplate
Definition: BackendTemplateView.php:30