Piwik\DataTable\Filter\
Deletes rows that do not contain a column that matches a regex pattern and do not contain a subtable that contains a column that matches a regex pattern.
Example
// only display index pageviews in Actions.getPageUrls
$dataTable->filter('PatternRecursive', array('label', 'index'));
The class defines the following methods:
__construct() — Constructor.filter() ash; See PatternRecursive.enableRecursive() ash; Enables/Disables recursive filtering. Inherited from BaseFilterfilterSubTable() ash; Filters a row's subtable, if one exists and is loaded in memory. Inherited from BaseFilter__construct()Constructor.
It accepts the following parameter(s):
$table (DataTable) —
$columnToFilter (string) —
The column to match with the $patternToSearch pattern.
$patternToSearch (string) —
The regex pattern to use.filter()See PatternRecursive.
It accepts the following parameter(s):
$table (DataTable) —It does not return anything or a mixed result.
enableRecursive()Enables/Disables recursive filtering. Whether this property is actually used is up to the derived BaseFilter class.
It accepts the following parameter(s):
$enable (bool) —It does not return anything or a mixed result.
filterSubTable()Filters a row's subtable, if one exists and is loaded in memory.
$row (Row) —
The row whose subtable should be filter.