TYPO3 CMS  TYPO3_7-6
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

 setControllerContext (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 assign ($key, $value)
 
 assignMultiple (array $values)
 
 canRender (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 render ()
 
 __call ($methodName, array $arguments)
 
 initializeView ()
 

Detailed Description

An empty view - a special case.

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

Definition at line 22 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
Returns
void

Definition at line 93 of file EmptyView.php.

◆ assign()

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

Dummy method to satisfy the ViewInterface

Parameters
string$key
mixed$value
Returns
instance of $this to allow chaining

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

Definition at line 42 of file EmptyView.php.

◆ assignMultiple()

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

Dummy method to satisfy the ViewInterface

Parameters
array$values
Returns
instance of $this to allow chaining

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

Definition at line 54 of file EmptyView.php.

◆ canRender()

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

This view can be used in any case.

Parameters
\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext$controllerContext
Returns
bool TRUE

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

Definition at line 66 of file EmptyView.php.

◆ initializeView()

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

Initializes this view.

Override this method for initializing your concrete view implementation.

Returns
void

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

Definition at line 105 of file EmptyView.php.

◆ render()

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 76 of file EmptyView.php.

◆ setControllerContext()

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

Dummy method to satisfy the ViewInterface

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

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

Definition at line 30 of file EmptyView.php.