PendingApplications::downloadCsvFile PHP Méthode

downloadCsvFile() public méthode

Generate the CSV and send it to the browser.
public downloadCsvFile ( )
    public function downloadCsvFile()
    {
        $csv = $this->pendingApplicationsCSV();
        header('Content-type: text/csv');
        header("Content-Disposition: attachment; filename='PendingApplications.csv'");
        header('Pragma: no-cache');
        header('Expires: 0');
        echo $csv;
    }