XML-RPC service server implementation.
More...
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: