Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/tool/unsuproles/index.php File Reference

Go to the source code of this file.

Namespaces

namespace  tool

Variables

 $action = optional_param('action', '', PARAM_ACTION)
 $syscontext = get_context_instance(CONTEXT_SYSTEM)
 if ($action=== 'delete')
 $sql
 $problems = array()
 $rs = $DB->get_recordset_sql($sql)

Variable Documentation

Definition at line 30 of file index.php.

$problems = array()

Definition at line 86 of file index.php.

$rs = $DB->get_recordset_sql($sql)

Definition at line 87 of file index.php.

$sql
Initial value:
"SELECT r.id AS roleid, c.contextlevel, r.sortorder, COUNT(ra.id) AS racount
          FROM {role} r
          JOIN {role_assignments} ra ON ra.roleid = r.id
          JOIN {context} c ON c.id = ra.contextid
     LEFT JOIN {role_context_levels} rcl ON (rcl.roleid = r.id AND rcl.contextlevel = c.contextlevel)
         WHERE rcl.id IS NULL
      GROUP BY r.id, c.contextlevel, r.sortorder
      ORDER BY c.contextlevel ASC, r.sortorder ASC"

Definition at line 76 of file index.php.

Definition at line 32 of file index.php.

if($action=== 'delete')

Definition at line 37 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations