Piwik\DataTable\Filter\

PrependSegment

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;'));

Methods

The class defines the following methods:

__construct()

Signature

  • 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()

See PrependValueToMetadata.

Signature

  • It accepts the following parameter(s):

  • It does not return anything.