TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Mvc\View\EmptyView Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\View\EmptyView:
TYPO3\CMS\Extbase\Mvc\View\ViewInterface Tx_Extbase_MVC_View_EmptyView

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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! 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 21 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 87 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 40 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 51 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
boolean TRUE

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

Definition at line 62 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 98 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 71 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 29 of file EmptyView.php.