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

Go to the source code of this file.

Namespaces

namespace  core

Variables

 $action = required_param('action', PARAM_ALPHA)
 $defineurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/define.php'
if(optional_param('cancel',
false, PARAM_BOOL)) 
$showadvanced = get_user_preferences('definerole_showadvanced', false)
 Handle the cancel button.
if(optional_param('toggleadvanced',
false, PARAM_BOOL)) 
$roles = get_all_roles()
 Get some basic data we are going to need.
 $rolenames = role_fix_names($roles, $systemcontext, ROLENAME_ORIGINAL)
 $rolescount = count($roles)
if($action== 'duplicate') if (optional_param('savechanges', false, PARAM_BOOL)&&confirm_sesskey()&&$definitiontable->is_submission_valid())
 Create the table object.
 $currenttab = 'manage'

Variable Documentation

Definition at line 36 of file define.php.

$currenttab = 'manage'

Definition at line 105 of file define.php.

$defineurl = $CFG->wwwroot . '/' . $CFG->admin . '/roles/define.php'

Definition at line 48 of file define.php.

$rolenames = role_fix_names($roles, $systemcontext, ROLENAME_ORIGINAL)

Definition at line 78 of file define.php.

if (optional_param('toggleadvanced', false, PARAM_BOOL)) $roles = get_all_roles()

Get some basic data we are going to need.

Definition at line 77 of file define.php.

$rolescount = count($roles)

Definition at line 79 of file define.php.

if (optional_param('cancel', false, PARAM_BOOL)) $showadvanced = get_user_preferences('definerole_showadvanced', false)

Handle the cancel button.

Handle the toggle advanced mode button.

Definition at line 70 of file define.php.

if ($action== 'add') else if ($action== 'duplicate') else if ($action== 'view') else if($action== 'edit')

Create the table object.

Process submission in necessary. Print the page header and tabs.

Definition at line 95 of file define.php.

 All Data Structures Namespaces Files Functions Variables Enumerations