Piwik\DataTable\Filter\
Executes a callback for each row of a DataTable and prepends each existing segment with the given segment.
Basic usage example
$dataTable->filter('PrependSegment', array('segmentName==segmentValue;'));
The class defines the following methods:
__construct()filter() ash; See PrependValueToMetadata. Inherited from PrependValueToMetadataenableRecursive() 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()It accepts the following parameter(s):
$table (DataTable) —
$prependSegment (string) —
The segment to prepend if a segment is already defined. Make sure to include A condition, eg the segment should end with ';' or ','
filter()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.