See Release Notes
Long Term Support Release
Differences Between: [Versions 401 and 402] [Versions 401 and 403]
(no description)
File Size: | 182 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
proxy_base:: (7 methods):
action_url()
sanitized_url()
sanitized_secret()
assert_returned_xml()
get_errorcode_from_xml_messagekey()
is_known_server_unavailable_errorcode()
fetch_endpoint_xml()
Class: proxy_base - X-Ref
The abstract proxy base class.action_url(string $action = '', array $data = [], array $metadata = []) X-Ref |
Returns the right URL for the action specified. param: string $action param: array $data param: array $metadata return: string |
sanitized_url() X-Ref |
Makes sure the url used doesn't is in the format required. return: string |
sanitized_secret() X-Ref |
Makes sure the shared_secret used doesn't have trailing white characters. return: string |
assert_returned_xml($xml, ?array $additionaldetails = null) X-Ref |
Throw an exception if there is a problem in the returned XML value param: SimpleXMLElement|bool $xml param: array|null $additionaldetails |
get_errorcode_from_xml_messagekey(string $messagekey) X-Ref |
Get Moodle error code from returned Message Key param: string $messagekey return: string |
is_known_server_unavailable_errorcode(string $messagekey) X-Ref |
Get Moodle error code from returned Message Key param: string $messagekey return: string |
fetch_endpoint_xml(string $action,array $data = [],array $metadata = []) X-Ref |
Fetch the XML from an endpoint and test for success. If the result could not be loaded, or the returncode was not 'SUCCESS', a null value is returned. param: string $action param: array $data param: array $metadata return: null|bool|SimpleXMLElement |