kernel/private/rest/classes/content_renderer.php
protected static function createRenderer( $renderer, ezpContent $content, ezpRestMvcController $controller )
    {
        $rendererOptions = new ezpExtensionOptions();
        $rendererOptions->iniFile = 'rest.ini';
        $rendererOptions->iniSection = 'OutputSettings';
        $rendererOptions->iniVariable = 'RendererClass';
        $rendererOptions->handlerIndex = $renderer;
        $rendererOptions->handlerParams = array( $content, $controller );

        $rendererInstance = eZExtension::getHandlerClass( $rendererOptions );

        if ( !( $rendererInstance instanceof ezpRestContentRendererInterface ) )
            throw new ezpRestContentRendererNotFoundException( $renderer );

        return $rendererInstance;
    }
protected static function createRenderer( $renderer, ezpContent $content, ezpRestMvcController $controller )
    {
        $rendererOptions = new ezpExtensionOptions();
        $rendererOptions->iniFile = 'rest.ini';
        $rendererOptions->iniSection = 'OutputSettings';
        $rendererOptions->iniVariable = 'RendererClass';
        $rendererOptions->handlerIndex = $renderer;
        $rendererOptions->handlerParams = array( $content, $controller );

        $rendererInstance = eZExtension::getHandlerClass( $rendererOptions );

        if ( !( $rendererInstance instanceof ezpRestContentRendererInterface ) )
            throw new ezpRestContentRendererNotFoundException( $renderer );

        return $rendererInstance;
    }
protected static function createRenderer ( $ renderer , ezpContent $ content , ezpRestMvcController $ controller ) { $ rendererOptions = new ezpExtensionOptions ( ) ; $ rendererOptions -> iniFile = 'rest.ini' ; $ rendererOptions -> iniSection = 'OutputSettings' ; $ rendererOptions -> iniVariable = 'RendererClass' ; $ rendererOptions -> handlerIndex = $ renderer ; $ rendererOptions -> handlerParams = array ( $ content , $ controller ) ; $ rendererInstance = eZExtension :: getHandlerClass ( $ rendererOptions ) ; if ( ! ( $ rendererInstance instanceof ezpRestContentRendererInterface ) ) throw new ezpRestContentRendererNotFoundException ( $ renderer ) ; return $ rendererInstance ; }
Returns ezpRestContentProviderInterface object for requested renderer

@param string $renderer
@param ezpContent $content
@return ezpRestContentProviderInterface
Returns ezpRestContentProviderInterface object for requested renderer