mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-13 00:18:08 +00:00
Sorting: Added SortSet model & migration
This commit is contained in:
parent
5b0cb3dd50
commit
b2ac3e0834
1 changed files with 16 additions and 0 deletions
16
app/Sorting/SortSetOption.php
Normal file
16
app/Sorting/SortSetOption.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace BookStack\Sorting;
|
||||
|
||||
enum SortSetOption: string
|
||||
{
|
||||
case NameAsc = 'name_asc';
|
||||
case NameDesc = 'name_desc';
|
||||
case NameNumericAsc = 'name_numeric_asc';
|
||||
case CreatedDateAsc = 'created_date_asc';
|
||||
case CreatedDateDesc = 'created_date_desc';
|
||||
case UpdateDateAsc = 'updated_date_asc';
|
||||
case UpdateDateDesc = 'updated_date_desc';
|
||||
case ChaptersFirst = 'chapters_first';
|
||||
case ChaptersLast = 'chapters_last';
|
||||
}
|
Loading…
Add table
Reference in a new issue