PHP Class Piwik\API\DataTableGenericFilter

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
applyGenericFilters ( DataTable $datatable ) : boolean Apply generic filters to the DataTable object resulting from the API Call.

Private Methods

Méthode Description
containsProcessedMetric ( Piwik\Plugin\ProcessedMetric[] $metrics, string $name ) : boolean
getGenericFiltersHavingDefaultValues ( )

Method Details

__construct() public méthode

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

applyGenericFilters() protected méthode

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
Résultat boolean

areProcessedMetricsNeededFor() public méthode

public areProcessedMetricsNeededFor ( $metrics )

disableFilters() public méthode

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

filter() public méthode

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

getGenericFiltersInformation() public static méthode

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
Résultat array See the code for spec