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


Public Member Functions | |
| __construct (theme_config $theme) | |
Protected Member Functions | |
| get_target_suffix ($target) | |
| standard_renderer_classname ($component, $subtype=null) | |
Protected Attributes | |
| $theme | |
This is a base class to help you implement the renderer_factory interface.
It keeps a cache of renderers that have been constructed, so you only need to construct each one once in you subclass.
It also has a method to get the name of, and include the renderer.php with the definition of, the standard renderer class for a given module.
Definition at line 108 of file outputfactories.php.
| __construct | ( | theme_config $ | theme | ) |
Constructor.
| theme_config | $theme | the theme we belong to. |
Reimplemented in theme_overridden_renderer_factory.
Definition at line 116 of file outputfactories.php.
| get_target_suffix | ( | $ | target | ) | [protected] |
Returns suffix of renderer class expected for given target.
| string | $target | one of the renderer target constants, target is guessed if null used |
Definition at line 125 of file outputfactories.php.

| standard_renderer_classname | ( | $ | component, |
| $ | subtype = null |
||
| ) | [protected] |
For a given module name, return the name of the standard renderer class that defines the renderer interface for that module.
Also, if it exists, include the renderer.php file for that module, so the class definition of the default renderer has been loaded.
| string | $component | name such as 'core', 'mod_forum' or 'qtype_multichoice'. |
| string | $subtype | optional subtype such as 'news' resulting to 'mod_forum_news' |
Definition at line 157 of file outputfactories.php.


$theme [protected] |
Definition at line 110 of file outputfactories.php.