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

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)

Variable Documentation

if (!$usecache) $courses = $service->get_remote_courses($host->id, $usecache)

Definition at line 60 of file host.php.

if (empty($hosts[$hostid])) $host = $hosts[$hostid]

Definition at line 54 of file host.php.

$hostid = required_param('id', PARAM_INT)

Definition at line 35 of file host.php.

if (!$service->is_available()) $hosts = $service->get_remote_publishers()

Definition at line 49 of file host.php.

$icon = html_writer::empty_tag('img', array('src' => $OUTPUT->pix_url('i/course'), 'alt' => get_string('category')))

Definition at line 86 of file host.php.

$prevcat = null

Definition at line 87 of file host.php.

Definition at line 40 of file host.php.

if (empty($courses)) $table = new html_table()

Definition at line 78 of file host.php.

$usecache = optional_param('usecache', true, PARAM_BOOL)

Definition at line 36 of file host.php.

$table attributes['class'] = 'generaltable remotecourses'

Definition at line 85 of file host.php.

foreach($courses as $course)

Definition at line 88 of file host.php.

Initial value:
 array(
    get_string('shortnamecourse'),
    get_string('fullnamecourse'),
    get_string('role'),
    get_string('action')
)

Definition at line 79 of file host.php.

if($usecache)

Definition at line 61 of file host.php.

 All Data Structures Namespaces Files Functions Variables Enumerations