Public Member Functions | Protected Member Functions

excelService Class Reference

Public Member Functions

 __construct (&$xmlArr)
 renderCSV ($objName)
 renderTSV ($objName)
 importCSV ($objName)

Protected Member Functions

 render ($objName, $separator=",", $ext="csv")
 strip_cell ($str)
 getDataTable ($objName)
 reportError ($error)

Detailed Description

Definition at line 28 of file excelService.php.


Constructor & Destructor Documentation

__construct ( &$  xmlArr )

Initialize excelService with xml array metadata

Parameters:
array$xmlArr
Returns:
void

Definition at line 37 of file excelService.php.


Member Function Documentation

getDataTable ( objName ) [protected]

Get raw data to display in the spreadsheet. header and data table

Parameters:
string$objName
Returns:
array

Definition at line 222 of file excelService.php.

Here is the call graph for this function:

Here is the caller graph for this function:

importCSV ( objName )

Import from CSV file NOTE: This method must be called from a popup form where a file is uploaded. The parent form of the popup form is the target to import.

Parameters:
string$objName
Returns:
void

Definition at line 76 of file excelService.php.

Here is the call graph for this function:

render ( objName,
separator = ",",
ext = "csv" 
) [protected]

Render excel data

Parameters:
string$objNameobject form name
string$separatorsparator between column
string$extfile extension
Returns:
void

Definition at line 178 of file excelService.php.

Here is the call graph for this function:

Here is the caller graph for this function:

renderCSV ( objName )

Render the excel output with CSV format

Parameters:
string$objNameobject name which is the bizform name
Returns:
void

Definition at line 47 of file excelService.php.

Here is the call graph for this function:

renderTSV ( objName )

Render the excel output with TSV format

Parameters:
string$objNameobject name which is the bizform name
Returns:
void

Definition at line 61 of file excelService.php.

Here is the call graph for this function:

reportError ( error ) [protected]

Show error message

Parameters:
int$errorerror number

Definition at line 253 of file excelService.php.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: