kernel/private/rest/classes/content_renderer.php
public static function getRenderer( $renderer, ezpContent $content, ezpRestMvcController $controller )
    {
        // If no content renderer has been given, we fall back to built-in 'xhtml' renderer.
        // Note: empty string is not a valid input.
        if ( empty( $renderer ) )
        {
            $renderer = self::DEFAULT_RENDERER;
        }

        if ( !( self::$renderer instanceof ezpRestContentProviderInterface ) )
        {
            self::$renderer = self::createRenderer( $renderer, $content, $controller );
        }

        return self::$renderer;
    }
public static function getRenderer( $renderer, ezpContent $content, ezpRestMvcController $controller )
    {
        // If no content renderer has been given, we fall back to built-in 'xhtml' renderer.
        // Note: empty string is not a valid input.
        if ( empty( $renderer ) )
        {
            $renderer = self::DEFAULT_RENDERER;
        }

        if ( !( self::$renderer instanceof ezpRestContentProviderInterface ) )
        {
            self::$renderer = self::createRenderer( $renderer, $content, $controller );
        }

        return self::$renderer;
    }
public static function getRenderer ( $ renderer , ezpContent $ content , ezpRestMvcController $ controller ) { // If no content renderer has been given, we fall back to built-in 'xhtml' renderer. // Note: empty string is not a valid input. if ( empty ( $ renderer ) ) { $ renderer = self :: DEFAULT_RENDERER ; } if ( ! ( self :: $ renderer instanceof ezpRestContentProviderInterface ) ) { self :: $ renderer = self :: createRenderer ( $ renderer , $ content , $ controller ) ; } return self :: $ renderer ; }
Returns ezpRestContentProviderInterface object for given renderer and content

@static
@param string $renderer
@param ezpContent $content
@return bool|ezpRestContentProviderInterface
Returns ezpRestContentProviderInterface object for given renderer and content