TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Mvc\Response Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Mvc\Response:
TYPO3\CMS\Extbase\Mvc\ResponseInterface TYPO3\CMS\Extbase\Mvc\Cli\Response TYPO3\CMS\Extbase\Mvc\Web\Response

Public Member Functions

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

Protected Attributes

 $content = null
 

Detailed Description

A generic and very basic response implementation

Definition at line 22 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 83 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 48 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 59 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 36 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