mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Sorting: Added SortSet model & migration
This commit is contained in:
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';
|
||||||
|
}
|
Reference in New Issue
Block a user