TYPO3 CMS  TYPO3_6-2
AbstractView.php
Go to the documentation of this file.
1 <?php
3 
22 
27  protected $controllerContext;
28 
35  protected $variables = array();
36 
43  public function setControllerContext(\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext) {
44  $this->controllerContext = $controllerContext;
45  }
46 
56  public function assign($key, $value) {
57  $this->variables[$key] = $value;
58  return $this;
59  }
60 
68  public function assignMultiple(array $values) {
69  foreach ($values as $key => $value) {
70  $this->assign($key, $value);
71  }
72  return $this;
73  }
74 
85  public function canRender(\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext) {
86  return TRUE;
87  }
88 
97  public function initializeView() {
98  }
99 }
canRender(\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
setControllerContext(\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)