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

Go to the source code of this file.

Namespaces

namespace  enrol

Enumerations

enum  AJAX_SCRIPT

Variables

 $id = required_param('id', PARAM_INT)
 $action = required_param('action', PARAM_ACTION)
 $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)
 $outcome = new stdClass
$outcome success = true
$outcome response = new stdClass
$outcome error = ''
 switch ($action)

Enumeration Type Documentation

Definition at line 29 of file ajax.php.


Variable Documentation

Definition at line 37 of file ajax.php.

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

Definition at line 41 of file ajax.php.

Definition at line 36 of file ajax.php.

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

Definition at line 54 of file ajax.php.

$outcome = new stdClass

Definition at line 56 of file ajax.php.

$outcome error = ''

Definition at line 59 of file ajax.php.

$outcome response = new stdClass

Definition at line 58 of file ajax.php.

$outcome success = true

Definition at line 57 of file ajax.php.

Definition at line 61 of file ajax.php.

 All Data Structures Namespaces Files Functions Variables Enumerations