![]() |
TYPO3
7.6
|
Public Member Functions | |
injectEnvironmentService (\TYPO3\CMS\Extbase\Service\EnvironmentService $environmentService) | |
setStatus ($code, $message=null) | |
getStatus () | |
setHeader ($name, $value, $replaceExistingHeader=true) | |
getHeaders () | |
sendHeaders () | |
send () | |
getAdditionalHeaderData () | |
setRequest (\TYPO3\CMS\Extbase\Mvc\Web\Request $request) | |
getRequest () | |
shutdown () | |
![]() | |
setContent ($content) | |
appendContent ($content) | |
getContent () | |
shutdown () | |
__toString () | |
Protected Member Functions | |
getTypoScriptFrontendController () | |
Protected Attributes | |
$headers = array() | |
$additionalHeaderData = array() | |
$statusCode | |
$statusMessage = 'OK' | |
$request | |
$statusMessages | |
$environmentService | |
![]() | |
$content = null | |
A web specific response implementation
Definition at line 26 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
getAdditionalHeaderData | ( | ) |
Returns the additional header data
Definition at line 268 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\$additionalHeaderData.
Referenced by Response\shutdown().
getHeaders | ( | ) |
Returns the HTTP headers - including the status header - of this web response
Definition at line 189 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\$statusMessage.
Referenced by Response\sendHeaders().
getRequest | ( | ) |
Definition at line 284 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\$request.
getStatus | ( | ) |
Returns status code and status message.
Definition at line 156 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\$statusMessage.
|
protected |
Definition at line 306 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References $GLOBALS.
Referenced by Response\shutdown().
injectEnvironmentService | ( | \TYPO3\CMS\Extbase\Service\EnvironmentService | $environmentService | ) |
\TYPO3\CMS\Extbase\Service\EnvironmentService | $environmentService |
Definition at line 124 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\$environmentService.
send | ( | ) |
Renders and sends the whole web response
Definition at line 229 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\getContent(), and Response\sendHeaders().
sendHeaders | ( | ) |
Sends the HTTP headers.
If headers have already been sent, this method fails silently.
Definition at line 213 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\getHeaders().
Referenced by Response\send(), and Response\shutdown().
setHeader | ( | $name, | |
$value, | |||
$replaceExistingHeader = true |
|||
) |
Sets the specified HTTP header
string | $name | Name of the header, for example "Location", "Content-Description" etc. |
mixed | $value | The value of the given header |
bool | $replaceExistingHeader | If a header with the same name should be replaced. Default is TRUE. |
\InvalidArgumentException |
Definition at line 171 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
setRequest | ( | \TYPO3\CMS\Extbase\Mvc\Web\Request | $request | ) |
\TYPO3\CMS\Extbase\Mvc\Web\Request | $request |
Definition at line 276 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\$request.
setStatus | ( | $code, | |
$message = null |
|||
) |
Sets the HTTP status code and (optionally) a customized message.
int | $code | The status code |
string | $message | If specified, this message is sent instead of the standard message |
\InvalidArgumentException | if the specified status code is not valid |
Definition at line 138 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
shutdown | ( | ) |
Sends additional headers and returns the content
Implements ResponseInterface.
Definition at line 294 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
References Response\getAdditionalHeaderData(), Response\getTypoScriptFrontendController(), and Response\sendHeaders().
|
protected |
Definition at line 40 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
Referenced by Response\getAdditionalHeaderData().
|
protected |
Definition at line 119 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
Referenced by Response\injectEnvironmentService().
|
protected |
Definition at line 33 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
|
protected |
Definition at line 61 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
Referenced by Response\getRequest(), and Response\setRequest().
|
protected |
Definition at line 47 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
|
protected |
Definition at line 54 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.
Referenced by Response\getHeaders(), and Response\getStatus().
|
protected |
Definition at line 68 of file typo3/sysext/extbase/Classes/Mvc/Web/Response.php.