Piwik\DataTable\Filter\

AddSegmentValue

Executes a filter for each row of a DataTable and generates a segment filter for each row.

Basic usage example

$dataTable->filter('AddSegmentValue', array());
$dataTable->filter('AddSegmentValue', array(function ($label) {
   $transformedValue = urldecode($transformedValue);
   return $transformedValue;

});

Methods

The class defines the following methods:

__construct()

Constructor.

Signature

  • It accepts the following parameter(s):
    • $table (DataTable) — The DataTable instance that will be filtered.
    • $callback

filter()

See ColumnCallbackAddMetadata.

Signature

  • It accepts the following parameter(s):

  • It does not return anything.