Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ( $xml, int $status=200, array $headers=[]) | |
Fonctions membres publiques hérités de Response | |
__construct ($body='php://memory', int $status=200, array $headers=[]) | |
getStatusCode () | |
getReasonPhrase () | |
withStatus ($code, $reasonPhrase='') | |
Fonctions membres publiques hérités de MessageInterface | |
getProtocolVersion () | |
withProtocolVersion ($version) | |
getHeaders () | |
hasHeader ($name) | |
getHeader ($name) | |
getHeaderLine ($name) | |
withHeader ($name, $value) | |
withAddedHeader ($name, $value) | |
withoutHeader ($name) | |
getBody () | |
withBody (StreamInterface $body) | |
Fonctions membres privées | |
createBody ($xml) | |
Membres hérités additionnels | |
Champs de données hérités de Response | |
const | MIN_STATUS_CODE_VALUE = 100 |
const | MAX_STATUS_CODE_VALUE = 599 |
XML response.
Allows creating a response by passing an XML string to the constructor; by default, sets a status code of 200 and sets the Content-Type header to application/xml.
__construct | ( | $xml, | |
int | $status = 200 , |
||
array | $headers = [] |
||
) |
Create an XML response.
Produces an XML response with a Content-Type of application/xml and a default status of 200.
string | StreamInterface | $xml | String or stream for the message body. |
int | $status | Integer status code for the response; 200 by default. |
array | $headers | Array of headers to use at initialization. |
Exception |
Références $xml, Symfony\Contracts\Service\__construct(), et XmlResponse\createBody().
|
private |
Create the message body.
string | StreamInterface | $xml |
Exception |
Références $xml.
Référencé par XmlResponse\__construct().