Documentation

CRM_Core_Report_Excel
in package

Class CRM_Core_Report_Excel

Table of Contents

Methods

makeCSVTable()  : mixed
Code copied from phpMyAdmin (v2.6.1-pl3) File: PHPMYADMIN/libraries/export/csv.php Function: PMA_exportData
outputHeaderRow()  : mixed
Output the header row for a csv file.
writeCSVFile()  : void
Write a CSV file to the browser output.
writeHTMLFile()  : mixed

Methods

makeCSVTable()

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

public static makeCSVTable(array<string|int, mixed> $header, array<string|int, mixed> $rows[, bool $outputHeader = TRUE ]) : mixed

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

Parameters
$header : array<string|int, mixed>

column headers.

$rows : array<string|int, mixed>

result set rows.

$outputHeader : bool = TRUE
Return values
mixed

empty if output is printed, else output

outputHeaderRow()

Output the header row for a csv file.

public static outputHeaderRow(array<string|int, mixed> $header) : mixed
Parameters
$header : array<string|int, mixed>

Array of field names.

writeCSVFile()

Write a CSV file to the browser output.

public static writeCSVFile(string $fileName, array<string|int, mixed> $header, array<string|int, mixed> $rows) : void
Parameters
$fileName : string

The name of the file that will be downloaded (this is sent to the browser).

$header : array<string|int, mixed>

An array of the headers.

$rows : array<string|int, mixed>

An array of arrays of the table contents.

writeHTMLFile()

public writeHTMLFile(string $fileName, array<string|int, string> $header, array<string|int, array<string|int, mixed>> $rows[, null $titleHeader = NULL ][, bool $outputHeader = TRUE ]) : mixed
Parameters
$fileName : string
$header : array<string|int, string>
$rows : array<string|int, array<string|int, mixed>>
$titleHeader : null = NULL
$outputHeader : bool = TRUE

        
On this page

Search results