public function get_renderer($component, $subtype = null, $target = null) {
        if ($this->pagelayout === 'maintenance') {
            // If the page is using the maintenance layout then we're going to force target to maintenance.
            // This leads to a special core renderer that is designed to block access to API's that are likely unavailable for this
            // page layout.
            $target = RENDERER_TARGET_MAINTENANCE;
        }
        return $this->magic_get_theme()->get_renderer($this, $component, $subtype, $target);
    }
public function get_renderer($component, $subtype = null, $target = null) {
        if ($this->pagelayout === 'maintenance') {
            // If the page is using the maintenance layout then we're going to force target to maintenance.
            // This leads to a special core renderer that is designed to block access to API's that are likely unavailable for this
            // page layout.
            $target = RENDERER_TARGET_MAINTENANCE;
        }
        return $this->magic_get_theme()->get_renderer($this, $component, $subtype, $target);
    }
public function get_renderer ( $ component , $ subtype = null , $ target = null ) { if ( $ this -> pagelayout === 'maintenance' ) { // If the page is using the maintenance layout then we're going to force target to maintenance. // This leads to a special core renderer that is designed to block access to API's that are likely unavailable for this // page layout. $ target = RENDERER_TARGET_MAINTENANCE ; } return $ this -> magic_get_theme ( ) -> get_renderer ( $ this , $ component , $ subtype , $ target ) ; }
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
Returns instance of page renderer