MDL-21148 geenral support for rendering targets, this should give us more flexibility; please propose improvements in the tracker if necessary, thanks

This commit is contained in:
Petr Skoda 2009-12-17 22:43:27 +00:00
parent be1bb80efa
commit c927e35c48
8 changed files with 112 additions and 64 deletions

View file

@ -524,10 +524,11 @@ class moodle_page {
* Returns instance of page renderer
* @param string $component name such as 'core', 'mod_forum' or 'qtype_multichoice'.
* @param string $subtype optional subtype such as 'news' resulting to 'mod_forum_news'
* @param string $target one of rendering target constants
* @return renderer_base
*/
public function get_renderer($component, $subtype = null) {
return $this->magic_get_theme()->get_renderer($this, $component, $subtype);
public function get_renderer($component, $subtype = null, $target = null) {
return $this->magic_get_theme()->get_renderer($this, $component, $subtype, $target);
}
/**