SortTrait
trait SortTrait
Methods
void
sortMoveTo(int $id, int $sortTo, array|null $conditions = [])
Sort this element to a specific position
sort_down(int $steps = 1, $params = array())
Decrease Sort Priority (Increases SORT value)
sort_up(int $steps = 1, $params = array())
Increase Sort Priority (Decreases SORT value)
int
update_sort(mixed $id = false, string $direction = 'up', int $steps = 1, array $params = array())
Update the sort property for a given table (Move a record up/down)
Details
at line 116
void
sortMoveTo(int $id, int $sortTo, array|null $conditions = [])
Sort this element to a specific position
at line 28
sort_down(int $steps = 1, $params = array())
Decrease Sort Priority (Increases SORT value)
at line 17
sort_up(int $steps = 1, $params = array())
Increase Sort Priority (Decreases SORT value)
at line 43
protected int
update_sort(mixed $id = false, string $direction = 'up', int $steps = 1, array $params = array())
Update the sort property for a given table (Move a record up/down)