XML-RPC service server implementation.
More...
|
| | fetch_input_content () |
| | Fetch content from the client. More...
|
| |
| | generate_error ($ex, $faultcode=404) |
| | Generate the XML-RPC fault response. More...
|
| |
|
| parse_request () |
| | This method parses the request input, it needs to get: 1/ user authentication - username+password or token 2/ function name 3/ function parameters.
|
| |
|
| prepare_response () |
| | Prepares the response.
|
| |
| | send_error ($ex=null) |
| | Send the error information to the WS client. More...
|
| |
|
| send_headers () |
| | Sends the headers for the XML-RPC response.
|
| |
|
| send_response () |
| | Send the result of function call to the WS client.
|
| |
XML-RPC service server implementation.
- Copyright
- 2009 Petr Skodak
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Since
- Moodle 2.0
◆ __construct()
| webservice_xmlrpc_server::__construct |
( |
|
$authmethod | ) |
|
Contructor.
- Parameters
-
| string | $authmethod | authentication method of the web service (WEBSERVICE_AUTHMETHOD_PERMANENT_TOKEN, ...) |
◆ fetch_input_content()
| webservice_xmlrpc_server::fetch_input_content |
( |
| ) |
|
|
protected |
Fetch content from the client.
- Return values
-
◆ generate_error()
| webservice_xmlrpc_server::generate_error |
( |
|
$ex, |
|
|
|
$faultcode = 404 |
|
) |
| |
|
protected |
Generate the XML-RPC fault response.
- Parameters
-
| Exception | Throwable | $ex | The exception. |
| int | $faultcode | The faultCode to be included in the fault response |
- Return values
-
| string | The XML-RPC fault response xml containing the faultCode and faultString. |
◆ send_error()
| webservice_xmlrpc_server::send_error |
( |
|
$ex = null | ) |
|
|
protected |
Send the error information to the WS client.
- Parameters
-
The documentation for this class was generated from the following file:
- webservice/xmlrpc/locallib.php