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

Go to the source code of this file.

Namespaces

namespace  webservice

Variables

 $id = required_param('id', PARAM_INT)
 $node = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING)
 $webservicemanager = new webservice()
 $potentialuserselector
 Get the user_selector we will need.
 $alloweduserselector
if(optional_param('add', false,
PARAM_BOOL)&&confirm_sesskey())
if(optional_param('remove',
false, PARAM_BOOL)&&confirm_sesskey()) 
$renderer = $PAGE->get_renderer('core', 'webservice')
 Process incoming user assignments to the service.
 $selectoroptions = new stdClass()
$selectoroptions serviceid = $id
$selectoroptions alloweduserselector = $alloweduserselector
$selectoroptions potentialuserselector = $potentialuserselector
 $allowedusers = $webservicemanager->get_ws_authorised_users($id)
 get the missing capabilities for all users (will be displayed into the renderer)
 $usersmissingcaps = $webservicemanager->get_missing_capabilities_by_users($allowedusers, $id)
foreach($allowedusers as
&$alloweduser) 
if (!empty($allowedusers))
 display the list of allowed users with their options (ip/timecreated / validuntil...)

Variable Documentation

$allowedusers = $webservicemanager->get_ws_authorised_users($id)

get the missing capabilities for all users (will be displayed into the renderer)

Definition at line 95 of file service_users.php.

Initial value:
 new service_user_selector('removeselect',
                array('serviceid' => $id, 'displayallowedusers' => 1))

Definition at line 48 of file service_users.php.

Definition at line 30 of file service_users.php.

$node = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING)

Definition at line 36 of file service_users.php.

Initial value:
 new service_user_selector('addselect',
                array('serviceid' => $id, 'displayallowedusers' => 0))

Get the user_selector we will need.

Definition at line 46 of file service_users.php.

if (optional_param('add', false, PARAM_BOOL)&&confirm_sesskey()) if (optional_param('remove', false, PARAM_BOOL)&&confirm_sesskey()) $renderer = $PAGE->get_renderer('core', 'webservice')

Process incoming user assignments to the service.

Process removing user assignments to the service Print the form. display the UI

Definition at line 83 of file service_users.php.

$selectoroptions = new stdClass()

Definition at line 88 of file service_users.php.

$usersmissingcaps = $webservicemanager->get_missing_capabilities_by_users($allowedusers, $id)

Definition at line 96 of file service_users.php.

$webservicemanager = new webservice()

Definition at line 43 of file service_users.php.

Definition at line 90 of file service_users.php.

foreach ($allowedusers as &$alloweduser) if(!empty($allowedusers))

display the list of allowed users with their options (ip/timecreated / validuntil...)

Definition at line 107 of file service_users.php.

Definition at line 91 of file service_users.php.

$selectoroptions serviceid = $id

Definition at line 89 of file service_users.php.

 All Data Structures Namespaces Files Functions Variables Enumerations