public function get_renderer(moodle_page $page, $component, $subtype = null, $target = null) {
        if (is_null($this->rf)) {
            $classname = $this->rendererfactory;
            $this->rf = new $classname($this);
        }

        return $this->rf->get_renderer($page, $component, $subtype, $target);
    }
public function get_renderer(moodle_page $page, $component, $subtype = null, $target = null) {
        if (is_null($this->rf)) {
            $classname = $this->rendererfactory;
            $this->rf = new $classname($this);
        }

        return $this->rf->get_renderer($page, $component, $subtype, $target);
    }
public function get_renderer ( moodle_page $ page , $ component , $ subtype = null , $ target = null ) { if ( is_null ( $ this -> rf ) ) { $ classname = $ this -> rendererfactory ; $ this -> rf = new $ classname ( $ this ) ; } return $ this -> rf -> get_renderer ( $ page , $ component , $ subtype , $ target ) ; }
Get the renderer for a part of Moodle for this theme.

@param moodle_page $page the page we are rendering
@param string $component the name of part of moodle. E.g. 'core', 'quiz', '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 the requested renderer.
Get the renderer for a part of Moodle for this theme .