public function getRendererName()
    {
        $options = $this->getOptions();
        $parameterName = $options['generalParameterNames']['rendererType'];

        if ($this->forceRenderer !== null) {
            // A special renderer was given -> use is
            $rendererName = $this->forceRenderer;
        } else {
            // DEFAULT
            if ($this->getRequest() instanceof ConsoleRequest) {
                $rendererName = $options['settings']['default']['renderer']['console'];
            } else {
                $rendererName = $options['settings']['default']['renderer']['http'];
            }
        }

        // From request
        if ($this->getRequest() instanceof HttpRequest && $this->getRequest()->getQuery($parameterName) != '') {
            $rendererName = $this->getRequest()->getQuery($parameterName);
        }

        return $rendererName;
    }
public function getRendererName()
    {
        $options = $this->getOptions();
        $parameterName = $options['generalParameterNames']['rendererType'];

        if ($this->forceRenderer !== null) {
            // A special renderer was given -> use is
            $rendererName = $this->forceRenderer;
        } else {
            // DEFAULT
            if ($this->getRequest() instanceof ConsoleRequest) {
                $rendererName = $options['settings']['default']['renderer']['console'];
            } else {
                $rendererName = $options['settings']['default']['renderer']['http'];
            }
        }

        // From request
        if ($this->getRequest() instanceof HttpRequest && $this->getRequest()->getQuery($parameterName) != '') {
            $rendererName = $this->getRequest()->getQuery($parameterName);
        }

        return $rendererName;
    }
public function getRendererName ( ) { $ options = $ this -> getOptions ( ) ; $ parameterName = $ options [ 'generalParameterNames' ] [ 'rendererType' ] ; if ( $ this -> forceRenderer !== null ) { // A special renderer was given -> use is $ rendererName = $ this -> forceRenderer ; } else { // DEFAULT if ( $ this -> getRequest ( ) instanceof ConsoleRequest ) { $ rendererName = $ options [ 'settings' ] [ 'default' ] [ 'renderer' ] [ 'console' ] ; } else { $ rendererName = $ options [ 'settings' ] [ 'default' ] [ 'renderer' ] [ 'http' ] ; } } // From request if ( $ this -> getRequest ( ) instanceof HttpRequest && $ this -> getRequest ( ) -> getQuery ( $ parameterName ) != '' ) { $ rendererName = $ this -> getRequest ( ) -> getQuery ( $ parameterName ) ; } return $ rendererName ; }
Get the current renderer name.

@return string
Get the current renderer name .