Moodle  2.2.1
http://www.collinsharper.com
webservice_rest_client Class Reference

Public Member Functions

 __construct ($serverurl, $token, $format= 'xml')
 set_token ($token)
 call ($functionname, $params)

Detailed Description

Moodle REST client class TODO: XML to PHP

Definition at line 22 of file lib.php.


Constructor & Destructor Documentation

__construct ( serverurl,
token,
format = 'xml' 
)

Constructor

Parameters:
string$serverurla Moodle URL
string$token

Definition at line 35 of file lib.php.


Member Function Documentation

call ( functionname,
params 
)

Execute client WS request with token authentication

Parameters:
string$functionname
array$params
Returns:
mixed

Definition at line 55 of file lib.php.

Here is the call graph for this function:

set_token ( token)

Set the token used to do the REST call

Parameters:
string$token

Definition at line 45 of file lib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations