Свойство | Type | Description | |
---|---|---|---|
$convertToUnicode | boolean | Converts the content to unicode so that UTF8 characters (eg. chinese) can be imported in Excel | |
$exportIdSubtable | boolean | idSubtable will be exported in a column called 'idsubdatatable' | |
$exportMetadata | boolean | 'metadata' columns will be exported, prefixed by 'metadata_' | |
$lineEnd | string | Line end | |
$separator | string | Column separator |
Méthode | Description | |
---|---|---|
render ( ) : string | Computes the dataTable output and returns the string/binary | |
setConvertToUnicode ( $bool ) | Enables / Disables unicode converting | |
setSeparator ( $separator ) | Sets the column separator |
Méthode | Description | |
---|---|---|
formatFormulas ( $value ) | ||
formatValue ( mixed $value ) : string | Formats/Escapes the given value | |
removeFirstPercentSign ( $value ) : mixed | ||
renderDataTable ( |
Converts the output of the given simple data table | |
renderDataTableMap ( Piwik\DataTable\Map $table, array &$allColumns = [] ) : string | Computes the output of the given data table array | |
renderHeader ( ) | Sends the http headers for csv file | |
renderTable ( |
Computes the output of the given data table |
Méthode | Description | |
---|---|---|
buildCsvString ( $allColumns, $csv ) : array | ||
convertToUnicode ( $str ) : string | ||
flattenColumnArray ( $columns, &$csvRow = [], $csvColumnNameTemplate = '%s' ) | Flattens an array of column values so they can be outputted as CSV (which does not support nested structures). | |
getCsvColumnName ( $name ) | ||
getHeaderLine ( array $columnMetrics ) : array | Returns the CSV header line for a set of metrics. Will translate columns if desired. | |
makeArrayFromDataTable ( $table, &$allColumns ) : array |
protected formatValue ( mixed $value ) : string | ||
$value | mixed | |
Résultat | string |
protected removeFirstPercentSign ( $value ) : mixed | ||
$value | ||
Résultat | mixed |
protected renderDataTable ( |
||
$table | ||
$allColumns | array | |
Résultat | string |
protected renderDataTableMap ( Piwik\DataTable\Map $table, array &$allColumns = [] ) : string | ||
$table | Piwik\DataTable\Map | |
$allColumns | array | |
Résultat | string |
public setConvertToUnicode ( $bool ) | ||
$bool |
public setSeparator ( $separator ) | ||
$separator |
public bool $convertToUnicode | ||
Résultat | boolean |
public bool $exportIdSubtable | ||
Résultat | boolean |
public bool $exportMetadata | ||
Résultat | boolean |