Piwik\DataTable\Filter\
Executes a callback for each row of a DataTable and prepends the given value to each metadata entry but only if the given metadata entry exists.
Basic usage example
$dataTable->filter('PrependValueToMetadata', array('segment', 'segmentName==segmentValue'));
The class defines the following methods:
__construct()
filter()
ash; See PrependValueToMetadata.enableRecursive()
ash; Enables/Disables recursive filtering. Inherited from BaseFilter
filterSubTable()
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
) —
$metadataName
(string
) —
The name of the metadata that should be prepended
$valueToPrepend
(string
) —
The value to prepend if the metadata entry existsfilter()
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.