‪TYPO3CMS  10.4
BackendTemplateView.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
22 
28 {
32  protected ‪$moduleTemplate;
33 
37  protected ‪$templateView;
38 
43  {
44  $this->moduleTemplate = ‪$moduleTemplate;
45  }
46 
51  {
52  $this->templateView = ‪$templateView;
53  }
54 
58  public function ‪getModuleTemplate()
59  {
61  }
62 
72  public function ‪render($actionName = null)
73  {
74  $actionViewContent = $this->templateView->render($actionName);
75  $this->moduleTemplate->setContent($actionViewContent);
76  return $this->moduleTemplate->renderContent();
77  }
78 
84  public function ‪setControllerContext(‪ControllerContext $controllerContext)
85  {
86  $this->templateView->setControllerContext($controllerContext);
87  }
88 
96  public function ‪assign($key, $value)
97  {
98  $this->templateView->assign($key, $value);
99  return $this;
100  }
101 
109  public function ‪assignMultiple(array $values)
110  {
111  $this->templateView->assignMultiple($values);
112  return $this;
113  }
114 
121  public function ‪canRender(‪ControllerContext $controllerContext)
122  {
123  return $this->templateView->canRender($controllerContext);
124  }
125 
129  public function ‪initializeView()
130  {
131  $this->templateView->initializeView();
132  }
133 
139  public function ‪setTemplateRootPaths(array $templateRootPaths)
140  {
141  $this->templateView->setTemplateRootPaths($templateRootPaths);
142  }
143 
149  public function ‪setPartialRootPaths(array $partialRootPaths)
150  {
151  $this->templateView->setPartialRootPaths($partialRootPaths);
152  }
153 
159  public function ‪setLayoutRootPaths(array $layoutRootPaths)
160  {
161  $this->templateView->setLayoutRootPaths($layoutRootPaths);
162  }
163 }
‪TYPO3\CMS\Backend\View\BackendTemplateView\setPartialRootPaths
‪setPartialRootPaths(array $partialRootPaths)
Definition: BackendTemplateView.php:147
‪TYPO3\CMS\Backend\View\BackendTemplateView\setTemplateRootPaths
‪setTemplateRootPaths(array $templateRootPaths)
Definition: BackendTemplateView.php:137
‪TYPO3\CMS\Backend\View\BackendTemplateView\render
‪string render($actionName=null)
Definition: BackendTemplateView.php:70
‪TYPO3\CMS\Backend\View
Definition: ArrayBrowser.php:18
‪TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext
Definition: ControllerContext.php:28
‪TYPO3\CMS\Backend\View\BackendTemplateView\canRender
‪bool canRender(ControllerContext $controllerContext)
Definition: BackendTemplateView.php:119
‪TYPO3\CMS\Backend\View\BackendTemplateView\injectModuleTemplate
‪injectModuleTemplate(ModuleTemplate $moduleTemplate)
Definition: BackendTemplateView.php:40
‪TYPO3\CMS\Fluid\View\TemplateView
Definition: TemplateView.php:25
‪TYPO3\CMS\Backend\Template\ModuleTemplate
Definition: ModuleTemplate.php:43
‪TYPO3\CMS\Backend\View\BackendTemplateView\setControllerContext
‪setControllerContext(ControllerContext $controllerContext)
Definition: BackendTemplateView.php:82
‪TYPO3\CMS\Backend\View\BackendTemplateView\$templateView
‪TemplateView $templateView
Definition: BackendTemplateView.php:35
‪TYPO3\CMS\Backend\View\BackendTemplateView\assign
‪TYPO3 CMS Fluid View AbstractTemplateView assign($key, $value)
Definition: BackendTemplateView.php:94
‪TYPO3\CMS\Backend\View\BackendTemplateView\assignMultiple
‪TYPO3 CMS Fluid View AbstractTemplateView assignMultiple(array $values)
Definition: BackendTemplateView.php:107
‪TYPO3\CMS\Extbase\Mvc\View\ViewInterface
Definition: ViewInterface.php:24
‪TYPO3\CMS\Backend\View\BackendTemplateView
Definition: BackendTemplateView.php:28
‪TYPO3\CMS\Backend\View\BackendTemplateView\initializeView
‪initializeView()
Definition: BackendTemplateView.php:127
‪TYPO3\CMS\Backend\View\BackendTemplateView\injectTemplateView
‪injectTemplateView(TemplateView $templateView)
Definition: BackendTemplateView.php:48
‪TYPO3\CMS\Extbase\Mvc\View\ViewInterface\render
‪string render()
‪TYPO3\CMS\Backend\View\BackendTemplateView\getModuleTemplate
‪ModuleTemplate getModuleTemplate()
Definition: BackendTemplateView.php:56
‪TYPO3\CMS\Backend\View\BackendTemplateView\setLayoutRootPaths
‪setLayoutRootPaths(array $layoutRootPaths)
Definition: BackendTemplateView.php:157
‪TYPO3\CMS\Backend\View\BackendTemplateView\$moduleTemplate
‪ModuleTemplate $moduleTemplate
Definition: BackendTemplateView.php:31