protected function returnReport(common_report_Report $report)
    {
        $data = $report->getData();
        $successes = $report->getSuccesses();

        // if report has no data, try to get it from the sub report
        while ($data === null && count($successes) > 0) {
            $firstSubReport = current($successes);
            $data = $firstSubReport->getData();
            $successes = $firstSubReport->getSuccesses();
        }

        if ($data !== null && $data instanceof core_kernel_classes_Resource) {
            $this->setData('selectNode', tao_helpers_Uri::encode($data->getUri()));
        }
        $this->setData('report', $report);
        $this->setView('report.tpl', 'tao');
    }
protected function returnReport(common_report_Report $report)
    {
        $data = $report->getData();
        $successes = $report->getSuccesses();

        // if report has no data, try to get it from the sub report
        while ($data === null && count($successes) > 0) {
            $firstSubReport = current($successes);
            $data = $firstSubReport->getData();
            $successes = $firstSubReport->getSuccesses();
        }

        if ($data !== null && $data instanceof core_kernel_classes_Resource) {
            $this->setData('selectNode', tao_helpers_Uri::encode($data->getUri()));
        }
        $this->setData('report', $report);
        $this->setView('report.tpl', 'tao');
    }
protected function returnReport ( common_report_Report $ report ) { $ data = $ report -> getData ( ) ; $ successes = $ report -> getSuccesses ( ) ; // if report has no data, try to get it from the sub report while ( $ data === null && count ( $ successes ) > 0 ) { $ firstSubReport = current ( $ successes ) ; $ data = $ firstSubReport -> getData ( ) ; $ successes = $ firstSubReport -> getSuccesses ( ) ; } if ( $ data !== null && $ data instanceof core_kernel_classes_Resource ) { $ this -> setData ( 'selectNode' , tao_helpers_Uri :: encode ( $ data -> getUri ( ) ) ) ; } $ this -> setData ( 'report' , $ report ) ; $ this -> setView ( 'report.tpl' , 'tao' ) ; }
Returns a report

@param common_report_Report $report
Returns a report