‪TYPO3CMS  9.5
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)
 
string getContent ()
 
string shutdown ()
 
string __toString ()
 

Protected Attributes

string $content
 

Detailed Description

A generic and very basic response implementation

Definition at line 20 of file Response.php.

Member Function Documentation

◆ __toString()

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

Returns the content of the response.

Returns
‪string

Definition at line 73 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$content‪More response content

Implements TYPO3\CMS\Extbase\Mvc\ResponseInterface.

Definition at line 41 of file Response.php.

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

◆ getContent()

string 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 51 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$content‪The response content

Implements TYPO3\CMS\Extbase\Mvc\ResponseInterface.

Definition at line 31 of file Response.php.

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

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

◆ shutdown()

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

Member Data Documentation

◆ $content

string TYPO3\CMS\Extbase\Mvc\Response::$content
protected