Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
webservice_soap_client Class Reference

Moodle SOAP client. More...

Public Member Functions

 __construct ($serverurl, $token=null, array $options=null)
 Constructor. More...
 
 call ($functionname, $params)
 Execute client WS request with token authentication. More...
 
 set_token ($token)
 Set the token used to do the SOAP call. More...
 

Detailed Description

Moodle SOAP client.

It has been implemented for unit testing purpose (all protocols have similar client)

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

webservice_soap_client::__construct (   $serverurl,
  $token = null,
array  $options = null 
)

Constructor.

Parameters
string$serverurla Moodle URL
string$tokenthe token used to do the web service call
array$optionsPHP SOAP client options - see php.net

Member Function Documentation

◆ call()

webservice_soap_client::call (   $functionname,
  $params 
)

Execute client WS request with token authentication.

Parameters
string$functionnamethe function name
array$paramsthe parameters of the function
Return values
mixed

◆ set_token()

webservice_soap_client::set_token (   $token)

Set the token used to do the SOAP call.

Parameters
string$tokenthe token used to do the web service call

The documentation for this class was generated from the following file: