TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Mvc\Response Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Response:
TYPO3\CMS\Extbase\Mvc\ResponseInterface Tx_Extbase_MVC_Response TYPO3\CMS\Extbase\Mvc\Cli\Response TYPO3\CMS\Extbase\Mvc\Web\Response Tx_Extbase_MVC_CLI_Response Tx_Extbase_MVC_Web_Response

Public Member Functions

 setContent ($content)
 
 appendContent ($content)
 
 getContent ()
 
 shutdown ()
 
 __toString ()
 

Protected Attributes

 $content = NULL
 

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! A generic and very basic response implementation

Definition at line 21 of file Response.php.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Extbase\Mvc\Response::__toString ( )

Returns the content of the response.

Returns
string

Definition at line 78 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Response\getContent().

◆ appendContent()

TYPO3\CMS\Extbase\Mvc\Response::appendContent (   $content)

Appends content to the already existing content.

Parameters
string$contentMore response content
Returns
void

Implements TYPO3\CMS\Extbase\Mvc\ResponseInterface.

Definition at line 46 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Response\$content.

◆ getContent()

TYPO3\CMS\Extbase\Mvc\Response::getContent ( )

Returns the response content without sending it.

Returns
string The response content

Implements TYPO3\CMS\Extbase\Mvc\ResponseInterface.

Definition at line 56 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Response\$content.

Referenced by TYPO3\CMS\Extbase\Mvc\Response\__toString(), TYPO3\CMS\Extbase\Mvc\Web\Response\send(), and TYPO3\CMS\Extbase\Mvc\Response\shutdown().

◆ setContent()

TYPO3\CMS\Extbase\Mvc\Response::setContent (   $content)

Overrides and sets the content of the response

Parameters
string$contentThe response content
Returns
void

Implements TYPO3\CMS\Extbase\Mvc\ResponseInterface.

Definition at line 35 of file Response.php.

References TYPO3\CMS\Extbase\Mvc\Response\$content.

Referenced by TYPO3\CMS\Extbase\Mvc\Response\shutdown().

◆ shutdown()

TYPO3\CMS\Extbase\Mvc\Response::shutdown ( )

Member Data Documentation

◆ $content