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

Go to the source code of this file.

Namespaces

namespace  webservice

Functions

if(!empty($)) admin_externalpage_setup ('testclient')

Variables

 $function = optional_param('function', '', PARAM_SAFEDIR)
 $protocol = optional_param('protocol', '', PARAM_SAFEDIR)
 $authmethod = optional_param('authmethod', '', PARAM_SAFEDIR)
 $allfunctions = $DB->get_records('external_functions', array(), 'name ASC')
 $functions = array()
foreach($allfunctions as $f)
if(!isset($functions[$function])) 
$available_protocols = get_plugin_list('webservice')
 $active_protocols = empty($CFG->webserviceprotocols) ? array() : explode(',', $CFG->webserviceprotocols)
 $protocols = array()
foreach($active_protocols as
$p) if(!isset($protocols[$protocol]))
if(!$function or!$protocol) 
$class = $function.'_form'
 $mform = new $class(null, array('authmethod' => $authmethod))

Function Documentation

if (!empty($)) admin_externalpage_setup ( 'testclient'  )

Variable Documentation

$active_protocols = empty($CFG->webserviceprotocols) ? array() : explode(',', $CFG->webserviceprotocols)

Definition at line 71 of file testclient.php.

$allfunctions = $DB->get_records('external_functions', array(), 'name ASC')

Definition at line 49 of file testclient.php.

$authmethod = optional_param('authmethod', '', PARAM_SAFEDIR)

Definition at line 34 of file testclient.php.

foreach ($allfunctions as $f) if (!isset($functions[$function])) $available_protocols = get_plugin_list('webservice')

Definition at line 70 of file testclient.php.

foreach ($active_protocols as $p) if (!isset($protocols[$protocol])) if (!$function or!$protocol) $class = $function.'_form'

Definition at line 110 of file testclient.php.

$function = optional_param('function', '', PARAM_SAFEDIR)

Definition at line 32 of file testclient.php.

$functions = array()

Definition at line 50 of file testclient.php.

$mform = new $class(null, array('authmethod' => $authmethod))

Definition at line 112 of file testclient.php.

$protocol = optional_param('protocol', '', PARAM_SAFEDIR)

Definition at line 33 of file testclient.php.

$protocols = array()

Definition at line 72 of file testclient.php.

 All Data Structures Namespaces Files Functions Variables Enumerations