ProductSort
        
        extends SortableEnum
    
    
            
            in package
            
        
    
    
    
        
            This is the sort product value enumerate.
Tags
Table of Contents
| DATEADDED | = 'DATEADDED' | |
|---|---|---|
| FEATURED | = 'FEATURED' | |
| ID | = 'ID' | |
| NAME | = 'NAME' | |
| OFFER | = 'OFFER' | |
| PID | = 'PID' | |
| PRICE | = 'PRICE' | |
| PRIORITY | = 'PRIORITY' | |
| SKU | = 'SKU' | |
| SORT_DIRECTION_ASC | = 'ASC' | |
| SORT_DIRECTION_DESC | = 'DESC' | |
| areValid() | Check if the given values is a valid sortable value for the called enumerate. | : bool | 
| getValues() | : array<string|int, mixed> | |
| isValid() | Check if the given value is inside the called enumerate. | : bool | 
Constants
DATEADDED
    public
    mixed
    DATEADDED
    = 'DATEADDED'
        
        
    
FEATURED
    public
    mixed
    FEATURED
    = 'FEATURED'
        
        
    
ID
    public
    mixed
    ID
    = 'ID'
        
        
    
NAME
    public
    mixed
    NAME
    = 'NAME'
        
        
    
OFFER
    public
    mixed
    OFFER
    = 'OFFER'
        
        
    
PID
    public
    mixed
    PID
    = 'PID'
        
        
    
PRICE
    public
    mixed
    PRICE
    = 'PRICE'
        
        
    
PRIORITY
    public
    mixed
    PRIORITY
    = 'PRIORITY'
        
        
    
SKU
    public
    mixed
    SKU
    = 'SKU'
        
        
    
SORT_DIRECTION_ASC
    public
    mixed
    SORT_DIRECTION_ASC
    = 'ASC'
        
        
    
SORT_DIRECTION_DESC
    public
    mixed
    SORT_DIRECTION_DESC
    = 'DESC'
        
        
    
Methods
areValid()
Check if the given values is a valid sortable value for the called enumerate.
    public
            static    areValid(array<string|int, mixed> $values) : bool
    
        Parameters
- $values : array<string|int, mixed>
- 
                    Array that contains all the values to check 
Return values
bool —getValues()
    public
            static    getValues() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —isValid()
Check if the given value is inside the called enumerate.
    public
            static    isValid(string $value) : bool
    
        Parameters
- $value : string
- 
                    value to check