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

Go to the source code of this file.

Namespaces

namespace  core

Variables

 $id = required_param('id', PARAM_INT)
 $bulkuserop = required_param('bulkuserop', PARAM_ALPHANUMEXT)
 $userids = required_param_array('bulkuser', PARAM_INT)
 $action = optional_param('action', '', PARAM_ACTION)
 $filter = optional_param('ifilter', 0, PARAM_INT)
 $course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST)
 $context = get_context_instance(CONTEXT_COURSE, $course->id, MUST_EXIST)
 $manager = new course_enrolment_manager($PAGE, $course, $filter)
 $table = new course_enrolment_users_table($manager, $PAGE)
 $returnurl = new moodle_url('/enrol/users.php', $table->get_combined_url_params())
 $actionurl = new moodle_url('/enrol/bulkchange.php', $table->get_combined_url_params()+array('bulkuserop' => $bulkuserop))
 $ops = $table->get_bulk_user_enrolment_operations()
if(!array_key_exists($bulkuserop,
$ops)) 
$operation = $ops[$bulkuserop]
 $users = $manager->get_users_enrolments($userids)
 $mform = $operation->get_form($actionurl, array('users' => $users))
if($mform===false) if($mform->
is_cancelled()) if($mform->
is_submitted()&&$mform->
is_validated()&&confirm_sesskey()) 
$pagetitle = get_string('bulkuseroperation', 'enrol')

Variable Documentation

Definition at line 35 of file bulkchange.php.

$actionurl = new moodle_url('/enrol/bulkchange.php', $table->get_combined_url_params()+array('bulkuserop' => $bulkuserop))

Definition at line 52 of file bulkchange.php.

$bulkuserop = required_param('bulkuserop', PARAM_ALPHANUMEXT)

Definition at line 33 of file bulkchange.php.

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

Definition at line 38 of file bulkchange.php.

$filter = optional_param('ifilter', 0, PARAM_INT)

Definition at line 36 of file bulkchange.php.

Definition at line 32 of file bulkchange.php.

$manager = new course_enrolment_manager($PAGE, $course, $filter)

Definition at line 49 of file bulkchange.php.

$mform = $operation->get_form($actionurl, array('users' => $users))

Definition at line 67 of file bulkchange.php.

if (!array_key_exists($bulkuserop, $ops)) $operation = $ops[$bulkuserop]

Definition at line 61 of file bulkchange.php.

$ops = $table->get_bulk_user_enrolment_operations()

Definition at line 57 of file bulkchange.php.

if ($mform===false) if ($mform->is_cancelled()) if ($mform->is_submitted()&&$mform->is_validated()&&confirm_sesskey()) $pagetitle = get_string('bulkuseroperation', 'enrol')

Definition at line 87 of file bulkchange.php.

$returnurl = new moodle_url('/enrol/users.php', $table->get_combined_url_params())

Definition at line 51 of file bulkchange.php.

$table = new course_enrolment_users_table($manager, $PAGE)

Definition at line 50 of file bulkchange.php.

$userids = required_param_array('bulkuser', PARAM_INT)

Definition at line 34 of file bulkchange.php.

$users = $manager->get_users_enrolments($userids)

Definition at line 64 of file bulkchange.php.

 All Data Structures Namespaces Files Functions Variables Enumerations