PHP 클래스 Piwik\API\DataTableManipulator\Flattener

It loads subtables and combines them into a single table by concatenating the labels. This manipulator is triggered by using flat=1 in the API request.
상속: extends Piwik\API\DataTableManipulator
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$recursiveLabelSeparator string Separator for building recursive labels (or paths)

공개 메소드들

메소드 설명
flatten ( DataTable $dataTable, string $recursiveLabelSeparator ) : DataTable | Piwik\DataTable\Map
includeAggregateRows ( ) If the flattener is used after calling this method, aggregate rows will be included in the result. This can be useful when they contain data that the leafs don't have (e.g. conversion stats in some cases).

보호된 메소드들

메소드 설명
flattenDataTableInto ( $dataTable, $newDataTable, $prefix = '', $logo = false )
manipulateDataTable ( DataTable $dataTable ) : DataTable Template method called from self::manipulate.
manipulateSubtableRequest ( array $request ) : array Remove the flat parameter from the subtable request

비공개 메소드들

메소드 설명
flattenRow ( Row $row, $rowId, DataTable $dataTable, string $labelPrefix = '', boolean $parentLogo = false )

메소드 상세

flatten() 공개 메소드

public flatten ( DataTable $dataTable, string $recursiveLabelSeparator ) : DataTable | Piwik\DataTable\Map
$dataTable Piwik\DataTable
$recursiveLabelSeparator string
리턴 Piwik\DataTable | Piwik\DataTable\Map

flattenDataTableInto() 보호된 메소드

protected flattenDataTableInto ( $dataTable, $newDataTable, $prefix = '', $logo = false )
$dataTable DataTable
$newDataTable

includeAggregateRows() 공개 메소드

If the flattener is used after calling this method, aggregate rows will be included in the result. This can be useful when they contain data that the leafs don't have (e.g. conversion stats in some cases).

manipulateDataTable() 보호된 메소드

Flatten each data table.
protected manipulateDataTable ( DataTable $dataTable ) : DataTable
$dataTable Piwik\DataTable
리턴 Piwik\DataTable

manipulateSubtableRequest() 보호된 메소드

Remove the flat parameter from the subtable request
protected manipulateSubtableRequest ( array $request ) : array
$request array
리턴 array

프로퍼티 상세

$recursiveLabelSeparator 공개적으로 프로퍼티

Separator for building recursive labels (or paths)
public string $recursiveLabelSeparator
리턴 string