EmptyView implements ViewInterface
An empty view - a special case.
since v11, will be removed with 12.
Table of Contents
Interfaces
- ViewInterface
- Interface of a view
Methods
- __call() : mixed
- A magic call method.
- __construct() : mixed
- assign() : EmptyView
- Dummy method to satisfy the ViewInterface
- assignMultiple() : EmptyView
- Dummy method to satisfy the ViewInterface
- canRender() : bool
- This view can be used in any case.
- initializeView() : mixed
- Initializes this view.
- render() : string
- Renders the empty view
- setControllerContext() : mixed
- Dummy method to satisfy the ViewInterface
Methods
__call()
A magic call method.
public
__call(string $methodName, array<string|int, mixed> $arguments) : mixed
Because this empty view is used as a Special Case in situations when no matching view is available, it must be able to handle method calls which originally were directed to another type of view. This magic method should prevent PHP from issuing a fatal error.
Parameters
- $methodName : string
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
assign()
Dummy method to satisfy the ViewInterface
public
assign(string $key, mixed $value) : EmptyView
Parameters
- $key : string
- $value : mixed
Return values
EmptyView —instance of $this to allow chaining
assignMultiple()
Dummy method to satisfy the ViewInterface
public
assignMultiple(array<string|int, mixed> $values) : EmptyView
Parameters
- $values : array<string|int, mixed>
Return values
EmptyView —instance of $this to allow chaining
canRender()
This view can be used in any case.
public
canRender() : bool
since TYPO3 v11, will be removed in v12. Legacy method, not part of ViewInterface anymore.
Return values
bool —TRUE
initializeView()
Initializes this view.
public
initializeView() : mixed
Override this method for initializing your concrete view implementation.
render()
Renders the empty view
public
render() : string
Return values
string —An empty string
setControllerContext()
Dummy method to satisfy the ViewInterface
public
setControllerContext(ControllerContext $controllerContext) : mixed
Parameters
- $controllerContext : ControllerContext