This is renderer factory allows themes to override the standard renderers using php code.
More...
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.
- Copyright
- 2009 Tim Hunt
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Since
- Moodle 2.0
renderer_factory_base::standard_renderer_classnames |
( |
| $component, |
|
|
| $subtype = null ) |
|
protectedinherited |
For a given module name, return the possible class names that defines the renderer interface for that module.
Newer auto-loaded class names are returned as well as the old style _renderable classnames.
Also, if it exists, include the renderer.php file for that module, so the class definition of the default renderer has been loaded.
- Parameters
-
string | $component | name such as 'core', 'mod_forum' or 'qtype_multichoice'. |
string | $subtype | optional subtype such as 'news' resulting to: 'mod_forum\output\news_renderer' or 'mod_forum\output\news\renderer' or non-autoloaded 'mod_forum_news' |
- Return values
-
array[] | Each element of the array is an array with keys: classname - The class name to search autoloaded - Does this classname assume autoloading? validwithprefix - Is this class name valid when a prefix is added to it? validwithoutprefix - Is this class name valid when no prefix is added to it? |
- Exceptions
-