PHP 클래스 Piwik\API\DataTableManipulator\ReportTotalsCalculator

.. for a given report / dataTable.
상속: extends Piwik\API\DataTableManipulator
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( boolean $apiModule = false, boolean $apiMethod = false, array $request = [], Report $report = null ) Constructor
calculate ( DataTable $table ) : DataTable | Piwik\DataTable\Map

보호된 메소드들

메소드 설명
manipulateDataTable ( DataTable $dataTable ) : DataTable Adds ratio metrics if possible.
manipulateSubtableRequest ( array $request ) : array Make sure to get all rows of the first level table.

비공개 메소드들

메소드 설명
findFirstLevelReport ( )
isAllMetricsReport ( )
makeSureToWorkOnFirstLevelDataTable ( $table )
sumColumnValueToTotal ( $columns, $metricId, $metricName )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( boolean $apiModule = false, boolean $apiMethod = false, array $request = [], Report $report = null )
$apiModule boolean
$apiMethod boolean
$request array
$report Piwik\Plugin\Report

calculate() 공개 메소드

public calculate ( DataTable $table ) : DataTable | Piwik\DataTable\Map
$table Piwik\DataTable
리턴 Piwik\DataTable | Piwik\DataTable\Map

manipulateDataTable() 보호된 메소드

Adds ratio metrics if possible.
protected manipulateDataTable ( DataTable $dataTable ) : DataTable
$dataTable Piwik\DataTable
리턴 Piwik\DataTable

manipulateSubtableRequest() 보호된 메소드

Make sure to get all rows of the first level table.
protected manipulateSubtableRequest ( array $request ) : array
$request array
리턴 array