mini\Table\AbstractTable
abstract
class
Documentation
Base class for all table implementations
Provides:
- Centralized order() parsing into OrderDef[]
- Centralized limit/offset handling
- String collation function for sorting (locale-aware by default)
- Default union() and except() returning wrapper types
Inheritance
Implements:
mini\Table\Contracts\TableInterface
Traversable
Countable
IteratorAggregate
mini\Table\Contracts\SetInterface
Uses Traits:
mini\Table\Utility\TablePropertiesTrait
Properties (7)
array $columnDefs
array $visibleColumns
Closure $compareFn
int $limit
int $offset
array $props
Methods (37)
Documentation missing
Hook for subclasses to customize clone behavior
Get column name(s) that the row key represents
Get the string comparison function for sorting
Apply ordering to the table
Documentation missing
Documentation missing
Documentation missing
Documentation missing
Documentation missing
Get the current table alias (null if not set)
Documentation missing
Documentation missing
Documentation missing
Filter rows matching any of the given predicates (OR semantics)
Apply a Predicate to this table
Documentation missing
Check if value(s) exist in the table's projected columns
Get the primary key column definition (cached)
Find a column with a unique index (Primary or Unique)
Materialize function is needed to facilitate AbstractTableWrapper and other logic that
Iterate over rows with visible columns only
Get columns available for output
Get all column definitions regardless of projection
Narrow to specific columns
Load a single row by its row ID
Get a property value
Check if a property exists (including null values)
Return table with property set
public
abstract
eq()
inherited from Table\Contracts\TableInterface
Filter rows where column equals value (NULL uses IS NULL semantics)
public
abstract
lt()
inherited from Table\Contracts\TableInterface
Filter rows where column is less than value
public
abstract
lte()
inherited from Table\Contracts\TableInterface
Filter rows where column is less than or equal to value
public
abstract
gt()
inherited from Table\Contracts\TableInterface
Filter rows where column is greater than value
public
abstract
gte()
inherited from Table\Contracts\TableInterface
Filter rows where column is greater than or equal to value
public
abstract
in()
inherited from Table\Contracts\TableInterface
Filter rows where column value is in the given set
public
abstract
like()
inherited from Table\Contracts\TableInterface
Filter rows where column matches a LIKE pattern
public
abstract
count()
inherited from Countable
Documentation missing