Moodle XML-RPC client.  
 More...
Moodle XML-RPC client. 
- Copyright
 - 2010 Jerome Mouneyrac 
 
- License
 - http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
 
 
◆ __construct()
      
        
          | webservice_xmlrpc_client::__construct  | 
          ( | 
            | 
          $serverurl,  | 
        
        
           | 
           | 
            | 
          $token  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | string | $serverurl | a Moodle URL  | 
    | string | $token | the token used to do the web service call  | 
  
   
 
 
◆ call()
      
        
          | webservice_xmlrpc_client::call  | 
          ( | 
            | 
          $functionname,  | 
        
        
           | 
           | 
            | 
          $params = array()  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Execute client WS request with token authentication. 
- Parameters
 - 
  
    | string | $functionname | the function name  | 
    | array | $params | An associative array containing the the parameters of the function being called.  | 
  
   
- Return values
 - 
  
    | mixed | The decoded XML RPC response.  | 
  
   
- Exceptions
 - 
  
  
 
 
 
◆ decode_response()
  
  
      
        
          | webservice_xmlrpc_client::decode_response  | 
          ( | 
            | 
          $response | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Parses and decodes the response XML. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
  
 
 
 
◆ encode_request()
  
  
      
        
          | webservice_xmlrpc_client::encode_request  | 
          ( | 
            | 
          $functionname,  | 
         
        
           | 
           | 
            | 
          $params  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Generates XML for a method request. 
- Parameters
 - 
  
    | string | $functionname | Name of the method to call.  | 
    | mixed | $params | Method parameters compatible with the method signature.  | 
  
   
- Return values
 - 
  
  
 
 
 
◆ set_token()
      
        
          | webservice_xmlrpc_client::set_token  | 
          ( | 
            | 
          $token | ) | 
           | 
        
      
 
Set the token used to do the XML-RPC call. 
- Parameters
 - 
  
    | string | $token | the token used to do the web service call  | 
  
   
 
 
The documentation for this class was generated from the following file: