Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/webservice/wsdoc.php File Reference

Go to the source code of this file.

Variables

 $usercontext = get_context_instance(CONTEXT_USER, $USER->id)
 $tokenid = required_param('id', PARAM_INT)
if(empty($CFG->
enablewsdocumentation)) 
$webservice = new webservice()
 $token = $webservice->get_token_by_id($tokenid)
if(empty($token) or empty($token->
userid) or empty($USER->id) or($token->
userid!=$USER->id)) 
$functions = $webservice->get_external_functions(array($token->externalserviceid))
 $functiondescs = array()
foreach($functions as $function) $activatedprotocol = array()
 $activatedprotocol ['rest'] = webservice_protocol_is_enabled('rest')
 $activatedprotocol ['xmlrpc'] = webservice_protocol_is_enabled('xmlrpc')
 $printableformat = optional_param('print', false, PARAM_BOOL)
 Check if we are in printable mode.
 $renderer = $PAGE->get_renderer('core', 'webservice')
 OUTPUT.
 if (!empty($printableformat))
 trigger browser print operation

Variable Documentation

foreach ($functions as $function) $activatedprotocol = array()

Definition at line 71 of file wsdoc.php.

$activatedprotocol['rest'] = webservice_protocol_is_enabled('rest')

Definition at line 72 of file wsdoc.php.

$activatedprotocol['xmlrpc'] = webservice_protocol_is_enabled('xmlrpc')

Definition at line 73 of file wsdoc.php.

$functiondescs = array()

Definition at line 65 of file wsdoc.php.

if (empty($token) or empty($token->userid) or empty($USER->id) or($token->userid!=$USER->id)) $functions = $webservice->get_external_functions(array($token->externalserviceid))

Definition at line 62 of file wsdoc.php.

$printableformat = optional_param('print', false, PARAM_BOOL)

Check if we are in printable mode.

Definition at line 76 of file wsdoc.php.

$renderer = $PAGE->get_renderer('core', 'webservice')

OUTPUT.

Definition at line 81 of file wsdoc.php.

$token = $webservice->get_token_by_id($tokenid)

Definition at line 55 of file wsdoc.php.

$tokenid = required_param('id', PARAM_INT)

Definition at line 30 of file wsdoc.php.

$usercontext = get_context_instance(CONTEXT_USER, $USER->id)

Definition at line 29 of file wsdoc.php.

if (empty($CFG->enablewsdocumentation)) $webservice = new webservice()

Definition at line 54 of file wsdoc.php.

if(!empty($printableformat))

trigger browser print operation

Definition at line 86 of file wsdoc.php.

 All Data Structures Namespaces Files Functions Variables Enumerations