mini\Table\Wrappers\FilteredTable class

Documentation

Filters rows from source table using a column/operator/value condition

Unlike AbstractTableWrapper's default pushdown behavior, FilteredTable applies filtering in-memory during materialization. This is used by BarrierTable to filter already-selected rows.

new FilteredTable($source, 'status', Operator::Eq, 'active')
new FilteredTable($source, 'age', Operator::Gte, 18)
new FilteredTable($source, 'id', Operator::In, $setOfIds)

Inheritance

Extends: mini\Table\Wrappers\AbstractTableWrapper

Implements: mini\Table\Contracts\TableInterface Traversable Countable IteratorAggregate mini\Table\Contracts\SetInterface

Uses Traits: mini\Table\Utility\TablePropertiesTrait

Properties (9)

private mini\Table\ColumnDef $columnDef
private string $column
private mini\Table\Types\Operator $operator
private mixed $value
protected mini\Table\AbstractTable $source
protected ?Closure $compareFn
protected ?int $limit
protected int $offset
private array $props

Methods (56)

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Test if a row matches this filter

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Compare two values respecting column type

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Restore absorbed pagination to a replacement table

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

public getSource()
inherited from mini\Table\Wrappers\AbstractTableWrapper

Get the source table this wrapper delegates to

Get a property value

Check if a property exists (including null values)

public getColumns()
inherited from mini\Table\Wrappers\AbstractTableWrapper

Documentation missing

public getAllColumns()
inherited from mini\Table\Wrappers\AbstractTableWrapper

Documentation missing

public columns()
inherited from mini\Table\Wrappers\AbstractTableWrapper

Documentation missing

protected getCompareFn()
inherited from mini\Table\Wrappers\AbstractTableWrapper

Documentation missing

public in()
inherited from mini\Table\Wrappers\AbstractTableWrapper

Documentation missing

public like()
inherited from mini\Table\Wrappers\AbstractTableWrapper

Documentation missing

public or()
inherited from mini\Table\Wrappers\AbstractTableWrapper

Documentation missing

public __clone()
inherited from mini\Table\AbstractTable

Hook for subclasses to customize clone behavior

public getRowKeyColumns()
inherited from mini\Table\AbstractTable

Get column name(s) that the row key represents

public getLimit()
inherited from mini\Table\AbstractTable

Documentation missing

public getOffset()
inherited from mini\Table\AbstractTable

Documentation missing

public withAlias()
inherited from mini\Table\AbstractTable

Documentation missing

public getTableAlias()
inherited from mini\Table\AbstractTable

Get the current table alias (null if not set)

public union()
inherited from mini\Table\AbstractTable

Documentation missing

public except()
inherited from mini\Table\AbstractTable

Documentation missing

public distinct()
inherited from mini\Table\AbstractTable

Documentation missing

public exists()
inherited from mini\Table\AbstractTable

Documentation missing

protected getPrimaryKeyColumn()
inherited from mini\Table\AbstractTable

Get the primary key column definition (cached)

public final getIterator()
inherited from mini\Table\AbstractTable

Iterate over rows with visible columns only

Return table with property set

Source

src/Table/Wrappers/FilteredTable.php:27-625