mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
be1bb80efa
commit
c927e35c48
8 changed files with 112 additions and 64 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue