|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | moodlecore |
Variables | |
| $id = required_param('id', PARAM_INT) | |
| $course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST) | |
| $allmodules = $DB->get_records('modules', array('visible'=>1)) | |
| $modules = array() | |
| foreach($allmodules as $key=> $module) | $strresources = get_string('resources') |
| $strsectionname = get_string('sectionname', 'format_'.$course->format) | |
| $strname = get_string('name') | |
| $strintro = get_string('moduleintro') | |
| $strlastmodified = get_string('lastmodified') | |
| $modinfo = get_fast_modinfo($course) | |
| $usesections = course_format_uses_sections($course->format) | |
| if($usesections) | $cms = array() |
| $resources = array() | |
| foreach($modinfo->cms as $cm) foreach($resources as $modname=> $instances) if(!$cms) | $table = new html_table() |
| $table | attributes ['class'] = 'generaltable mod_index' |
| foreach ($cms as $cm) | |
| $allmodules = $DB->get_records('modules', array('visible'=>1)) |
Definition at line 36 of file resources.php.
Definition at line 71 of file resources.php.
| $course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST) |
Definition at line 31 of file resources.php.
| $id = required_param('id', PARAM_INT) |
Definition at line 29 of file resources.php.
| $modinfo = get_fast_modinfo($course) |
Definition at line 66 of file resources.php.
| $modules = array() |
Definition at line 37 of file resources.php.
| $resources = array() |
Definition at line 72 of file resources.php.
| $strintro = get_string('moduleintro') |
Definition at line 57 of file resources.php.
| $strlastmodified = get_string('lastmodified') |
Definition at line 58 of file resources.php.
| $strname = get_string('name') |
Definition at line 56 of file resources.php.
| foreach ($allmodules as $key=> $module) $strresources = get_string('resources') |
Definition at line 54 of file resources.php.
| $strsectionname = get_string('sectionname', 'format_'.$course->format) |
Definition at line 55 of file resources.php.
| foreach ($modinfo->cms as $cm) foreach ($resources as $modname=> $instances) if (!$cms) $table = new html_table() |
Definition at line 98 of file resources.php.
| $usesections = course_format_uses_sections($course->format) |
Definition at line 67 of file resources.php.
| $table attributes['class'] = 'generaltable mod_index' |
Definition at line 99 of file resources.php.
Definition at line 110 of file resources.php.