|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | plugintype |
Variables | |
| $hostid = required_param('host', PARAM_INT) | |
| $courseid = required_param('course', PARAM_INT) | |
| $usecache = optional_param('usecache', true, PARAM_BOOL) | |
| $service = mnetservice_enrol::get_instance() | |
| if(!$service->is_available()) | $hosts = $service->get_remote_publishers() |
| if(empty($hosts[$hostid])) | $host = $hosts[$hostid] |
| $course = $DB->get_record('mnetservice_enrol_courses', array('id'=>$courseid, 'hostid'=>$host->id), '*', MUST_EXIST) | |
| $icon = html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('i/course'), 'alt' => get_string('category'))) | |
| if(!empty($course->summary)) | $error = '' |
| $lastfetchenrolments = get_config('mnetservice_enrol', 'lastfetchenrolments') | |
| if(!$usecache or empty($lastfetchenrolments) or(time()-$lastfetchenrolments > 600)) | $currentuserselector = new mnetservice_enrol_existing_users_selector('removeselect', array('hostid'=>$host->id, 'remotecourseid'=>$course->remoteid)) |
| $potentialuserselector = new mnetservice_enrol_potential_users_selector('addselect', array('hostid'=>$host->id, 'remotecourseid'=>$course->remoteid)) | |
| if(optional_param('add', false, PARAM_BOOL)&&confirm_sesskey()) if(optional_param('remove', false, PARAM_BOOL)&&confirm_sesskey()) | if (!empty($error)) |
| $params = array($host->id, $course->remoteid) | |
| $course = $DB->get_record('mnetservice_enrol_courses', array('id'=>$courseid, 'hostid'=>$host->id), '*', MUST_EXIST) |
Definition at line 55 of file course.php.
| $courseid = required_param('course', PARAM_INT) |
Definition at line 34 of file course.php.
| if (!$usecache or empty($lastfetchenrolments) or(time()-$lastfetchenrolments > 600)) $currentuserselector = new mnetservice_enrol_existing_users_selector('removeselect', array('hostid'=>$host->id, 'remotecourseid'=>$course->remoteid)) |
Definition at line 90 of file course.php.
| if (empty($hosts[$hostid])) $host = $hosts[$hostid] |
Definition at line 54 of file course.php.
| $hostid = required_param('host', PARAM_INT) |
Definition at line 33 of file course.php.
| if (!$service->is_available()) $hosts = $service->get_remote_publishers() |
Definition at line 49 of file course.php.
| $icon = html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('i/course'), 'alt' => get_string('category'))) |
Definition at line 60 of file course.php.
| $lastfetchenrolments = get_config('mnetservice_enrol', 'lastfetchenrolments') |
Definition at line 78 of file course.php.
Definition at line 176 of file course.php.
| $potentialuserselector = new mnetservice_enrol_potential_users_selector('addselect', array('hostid'=>$host->id, 'remotecourseid'=>$course->remoteid)) |
Definition at line 91 of file course.php.
| $service = mnetservice_enrol::get_instance() |
Definition at line 40 of file course.php.
| $usecache = optional_param('usecache', true, PARAM_BOOL) |
Definition at line 35 of file course.php.
Definition at line 127 of file course.php.