Twig/Extension/ReportViewerExtension.php
public function renderDirectReportLink(ReportInstance $reportInstance, $linkText, $classes = ' ', $openInNewTab = true, $hideHome = true)
    {
        return $this->environment->render(
            'MesdJasperReportViewerBundle:Partials:directReportLink.html.twig',
            array(
                'reportUri' => $reportInstance->getReportUri(),
                'parameters' => urlencode(serialize($reportInstance->getParameters())),
                'linkText' => $linkText,
                'classes' => $classes,
                'openInNewTab' => $openInNewTab,
                'hideHome' => $hideHome));
    }
public function renderDirectReportLink(ReportInstance $reportInstance, $linkText, $classes = ' ', $openInNewTab = true, $hideHome = true)
    {
        return $this->environment->render(
            'MesdJasperReportViewerBundle:Partials:directReportLink.html.twig',
            array(
                'reportUri' => $reportInstance->getReportUri(),
                'parameters' => urlencode(serialize($reportInstance->getParameters())),
                'linkText' => $linkText,
                'classes' => $classes,
                'openInNewTab' => $openInNewTab,
                'hideHome' => $hideHome));
    }
public function renderDirectReportLink ( ReportInstance $ reportInstance , $ linkText , $ classes = ' ' , $ openInNewTab = true , $ hideHome = true ) { return $ this -> environment -> render ( 'MesdJasperReportViewerBundle:Partials:directReportLink.html.twig' , array ( 'reportUri' => $ reportInstance -> getReportUri ( ) , 'parameters' => urlencode ( serialize ( $ reportInstance -> getParameters ( ) ) ) , 'linkText' => $ linkText , 'classes' => $ classes , 'openInNewTab' => $ openInNewTab , 'hideHome' => $ hideHome ) ) ; }
Renders a report immediately in the viewer with the parameters from the report instance object

@param  ReportInstance $reportInstance The instance of a report to run
@param  string         $linkText       THe text to place in the link
@param  string         $classes        The classes to add to the link
@param  boolean        $openInNewTab   Whether the report viewer would open in a new tab
@param  boolean        $hideHome       Whether the report home should be shown

@return string                         The rendered link html
Renders a report immediately in the viewer with the parameters from the report instance object