SortScope
        
        extends BaseScope
    
    
            
            in package
            
        
    
    
    
Class BaseScope.
Table of Contents
Constants
- SORT_DEFAULT = \MetaFox\Platform\Support\Browse\Browse::SORT_RECENT
 - SORT_TYPE_DEFAULT = \MetaFox\Platform\Support\Browse\Browse::SORT_TYPE_DESC
 
Methods
- apply() : mixed
 - applyQueryBuilder() : void
 - getAllowSort() : array<int, string>
 - getAllowSortType() : array<int, string>
 - likeOperator() : string
 - return the case-insensitive LIKE operator bases on the current database driver.
 - alias() : string
 
Constants
SORT_DEFAULT
    public
        mixed
    SORT_DEFAULT
    = \MetaFox\Platform\Support\Browse\Browse::SORT_RECENT
    
    
    
SORT_TYPE_DEFAULT
    public
        mixed
    SORT_TYPE_DEFAULT
    = \MetaFox\Platform\Support\Browse\Browse::SORT_TYPE_DESC
    
    
    
Methods
apply()
    public
                    apply(Builder $builder, Model $model) : mixed
    Parameters
- $builder : Builder
 - $model : Model
 
Tags
applyQueryBuilder()
    public
                    applyQueryBuilder(Builder $builder) : void
    Parameters
- $builder : Builder
 
getAllowSort()
    public
            static        getAllowSort() : array<int, string>
    Return values
array<int, string>getAllowSortType()
    public
            static        getAllowSortType() : array<int, string>
    Return values
array<int, string>likeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
    public
                    likeOperator() : string
    Return values
stringalias()
    protected
                    alias(string $table, string $column) : string
    Parameters
- $table : string
 - $column : string