‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Mvc\View\EmptyView Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\View\EmptyView:
TYPO3\CMS\Extbase\Mvc\View\ViewInterface

Public Member Functions

 __construct ()
 
 setControllerContext (ControllerContext $controllerContext)
 
TYPO3 CMS Extbase Mvc View EmptyView assign ($key, $value)
 
TYPO3 CMS Extbase Mvc View EmptyView assignMultiple (array $values)
 
bool canRender ()
 
string render ()
 
 __call ($methodName, array $arguments)
 
 initializeView ()
 

Detailed Description

An empty view - a special case.

Deprecated:
‪since v11, will be removed with 12.

Definition at line 25 of file EmptyView.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Mvc\View\EmptyView::__construct ( )

Definition at line 27 of file EmptyView.php.

Member Function Documentation

◆ __call()

TYPO3\CMS\Extbase\Mvc\View\EmptyView::__call (   $methodName,
array  $arguments 
)

A magic call method.

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
string$methodName
array$arguments

Definition at line 96 of file EmptyView.php.

◆ assign()

TYPO3 CMS Extbase Mvc View EmptyView TYPO3\CMS\Extbase\Mvc\View\EmptyView::assign (   $key,
  $value 
)

Dummy method to satisfy the ViewInterface

Parameters
string$key
mixed$value
Returns
‪\TYPO3\CMS\Extbase\Mvc\View\EmptyView instance of $this to allow chaining

Implements TYPO3\CMS\Extbase\Mvc\View\ViewInterface.

Definition at line 47 of file EmptyView.php.

◆ assignMultiple()

TYPO3 CMS Extbase Mvc View EmptyView TYPO3\CMS\Extbase\Mvc\View\EmptyView::assignMultiple ( array  $values)

Dummy method to satisfy the ViewInterface

Parameters
array$values
Returns
‪\TYPO3\CMS\Extbase\Mvc\View\EmptyView instance of $this to allow chaining

Implements TYPO3\CMS\Extbase\Mvc\View\ViewInterface.

Definition at line 58 of file EmptyView.php.

◆ canRender()

bool TYPO3\CMS\Extbase\Mvc\View\EmptyView::canRender ( )

This view can be used in any case.

Returns
‪bool TRUE
Deprecated:
‪since TYPO3 v11, will be removed in v12. Legacy method, not part of ViewInterface anymore.

Definition at line 69 of file EmptyView.php.

◆ initializeView()

TYPO3\CMS\Extbase\Mvc\View\EmptyView::initializeView ( )

Initializes this view.

Override this method for initializing your concrete view implementation.

Implements TYPO3\CMS\Extbase\Mvc\View\ViewInterface.

Definition at line 103 of file EmptyView.php.

◆ render()

string TYPO3\CMS\Extbase\Mvc\View\EmptyView::render ( )

Renders the empty view

Returns
‪string An empty string

Implements TYPO3\CMS\Extbase\Mvc\View\ViewInterface.

Definition at line 80 of file EmptyView.php.

◆ setControllerContext()

TYPO3\CMS\Extbase\Mvc\View\EmptyView::setControllerContext ( ControllerContext  $controllerContext)

Dummy method to satisfy the ViewInterface

Parameters
\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext$controllerContext

Implements TYPO3\CMS\Extbase\Mvc\View\ViewInterface.

Definition at line 38 of file EmptyView.php.