|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | mnetservice |
Variables | |
| $hostid = required_param('id', 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] |
| if(!$usecache) | $courses = $service->get_remote_courses($host->id, $usecache) |
| if (is_string($courses)) | |
| if(empty($courses)) | $table = new html_table() |
| $table | head |
| $table | attributes ['class'] = 'generaltable remotecourses' |
| $icon = html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('i/course'), 'alt' => get_string('category'))) | |
| $prevcat = null | |
| foreach ($courses as $course) | |
| $hostid = required_param('id', PARAM_INT) |
| if (!$service->is_available()) $hosts = $service->get_remote_publishers() |
| $icon = html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('i/course'), 'alt' => get_string('category'))) |
| $service = mnetservice_enrol::get_instance() |
| if (empty($courses)) $table = new html_table() |
| $usecache = optional_param('usecache', true, PARAM_BOOL) |
| $table attributes['class'] = 'generaltable remotecourses' |
array( get_string('shortnamecourse'), get_string('fullnamecourse'), get_string('role'), get_string('action') )