Moodle  2.2.1
http://www.collinsharper.com
core_course_renderer Class Reference
Inheritance diagram for core_course_renderer:
Collaboration diagram for core_course_renderer:

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

Detailed Description

The core course renderer

Can be retrieved with the following: $renderer = $PAGE->get_renderer('core','course');

Definition at line 35 of file renderer.php.


Constructor & Destructor Documentation

__construct ( moodle_page page,
target 
)

Override the constructor so that we can initialise the string cache

Parameters:
moodle_page$page
string$target

Reimplemented from plugin_renderer_base.

Definition at line 49 of file renderer.php.


Member Function Documentation

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()

Parameters:
array$structure
Returns:
string

Definition at line 64 of file renderer.php.

Here is the call graph for this function:

course_category_tree_category ( stdClass $  category,
depth = 1 
) [protected]

Renderers a category for use with course_category_tree

Parameters:
array$category
int$depth
Returns:
string

Definition at line 93 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$strings [protected]

Definition at line 41 of file renderer.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations