Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/enrol/instances.php File Reference

Go to the source code of this file.

Namespaces

namespace  core

Variables

 $id = required_param('id', PARAM_INT)
 $action = optional_param('action', '', PARAM_ACTION)
 $instanceid = optional_param('instance', 0, PARAM_INT)
 $confirm = optional_param('confirm', 0, PARAM_BOOL)
 $course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST)
 $context = get_context_instance(CONTEXT_COURSE, $course->id, MUST_EXIST)
 $canconfig = has_capability('moodle/course:enrolconfig', $context)
 $instances = enrol_get_instances($course->id, false)
 $plugins = enrol_get_plugins(false)
 if ($canconfig and $action and confirm_sesskey())
 $strup = get_string('up')
 $strdown = get_string('down')
 $strdelete = get_string('delete')
 $strenable = get_string('enable')
 $strdisable = get_string('disable')
 $strmanage = get_string('manageinstance', 'enrol')
 $table = new html_table()
$table head = array(get_string('name'), get_string('users'), $strup.'/'.$strdown, get_string('edit'))
$table align = array('left', 'center', 'center', 'center')
$table width = '100%'
$table data = array()
 $updowncount = 1
 $icount = count($instances)
 $url = new moodle_url('/enrol/instances.php', array('sesskey'=>sesskey(), 'id'=>$course->id))
 foreach ($instances as $instance)
 $candidates = array()

Variable Documentation

Definition at line 29 of file instances.php.

$canconfig = has_capability('moodle/course:enrolconfig', $context)

Definition at line 43 of file instances.php.

$candidates = array()

Definition at line 224 of file instances.php.

Definition at line 31 of file instances.php.

$course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST)

Definition at line 33 of file instances.php.

$icount = count($instances)

Definition at line 154 of file instances.php.

Definition at line 28 of file instances.php.

Definition at line 30 of file instances.php.

$instances = enrol_get_instances($course->id, false)

Definition at line 50 of file instances.php.

$plugins = enrol_get_plugins(false)

Definition at line 51 of file instances.php.

$strdelete = get_string('delete')

Definition at line 141 of file instances.php.

$strdisable = get_string('disable')

Definition at line 143 of file instances.php.

$strdown = get_string('down')

Definition at line 140 of file instances.php.

$strenable = get_string('enable')

Definition at line 142 of file instances.php.

$strmanage = get_string('manageinstance', 'enrol')

Definition at line 144 of file instances.php.

$strup = get_string('up')

Definition at line 139 of file instances.php.

$table = new html_table()

Definition at line 146 of file instances.php.

$updowncount = 1

Definition at line 153 of file instances.php.

$url = new moodle_url('/enrol/instances.php', array('sesskey'=>sesskey(), 'id'=>$course->id))

Definition at line 155 of file instances.php.

$table align = array('left', 'center', 'center', 'center')

Definition at line 148 of file instances.php.

Definition at line 150 of file instances.php.

foreach($instances as $instance)

Definition at line 156 of file instances.php.

$table head = array(get_string('name'), get_string('users'), $strup.'/'.$strdown, get_string('edit'))

Definition at line 147 of file instances.php.

foreach (enrol_get_plugins(true) as $name=> $plugin) if($candidates)

Definition at line 53 of file instances.php.

$table width = '100%'

Definition at line 149 of file instances.php.

 All Data Structures Namespaces Files Functions Variables Enumerations