Go to the source code of this file.
◆ ThreadSortation
Definition at line 21 of file ThreadSortation.php.
   23     public const DEFAULT_SORTATION = self::LAST_POST_DESC;
    26     case SUBJECT_DESC = 2;
    27     case LAST_POST_ASC = 3;
    28     case LAST_POST_DESC = 4;
    35             self::SUBJECT_ASC => 
'forums_thread_sorting_asc',
    36             self::SUBJECT_DESC => 
'forums_thread_sorting_dsc',
    37             self::LAST_POST_ASC => 
'forums_last_posting_asc',
    38             self::LAST_POST_DESC => 
'forums_last_posting_dsc',
    39             self::RATING_ASC => 
'forums_rating_asc',
    40             self::RATING_DESC => 
'forums_rating_dsc',
    44     public function field(): string
    47             self::SUBJECT_ASC, self::SUBJECT_DESC => 
'thr_subject',
    48             self::LAST_POST_ASC, self::LAST_POST_DESC => 
'lp_date',
    49             self::RATING_ASC, self::RATING_DESC => 
'rating',
    53     public function direction(): string
    56             self::SUBJECT_ASC, self::LAST_POST_ASC, self::RATING_ASC => 
'asc',
    57             self::SUBJECT_DESC, self::LAST_POST_DESC, self::RATING_DESC => 
'desc',