TYPO3
7.6
|
Public Member Functions | |
setControllerContext (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext) | |
assign ($key, $value) | |
assignMultiple (array $values) | |
canRender (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext) | |
initializeView () | |
Public Member Functions inherited from ViewInterface | |
render () | |
Protected Attributes | |
$controllerContext | |
$variables = array() | |
An abstract View
Definition at line 22 of file AbstractView.php.
assign | ( | $key, | |
$value | |||
) |
Add a variable to $this->viewData. Can be chained, so $this->view->assign(..., ...)->assign(..., ...); is possible
string | $key | Key of variable |
mixed | $value | Value of object |
Implements ViewInterface.
Definition at line 58 of file AbstractView.php.
Referenced by AbstractView\assignMultiple().
assignMultiple | ( | array | $values | ) |
Add multiple variables to $this->viewData.
array | $values | array in the format array(key1 => value1, key2 => value2). |
Implements ViewInterface.
Definition at line 71 of file AbstractView.php.
References AbstractView\assign().
canRender | ( | \TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext | $controllerContext | ) |
Tells if the view implementation can render the view for the given context.
By default we assume that the view implementation can handle all kinds of contexts. Override this method if that is not the case.
\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext | $controllerContext |
Implements ViewInterface.
Definition at line 89 of file AbstractView.php.
initializeView | ( | ) |
Initializes this view.
Override this method for initializing your concrete view implementation.
Implements ViewInterface.
Definition at line 102 of file AbstractView.php.
setControllerContext | ( | \TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext | $controllerContext | ) |
Sets the current controller context
\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext | $controllerContext |
Implements ViewInterface.
Definition at line 44 of file AbstractView.php.
References AbstractView\$controllerContext.
|
protected |
Definition at line 28 of file AbstractView.php.
Referenced by AbstractView\setControllerContext().
|
protected |
Definition at line 36 of file AbstractView.php.
Referenced by JsonView\render().