class CRM_Core_Report_Excel

Class CRM_Core_Report_Excel

Methods

static mixed
makeCSVTable(string $header, string $rows, null $titleHeader = NULL, bool $print = TRUE, bool $outputHeader = TRUE)

Code copied from phpMyAdmin (v2.6.1-pl3) File: PHPMYADMIN/libraries/export/csv.php Function: PMA_exportData

writeHTMLFile(string $fileName, $header, $rows, null $titleHeader = NULL, bool $outputHeader = TRUE)

No description

static void
writeCSVFile(string $fileName, array $header, array $rows, string $titleHeader = NULL, bool $outputHeader = TRUE, bool $saveFile = NULL)

Write a CSV file to the browser output.

Details

at line 54
static mixed makeCSVTable(string $header, string $rows, null $titleHeader = NULL, bool $print = TRUE, bool $outputHeader = TRUE)

Code copied from phpMyAdmin (v2.6.1-pl3) File: PHPMYADMIN/libraries/export/csv.php Function: PMA_exportData

Outputs a result set with a given header in the string buffer result

Parameters

string $header (reference ) column headers.
string $rows (reference ) result set rows.
null $titleHeader
bool $print Should the output be printed.
bool $outputHeader

Return Value

mixed empty if output is printed, else output

at line 162
writeHTMLFile(string $fileName, $header, $rows, null $titleHeader = NULL, bool $outputHeader = TRUE)

Parameters

string $fileName
$header
$rows
null $titleHeader
bool $outputHeader

at line 209
static void writeCSVFile(string $fileName, array $header, array $rows, string $titleHeader = NULL, bool $outputHeader = TRUE, bool $saveFile = NULL)

Write a CSV file to the browser output.

Parameters

string $fileName The name of the file that will be downloaded (this is sent to the browser).
array $header An array of the headers.
array $rows An array of arrays of the table contents.
string $titleHeader If set this will be the title in the CSV.
bool $outputHeader Should we output the header row.
bool $saveFile -.

Return Value

void