Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
render ( ) : string | Computes the dataTable output and returns the string/binary | |
setConvertToUnicode ( $bool ) | Enables / Disables unicode converting | |
setSeparator ( $separator ) | Sets the column separator |
Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | string |
protected removeFirstPercentSign ( $value ) : mixed | ||
$value | ||
Результат | mixed |
protected renderDataTable ( |
||
$table | ||
$allColumns | array | |
Результат | string |
protected renderDataTableMap ( Piwik\DataTable\Map $table, array &$allColumns = [] ) : string | ||
$table | Piwik\DataTable\Map | |
$allColumns | array | |
Результат | string |
public setConvertToUnicode ( $bool ) | ||
$bool |
public setSeparator ( $separator ) | ||
$separator |
public bool $convertToUnicode | ||
Результат | boolean |
public bool $exportIdSubtable | ||
Результат | boolean |
public bool $exportMetadata | ||
Результат | boolean |