‪TYPO3CMS  10.4
AbstractView.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 
19 
23 abstract class ‪AbstractView implements ‪ViewInterface
24 {
28  protected ‪$controllerContext;
29 
36  protected ‪$variables = [];
37 
44  {
45  $this->controllerContext = ‪$controllerContext;
46  }
47 
56  public function ‪assign($key, $value)
57  {
58  $this->variables[$key] = $value;
59  return $this;
60  }
61 
68  public function ‪assignMultiple(array $values)
69  {
70  foreach ($values as $key => $value) {
71  $this->‪assign($key, $value);
72  }
73  return $this;
74  }
75 
86  {
87  return true;
88  }
89 
95  public function ‪initializeView()
96  {
97  }
98 }
‪TYPO3\CMS\Extbase\Mvc\View\AbstractView\setControllerContext
‪setControllerContext(ControllerContext $controllerContext)
Definition: AbstractView.php:41
‪TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext
Definition: ControllerContext.php:28
‪TYPO3\CMS\Extbase\Mvc\View\AbstractView\assignMultiple
‪TYPO3 CMS Extbase Mvc View AbstractView assignMultiple(array $values)
Definition: AbstractView.php:66
‪TYPO3\CMS\Extbase\Mvc\View\AbstractView\$controllerContext
‪TYPO3 CMS Extbase Mvc Controller ControllerContext $controllerContext
Definition: AbstractView.php:27
‪TYPO3\CMS\Extbase\Mvc\View\AbstractView\assign
‪TYPO3 CMS Extbase Mvc View AbstractView assign($key, $value)
Definition: AbstractView.php:54
‪TYPO3\CMS\Extbase\Mvc\View\AbstractView\$variables
‪array $variables
Definition: AbstractView.php:34
‪TYPO3\CMS\Extbase\Mvc\View\ViewInterface
Definition: ViewInterface.php:24
‪TYPO3\CMS\Extbase\Mvc\View\AbstractView\canRender
‪bool canRender(ControllerContext $controllerContext)
Definition: AbstractView.php:83
‪TYPO3\CMS\Extbase\Mvc\View\AbstractView\initializeView
‪initializeView()
Definition: AbstractView.php:93
‪TYPO3\CMS\Extbase\Mvc\View
Definition: AbstractView.php:16
‪TYPO3\CMS\Extbase\Mvc\View\AbstractView
Definition: AbstractView.php:24