Piwik\DataTable\Filter\
Delete all rows from the table that are not in the given [offset, offset+limit) range.
Basic example usage
// delete all rows from 5 -> 15
$dataTable->filter('Limit', array(5, 10));
This class defines the following properties:
$offsetint value.$limitint value.$keepSummaryRowbool value.The class defines the following methods:
__construct() — Constructor.filter() ash; See Limit.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) —
$offset (int) —
The starting row index to keep.
$limit (int) —
Number of rows to keep (specify -1 to keep all rows).$keepSummaryRow (bool) —
Whether to keep the summary row or not.filter()See Limit.
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.