|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct (moodle_page $page, $target) | |
| course_category_tree (array $structure) | |
Protected Member Functions | |
| course_category_tree_category (stdClass $category, $depth=1) | |
Protected Attributes | |
| $strings | |
The core course renderer
Can be retrieved with the following: $renderer = $PAGE->get_renderer('core','course');
Definition at line 35 of file renderer.php.
| __construct | ( | moodle_page $ | page, |
| $ | target | ||
| ) |
Override the constructor so that we can initialise the string cache
| moodle_page | $page | |
| string | $target |
Reimplemented from plugin_renderer_base.
Definition at line 49 of file renderer.php.
| course_category_tree | ( | array $ | structure | ) |
Renderers a structured array of courses and categories into a nice XHTML tree structure.
This method was designed initially to display the front page course/category combo view. The structure can be retrieved by get_course_category_tree()
| array | $structure |
Definition at line 64 of file renderer.php.

| course_category_tree_category | ( | stdClass $ | category, |
| $ | depth = 1 |
||
| ) | [protected] |
Renderers a category for use with course_category_tree
| array | $category | |
| int | $depth |
Definition at line 93 of file renderer.php.


$strings [protected] |
Definition at line 41 of file renderer.php.