Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getInput () | |
redirect ($url, $status=303) | |
allowCache ($allow=null) | |
setHeader ($name, $value, $replace=false) | |
getHeaders () | |
clearHeaders () | |
sendHeaders () | |
setBody ($content) | |
prependBody ($content) | |
appendBody ($content) | |
getBody () | |
getResponse () | |
isValidHttpStatus ($code) | |
setResponse (ResponseInterface $response) | |
isSslConnection () | |
Fonctions membres publiques hérités de ApplicationInterface | |
close ($code=0) | |
execute () | |
Application sub-interface defining a web application class
allowCache | ( | $allow = null | ) |
Set/get cachable state for the response.
If $allow is set, sets the cachable state of the response. Always returns the current state.
boolean | $allow | True to allow browser caching. |
Implémenté dans AbstractWebApplication.
appendBody | ( | $content | ) |
Append content to the body content
string | $content | The content to append to the response body. |
Implémenté dans AbstractWebApplication.
clearHeaders | ( | ) |
Method to clear any set response headers.
Implémenté dans AbstractWebApplication.
getBody | ( | ) |
Return the body content
Implémenté dans AbstractWebApplication.
getHeaders | ( | ) |
Method to get the array of response headers to be sent when the response is sent to the client.
Implémenté dans AbstractWebApplication.
getInput | ( | ) |
Method to get the application input object.
Implémenté dans AbstractWebApplication.
getResponse | ( | ) |
Get the PSR-7 Response Object.
Implémenté dans AbstractWebApplication.
isSslConnection | ( | ) |
Determine if we are using a secure (SSL) connection.
Implémenté dans AbstractWebApplication.
isValidHttpStatus | ( | $code | ) |
Check if the value is a valid HTTP status code
integer | $code | The potential status code |
Implémenté dans AbstractWebApplication.
prependBody | ( | $content | ) |
Prepend content to the body content
string | $content | The content to prepend to the response body. |
Implémenté dans AbstractWebApplication.
redirect | ( | $url, | |
$status = 303 |
|||
) |
Redirect to another URL.
If the headers have not been sent the redirect will be accomplished using a "301 Moved Permanently" or "303 See Other" code in the header pointing to the new location. If the headers have already been sent this will be accomplished using a JavaScript statement.
string | $url | The URL to redirect to. Can only be http/https URL |
integer | boolean | $status | The HTTP status code to be provided. 303 is assumed by default. |
Implémenté dans CMSApplication, et AbstractWebApplication.
sendHeaders | ( | ) |
setBody | ( | $content | ) |
Set body content. If body content already defined, this will replace it.
string | $content | The content to set as the response body. |
Implémenté dans AbstractWebApplication.
setHeader | ( | $name, | |
$value, | |||
$replace = false |
|||
) |
Method to set a response header.
If the replace flag is set then all headers with the given name will be replaced by the new one. The headers are stored in an internal array to be sent when the site is sent to the browser.
string | $name | The name of the header to set. |
string | $value | The value of the header to set. |
boolean | $replace | True to replace any headers with the same name. |
Implémenté dans AbstractWebApplication.
setResponse | ( | ResponseInterface | $response | ) |
Set the PSR-7 Response Object.
ResponseInterface | $response | The response object |
Implémenté dans AbstractWebApplication.