\OrderablePaginatedList
Allows to Order Collections on the Frontend
Synopsis
class OrderablePaginatedList
extends PaginatedList
{
- // members
- protected string $sortField = 'Sort';
- protected $owner = NULL;
- protected $many_many = NULL;
- // methods
- public void __construct()
- public OrderablePaginatedList process()
- protected void initRequirements()
- public string getSortField()
- public OrderablePaginatedList setSortField()
- public string getOwner()
- public OrderablePaginatedList setOwner()
- public string getManyMany()
- public OrderablePaginatedList setManyMany()
- protected string getSortTable()
- protected void populateSortValues()
- protected void getSortTableClauseForIds()
- protected void reorderItems()
- protected void processOrdering()
- protected void reorderObjects()
- protected void moveToPage()
Hierarchy
Extends
- PaginatedList
Members
protected
- $many_many
- $owner
- $sortField
—
string
The database field which specifies the sort, defaults to "Sort".
Methods
protected
- getSortTable() — Gets the table which contains the sort field.
- getSortTableClauseForIds()
- initRequirements()
- moveToPage()
- populateSortValues()
- processOrdering()
- reorderItems()
- reorderObjects()
public
- __construct()
- getManyMany()
- getOwner()
- getSortField()
- process() — process the reordering
- setManyMany() — Sets the ManyMnay Rleation Name of owner
- setOwner() — Sets the the owner object of the many_many relation
- setSortField() — Sets the field used to specify the sort.