core/model/modx/xmlrpc/modxmlrpcresponse.class.php

Show: inherited
Table of Contents

Package
modx  
Subpackage
xmlrpc  

\modXMLRPCResponse

Package: modx\xmlrpc

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

Propertypublicstring  $body= 'null'
inherited

The body of this response

Inherited from: \modResponse::$$body
Default valuenullDetails
Type
string
Inherited_from
\modResponse::$$body  
Propertypublic\modContentType  $contentType= 'null'
inherited

The current content type on the resource

Inherited from: \modResponse::$$contentType
Default valuenullDetails
Type
\modContentType
Inherited_from
\modResponse::$$contentType  
Propertypublicstring  $header= 'null'
inherited

The HTTP header for this Response

Inherited from: \modResponse::$$header
Default valuenullDetails
Type
string
Inherited_from
\modResponse::$$header  
Propertypublic\modX  $modx= 'null'
inherited

A reference to the modX instance

Inherited from: \modResponse::$$modx
Default valuenullDetails
Type
\modX
Inherited_from
\modResponse::$$modx  
Propertypublic\xmlrpc_server  $server= 'null'

The XML-RPC server attached to this response

Default valuenullDetails
Type
\xmlrpc_server
Access
public  
Propertypublicarray  $services= 'array ()'

A collection of services attached to this response

Default valuearray ()Details
Type
array
Access
public  

Methods

methodpublic__construct( \modX $modx ) : void
inherited

Inherited from: \modResponse::__construct()
Parameters
Name Type Description
$modx \modX

A reference to the modX instance

methodpubliccheckPreview( ) : boolean
inherited

Checks to see if the preview parameter is set.

Inherited from: \modResponse::checkPreview()
Returns
Type Description
boolean
methodpublicgetServer( boolean $execute = false ) : boolean

Gets the XML-RPC server for this response

Parameters
Name Type Description
$execute boolean

Whether or not to execute the server as well as load it

Returns
Type Description
boolean True if the server initialized an instance correctly
Details
Access
public  
methodpublicoutputContent( array $options = array() ) : void

Output the content of the resource

Parameters
Name Type Description
$options array

An array of options for the output

methodpublicregisterService( string $key, string $signature ) : void

Registers a service to this response

Parameters
Name Type Description
$key string

The name of the service

$signature string

The signature of the service

Details
Access
public  
methodpublicsendRedirect( string $url, array | boolean $options = false, string $type = '', string $responseCode = '' ) : void | boolean
inherited

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.

Parameters
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)

Returns
Type Description
void | boolean
methodpublicunregisterService( string $key ) : void

Unregisters a service from this response

Parameters
Name Type Description
$key string

The name of the service

Details
Access
public  
Documentation was generated by DocBlox 0.18.1.