|
MIOLO26
|
Membros públicos | |
| arrayToCsvString ($array, $separator=';', $trim='both', $removeEmptyLines=TRUE) | |
| _valToCsvHelper ($val, $separator, $trimFunction) | |
| _define_newline () | |
| _get_browser_type () | |
| _get_mime_type () | |
| _generate_csv ($array) | |
| dump ($array, $filename="dump", $ext="csv") | |
| __construct ($separator=',') | |
| arrayToCsvString ($array, $separator=',', $trim='both', $removeEmptyLines=TRUE) | |
| _valToCsvHelper ($val, $separator, $trimFunction) | |
| _define_newline () | |
| _get_browser_type () | |
| _get_mime_type () | |
| _generate_csv ($array) | |
| dump ($array, $filename="dump", $ext="csv") | |
| __construct | ( | $separator = ',' | ) |
| _define_newline | ( | ) |
@desc Define EOL character according to target OS @access private
| _define_newline | ( | ) |
@desc Define EOL character according to target OS @access private
| _generate_csv | ( | $array | ) |
@desc Generates a CSV File from an SQL String (and outputs it to the browser) @access private
| _generate_csv | ( | $array | ) |
@desc Generates a CSV File from an SQL String (and outputs it to the browser) @access private
| _get_browser_type | ( | ) |
@desc Define the client's browser type @access private
| _get_browser_type | ( | ) |
@desc Define the client's browser type @access private
| _get_mime_type | ( | ) |
@desc Define MIME-TYPE according to target Browser @access private
| _get_mime_type | ( | ) |
@desc Define MIME-TYPE according to target Browser @access private
| _valToCsvHelper | ( | $val, | |
| $separator, | |||
| $trimFunction ) |
@desc Works on a string to include in a csv string. @access private
| String | $val | |
| String | $separator | |
| Mixed | $trimFunction | If the cells should be trimmed , default is 'both'. It can also be 'left', 'right' or 'both'. 'none' makes it faster since omits many function calls. |
| _valToCsvHelper | ( | $val, | |
| $separator, | |||
| $trimFunction ) |
@desc Works on a string to include in a csv string. @access private
| String | $val | |
| String | $separator | |
| Mixed | $trimFunction | If the cells should be trimmed , default is 'both'. It can also be 'left', 'right' or 'both'. 'none' makes it faster since omits many function calls. |
| arrayToCsvString | ( | $array, | |
| $separator = ',', | |||
| $trim = 'both', | |||
| $removeEmptyLines = TRUE ) |
@desc Takes an array and creates a csv string from it.
@access public
| Array | $array | (see below) |
| String | $separator | Field separator ()default is ';') |
| String | $trim | If the cells should be trimmed , default is 'both'. It can also be 'left', 'right' or 'both'. 'none' makes it faster since omits many function calls. |
| Boolean | $removeEmptyLines | (default is TRUE. removes "lines" that have no value, would come out empty.) |
| arrayToCsvString | ( | $array, | |
| $separator = ';', | |||
| $trim = 'both', | |||
| $removeEmptyLines = TRUE ) |
@desc Takes an array and creates a csv string from it.
@access public
| Array | $array | (see below) |
| String | $separator | Field separator ()default is ';') |
| String | $trim | If the cells should be trimmed , default is 'both'. It can also be 'left', 'right' or 'both'. 'none' makes it faster since omits many function calls. |
| Boolean | $removeEmptyLines | (default is TRUE. removes "lines" that have no value, would come out empty.) |
| dump | ( | $array, | |
| $filename = "dump", | |||
| $ext = "csv" ) |
@desc Generate the CSV File and send it to browser or download it as a file @access public
| String | $query_string | An SQL statement (usually a SELECT statement) |
| String | $filename | Filename to use when downloading the File. Default="dump". If set to "", the dump is displayed on the browser. |
| String | $extension | Extension to use when downloading the File. Default="csv" |
| String | $dbname | Name of the Database to use |
| String | $user | User to Access the Database |
| String | $password | Password to Access the Database |
| String | $host | Name of the Host holding the DB |
| dump | ( | $array, | |
| $filename = "dump", | |||
| $ext = "csv" ) |
@desc Generate the CSV File and send it to browser or download it as a file @access public
| String | $query_string | An SQL statement (usually a SELECT statement) |
| String | $filename | Filename to use when downloading the File. Default="dump". If set to "", the dump is displayed on the browser. |
| String | $extension | Extension to use when downloading the File. Default="csv" |
| String | $dbname | Name of the Database to use |
| String | $user | User to Access the Database |
| String | $password | Password to Access the Database |
| String | $host | Name of the Host holding the DB |