TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Response Class Reference
Inheritance diagram for Response:
ResponseInterface Response 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 extbase/Classes/Mvc/Response.php.

Member Function Documentation

__toString ( )

Returns the content of the response.

Returns
string

Definition at line 83 of file extbase/Classes/Mvc/Response.php.

References Response\getContent().

appendContent (   $content)

Appends content to the already existing content.

Parameters
string$contentMore response content
Returns
void

Implements ResponseInterface.

Definition at line 48 of file extbase/Classes/Mvc/Response.php.

References Response\$content.

getContent ( )

Returns the response content without sending it.

Returns
string The response content

Implements ResponseInterface.

Definition at line 59 of file extbase/Classes/Mvc/Response.php.

References Response\$content.

Referenced by Response\__toString(), Response\send(), and Response\shutdown().

setContent (   $content)

Overrides and sets the content of the response

Parameters
string$contentThe response content
Returns
void

Implements ResponseInterface.

Definition at line 36 of file extbase/Classes/Mvc/Response.php.

References Response\$content.

Referenced by Response\shutdown().

shutdown ( )

Fetches the content, returns and clears it.

Returns
string

Implements ResponseInterface.

Definition at line 70 of file extbase/Classes/Mvc/Response.php.

References Response\$content, Response\getContent(), and Response\setContent().

Referenced by Response\send().

Member Data Documentation

$content = null
protected