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


Public Member Functions | |
| __construct (theme_config $theme) | |
| get_renderer (moodle_page $page, $component, $subtype=null, $target=null) | |
Protected Attributes | |
| $prefixes = array() | |
This is renderer factory allows themes to override the standard renderers using php code.
It will load any code from theme/mytheme/renderers.php and theme/parenttheme/renderers.php, if then exist. Then whenever you ask for a renderer for 'component', it will create a mytheme_component_renderer or a parenttheme_component_renderer, instead of a component_renderer, if either of those classes exist.
Definition at line 248 of file outputfactories.php.
| __construct | ( | theme_config $ | theme | ) |
Constructor.
| object | $theme | the theme we are rendering for. |
Reimplemented from renderer_factory_base.
Definition at line 256 of file outputfactories.php.

| get_renderer | ( | moodle_page $ | page, |
| $ | component, | ||
| $ | subtype = null, |
||
| $ | target = null |
||
| ) |
Implement the subclass method
| moodle_page | $page | the page the renderer is outputting content for. |
| string | $component | name such as 'core', 'mod_forum' or 'qtype_multichoice'. |
| string | $subtype | optional subtype such as 'news' resulting to 'mod_forum_news' |
| string | $target | one of rendering target constants |
Implements renderer_factory.
Definition at line 270 of file outputfactories.php.

$prefixes = array() [protected] |
Definition at line 250 of file outputfactories.php.