|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| admin_authorised_user_selector (&$options) | |
| admin_authorised_user_list ($users, $serviceid) | |
| admin_remove_service_function_confirmation ($function, $service) | |
| admin_remove_service_confirmation ($service) | |
| admin_delete_token_confirmation ($token) | |
| admin_service_function_list ($functions, $service) | |
| user_reset_token_confirmation ($token) | |
| user_webservice_tokens_box ($tokens, $userid, $documentation=false) | |
| detailed_description_html ($params) | |
| description_in_indented_xml_format ($returndescription, $indentation="") | |
| xmlrpc_param_description_html ($paramdescription, $indentation="") | |
| colored_box_with_pre_tag ($title, $content, $rgb= 'FEEBE5') | |
| rest_param_description_html ($paramdescription, $paramstring) | |
| documentation_html ($functions, $printableformat, $activatedprotocol, $authparams, $parenturl= '/webservice/wsdoc.php') | |
Definition at line 30 of file renderer.php.
| admin_authorised_user_list | ( | $ | users, |
| $ | serviceid | ||
| ) |
Display list of authorised user
| array | $users |
Definition at line 106 of file renderer.php.

| admin_authorised_user_selector | ( | &$ | options | ) |
Display the authorised user selector
| object | $options |
Definition at line 37 of file renderer.php.

| admin_delete_token_confirmation | ( | $ | token | ) |
Display a confirmation page to delete a token
| object | $token |
Definition at line 173 of file renderer.php.

| admin_remove_service_confirmation | ( | $ | service | ) |
Display a confirmation page to remove a service
| object | $service |
Definition at line 154 of file renderer.php.

| admin_remove_service_function_confirmation | ( | $ | function, |
| $ | service | ||
| ) |
Display a confirmation page to remove a function from a service
| object | $function | |
| object | $service |
Definition at line 136 of file renderer.php.

| admin_service_function_list | ( | $ | functions, |
| $ | service | ||
| ) |
Display list of function for a given service If the service is build-in do not display remove/add operation (read-only)
| array | $functions | |
| object | $service |
Definition at line 197 of file renderer.php.

| colored_box_with_pre_tag | ( | $ | title, |
| $ | content, | ||
| $ | rgb = 'FEEBE5' |
||
| ) |
Return the html of a colored box with content
| string | $title | - the title of the box |
| string | $content | - the content to displayed |
| string | $rgb | - the background color of the box |
Definition at line 546 of file renderer.php.


| description_in_indented_xml_format | ( | $ | returndescription, |
| $ | indentation = "" |
||
| ) |
Return a description object in indented xml format (for REST response) It is indented in order to be displayed into
tag
| object | $returndescription | |
| string | $indentation | composed by space only |
description object is a list
description object is an object
description object is a primary type (string, integer)
Definition at line 445 of file renderer.php.

| detailed_description_html | ( | $ | params | ) |
Return documentation for a ws description object ws description object can be 'external_multiple_structure', 'external_single_structure' or 'external_value' Example of documentation for moodle_group_create_groups function: list of ( object { courseid int //id of course name string //multilang compatible name, course unique description string //group description text enrolmentkey string //group enrol secret phrase } )
| object | $params | a part of parameter/return description |
retrieve the description of the description object
description object is a list
description object is an object
description object is a primary type (string, integer)
Definition at line 372 of file renderer.php.


| documentation_html | ( | $ | functions, |
| $ | printableformat, | ||
| $ | activatedprotocol, | ||
| $ | authparams, | ||
| $ | parenturl = '/webservice/wsdoc.php' |
||
| ) |
This display all the documentation
| array | $functions | contains all decription objects |
| array | $authparam | keys contains 'tokenid' |
| boolean | $printableformat | true if we want to display the documentation in a printable format |
| array | $activatedprotocol | |
| string | $parenturl | url of the calling page - needed for the print button url: '/admin/documentation.php' or '/webservice/wsdoc.php' (default) |
Some general information
Print button
each functions will be displayed into a collapsible region
function global description
function arguments documentation
a argument documentation
general structure of the argument
xml-rpc structure of the argument in PHP format
POST format for the REST protocol for the argument
function response documentation
function response description
general structure of the response
xml-rpc structure of the response in PHP format
XML response for the REST protocol
function errors documentation for REST protocol
close the table and return the documentation
Definition at line 618 of file renderer.php.

| rest_param_description_html | ( | $ | paramdescription, |
| $ | paramstring | ||
| ) |
Return indented REST param description
| object | $paramdescription | |
| string | $indentation | composed by space only |
description object is a list
description object is an object
description object is a primary type (string, integer)
Definition at line 570 of file renderer.php.

| user_reset_token_confirmation | ( | $ | token | ) |
Display Reset token confirmation box
| object | $token | to reset |
Definition at line 257 of file renderer.php.

| user_webservice_tokens_box | ( | $ | tokens, |
| $ | userid, | ||
| $ | documentation = false |
||
| ) |
Display user tokens with buttons to reset them
| object | $tokens | |
| int | $userid |
Definition at line 280 of file renderer.php.

| xmlrpc_param_description_html | ( | $ | paramdescription, |
| $ | indentation = "" |
||
| ) |
Create indented XML-RPC param description
| object | $paramdescription | |
| string | $indentation | composed by space only |
description object is a list
description object is an object
description object is a primary type (string, integer)
Definition at line 494 of file renderer.php.
