PHP 클래스 Piwik\API\DataTableGenericFilter

파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $request, $report ) Constructor
areProcessedMetricsNeededFor ( $metrics )
disableFilters ( string[] $filterNames ) Makes sure a set of filters are not run.
filter ( DataTable $table ) Filters the given data table
getGenericFiltersInformation ( ) : array Returns an array containing the information of the generic Filter to be applied automatically to the data resulting from the API calls.

보호된 메소드들

메소드 설명
applyGenericFilters ( DataTable $datatable ) : boolean Apply generic filters to the DataTable object resulting from the API Call.

비공개 메소드들

메소드 설명
containsProcessedMetric ( Piwik\Plugin\ProcessedMetric[] $metrics, string $name ) : boolean
getGenericFiltersHavingDefaultValues ( )

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $request, $report )
$request

applyGenericFilters() 보호된 메소드

Disable this feature by setting the parameter disable_generic_filters to 1 in the API call request.
protected applyGenericFilters ( DataTable $datatable ) : boolean
$datatable Piwik\DataTable
리턴 boolean

areProcessedMetricsNeededFor() 공개 메소드

public areProcessedMetricsNeededFor ( $metrics )

disableFilters() 공개 메소드

Makes sure a set of filters are not run.
public disableFilters ( string[] $filterNames )
$filterNames string[] The name of each filter to disable.

filter() 공개 메소드

Filters the given data table
public filter ( DataTable $table )
$table Piwik\DataTable

getGenericFiltersInformation() 공개 정적인 메소드

Order to apply the filters: 1 - Filter that remove filtered rows 2 - Filter that sort the remaining rows 3 - Filter that keep only a subset of the results 4 - Presentation filters
public static getGenericFiltersInformation ( ) : array
리턴 array See the code for spec