|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | core |
Functions | |
| get_action_icon ($url, $icon, $alt, $tooltip) | |
| get_spacer () | |
Variables | |
| $action = optional_param('action', '', PARAM_ALPHA) | |
| if($action) | $baseurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/manage.php' |
| Get the base URL for this and related pages into a convenient variable. | |
| $defineurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/define.php' | |
| $systemcontext = get_context_instance(CONTEXT_SYSTEM) | |
| Check access permissions. | |
| $roles = get_all_roles() | |
| Get some basic data we are going to need. | |
| $undeletableroles = array() | |
| $undeletableroles [$CFG->notloggedinroleid] = 1 | |
| $undeletableroles [$CFG->guestroleid] = 1 | |
| $undeletableroles [$CFG->defaultuserroleid] = 1 | |
| $confirmed = optional_param('confirm', false, PARAM_BOOL) && data_submitted() && confirm_sesskey() | |
| .Process submitted data. | |
| switch ($action) | |
| Print the page header and tabs. | |
| $currenttab = 'manage' | |
| $table = new html_table() | |
| Initialise table. | |
| $table | tablealign = 'center' |
| $table | align = array('left', 'left', 'left', 'left') |
| $table | wrap = array('nowrap', '', 'nowrap','nowrap') |
| $table | width = '90%' |
| $table | head |
| $stredit = get_string('edit') | |
| Get some strings outside the loop. | |
| $strduplicate = get_string('duplicate') | |
| $strdelete = get_string('delete') | |
| $strmoveup = get_string('moveup') | |
| $strmovedown = get_string('movedown') | |
| $table | data = array() |
| Print a list of roles with edit/copy/delete/reorder icons. | |
| $firstrole = reset($roles) | |
| $lastrole = end($roles) | |
| foreach ($roles as $role) | |
| die | |
| get_action_icon | ( | $ | url, |
| $ | icon, | ||
| $ | alt, | ||
| $ | tooltip | ||
| ) |
Definition at line 260 of file manage.php.
| get_spacer | ( | ) |
Definition at line 265 of file manage.php.
| $action = optional_param('action', '', PARAM_ALPHA) |
Definition at line 40 of file manage.php.
Get the base URL for this and related pages into a convenient variable.
Definition at line 46 of file manage.php.
| $confirmed = optional_param('confirm', false, PARAM_BOOL) && data_submitted() && confirm_sesskey() |
.Process submitted data.
Definition at line 65 of file manage.php.
| $currenttab = 'manage' |
Definition at line 185 of file manage.php.
Definition at line 47 of file manage.php.
| $firstrole = reset($roles) |
Definition at line 210 of file manage.php.
| $lastrole = end($roles) |
Definition at line 211 of file manage.php.
| $roles = get_all_roles() |
Get some basic data we are going to need.
Definition at line 56 of file manage.php.
| $strdelete = get_string('delete') |
Definition at line 204 of file manage.php.
| $strduplicate = get_string('duplicate') |
Definition at line 203 of file manage.php.
| $stredit = get_string('edit') |
Get some strings outside the loop.
Definition at line 202 of file manage.php.
| $strmovedown = get_string('movedown') |
Definition at line 206 of file manage.php.
| $strmoveup = get_string('moveup') |
Definition at line 205 of file manage.php.
| $systemcontext = get_context_instance(CONTEXT_SYSTEM) |
Check access permissions.
Definition at line 50 of file manage.php.
| $table = new html_table() |
Initialise table.
Definition at line 189 of file manage.php.
| $undeletableroles = array() |
Definition at line 59 of file manage.php.
| $undeletableroles[$CFG->notloggedinroleid] = 1 |
Definition at line 60 of file manage.php.
| $undeletableroles[$CFG->guestroleid] = 1 |
Definition at line 61 of file manage.php.
| $undeletableroles[$CFG->defaultuserroleid] = 1 |
Definition at line 62 of file manage.php.
Print a list of roles with edit/copy/delete/reorder icons.
Definition at line 209 of file manage.php.
Definition at line 253 of file manage.php.
| foreach($roles as $role) |
Definition at line 212 of file manage.php.
array( get_string('role') . ' ' . $OUTPUT->help_icon('roles', 'role'), get_string('description'), get_string('roleshortname', 'role'), get_string('edit') )
Definition at line 194 of file manage.php.
Print the page header and tabs.
Definition at line 66 of file manage.php.
| $table tablealign = 'center' |
Definition at line 190 of file manage.php.
Definition at line 193 of file manage.php.
Definition at line 192 of file manage.php.