protected function getReportAttachment(common_report_Report $report)
    {
        $filename = null;
        /** @var common_report_Report $success */
        foreach ($report->getSuccesses() as $success) {
            if (!is_null($filename = $success->getData())) {
                if (is_array($filename)) {
                    $filename = $filename['uriResource'];
                }
                break;
            }
        }
        return $filename;
    }
protected function getReportAttachment(common_report_Report $report)
    {
        $filename = null;
        /** @var common_report_Report $success */
        foreach ($report->getSuccesses() as $success) {
            if (!is_null($filename = $success->getData())) {
                if (is_array($filename)) {
                    $filename = $filename['uriResource'];
                }
                break;
            }
        }
        return $filename;
    }
protected function getReportAttachment ( common_report_Report $ report ) { $ filename = null ; /** @var common_report_Report $success */ foreach ( $ report -> getSuccesses ( ) as $ success ) { if ( ! is_null ( $ filename = $ success -> getData ( ) ) ) { if ( is_array ( $ filename ) ) { $ filename = $ filename [ 'uriResource' ] ; } break ; } } return $ filename ; }
Extracts the path of the file attached to a report
@param common_report_Report $report
@return mixed|null
Extracts the path of the file attached to a report