core/model/modx/xmlrpc/modxmlrpcresponse.class.php
- Package
- modx
- Subpackage
- xmlrpc
\modXMLRPCResponse
Handles any XML-RPC resources and their response
Includes functions to manipluate header data, such as status codes, as well as manipulating the response body.
- Parent(s)
- \modResponse
- Children
- \modJSONRPCResponse
Properties


\modContentType
$contentType= 'null'
null
Details- Type
- \modContentType
- Inherited_from
- \modResponse::$$contentType


\xmlrpc_server
$server= 'null'
The XML-RPC server attached to this response
null
Details- Type
- \xmlrpc_server
- Access
- public
Methods


__construct(
\modX $modx
)
:
void
Name | Type | Description |
---|---|---|
$modx | \modX | A reference to the modX instance |


checkPreview(
)
:
boolean
Checks to see if the preview parameter is set.
Inherited from: \modResponse::checkPreview()Type | Description |
---|---|
boolean |


getServer(
boolean $execute
=
false
)
:
boolean
Gets the XML-RPC server for this response
Name | Type | Description |
---|---|---|
$execute | boolean | Whether or not to execute the server as well as load it |
Type | Description |
---|---|
boolean | True if the server initialized an instance correctly |
- Access
- public


outputContent(
array $options
=
array()
)
:
void
Output the content of the resource
Name | Type | Description |
---|---|---|
$options | array | An array of options for the output |


registerService(
string $key, string $signature
)
:
void
Registers a service to this response
Name | Type | Description |
---|---|---|
$key | string | The name of the service |
$signature | string | The signature of the service |
- Access
- public


sendRedirect(
string $url, array | boolean $options
=
false, string $type
=
'', string $responseCode
=
''
)
:
void | boolean
Sends a redirect to the specified URL using the specified method.
Inherited from: \modResponse::sendRedirect()Valid $type values include: REDIRECT_REFRESH Uses the header refresh method REDIRECT_META Sends a a META HTTP-EQUIV="Refresh" tag to the output REDIRECT_HEADER Uses the header location method
REDIRECT_HEADER is the default.
Name | Type | Description |
---|---|---|
$url | string | The URL to redirect the client browser to. |
$options | array | boolean | An array of options for the redirect OR indicates if redirect attempts should be counted and limited to 3 (latter is deprecated usage; use count_attempts in options array). |
$type | string | The type of redirection to attempt (deprecated, use type in options array). |
$responseCode | string | The type of HTTP response code HEADER to send for the redirect (deprecated, use responseCode in options array) |
Type | Description |
---|---|
void | boolean |