ReactionDemand
Demand Object for filtering reactions in the backend module
Table of Contents
Constants
- DEFAULT_ORDER_FIELD = 'name'
- ORDER_ASCENDING = 'asc'
- ORDER_DESCENDING = 'desc'
- ORDER_FIELDS = ['name', 'reaction_type']
Properties
- $limit : int
- $name : string
- $orderDirection : string
- $orderField : string
- $page : int
- $reactionType : string
Methods
- __construct() : mixed
- fromRequest() : self
- getDefaultOrderDirection() : string
- getLimit() : int
- getName() : string
- getOffset() : int
- getOrderDirection() : string
- getOrderField() : string
- getPage() : int
- getParameters() : array<string|int, mixed>
- getReactionType() : string
- getReverseOrderDirection() : string
- hasConstraints() : bool
- hasName() : bool
- hasReactionType() : bool
Constants
DEFAULT_ORDER_FIELD
    protected
        mixed
    DEFAULT_ORDER_FIELD
    = 'name'
    
    
    
    
ORDER_ASCENDING
    protected
        mixed
    ORDER_ASCENDING
    = 'asc'
    
    
    
    
ORDER_DESCENDING
    protected
        mixed
    ORDER_DESCENDING
    = 'desc'
    
    
    
    
ORDER_FIELDS
    protected
        mixed
    ORDER_FIELDS
    = ['name', 'reaction_type']
    
    
    
    
Properties
$limit
        protected
            int
    $limit
     = 15
    
    
    
    
    
$name
        protected
            string
    $name
     = ''
    
    
    
    
    
$orderDirection
        protected
            string
    $orderDirection
     = self::ORDER_ASCENDING
    
    
    
    
    
$orderField
        protected
            string
    $orderField
     = self::DEFAULT_ORDER_FIELD
    
    
    
    
    
$page
        protected
            int
    $page
     = 1
    
    
    
    
    
$reactionType
        protected
            string
    $reactionType
     = ''
    
    
    
    
    
Methods
__construct()
    public
                    __construct([int $page = 1 ][, string $orderField = self::DEFAULT_ORDER_FIELD ][, string $orderDirection = self::ORDER_ASCENDING ][, string $name = '' ][, string $reactionType = '' ]) : mixed
    Parameters
- $page : int = 1
- $orderField : string = self::DEFAULT_ORDER_FIELD
- $orderDirection : string = self::ORDER_ASCENDING
- $name : string = ''
- $reactionType : string = ''
fromRequest()
    public
            static        fromRequest(ServerRequestInterface $request) : self
    Parameters
- $request : ServerRequestInterface
Return values
selfgetDefaultOrderDirection()
    public
                    getDefaultOrderDirection() : string
    Return values
stringgetLimit()
    public
                    getLimit() : int
    Return values
intgetName()
    public
                    getName() : string
    Return values
stringgetOffset()
    public
                    getOffset() : int
    Return values
intgetOrderDirection()
    public
                    getOrderDirection() : string
    Return values
stringgetOrderField()
    public
                    getOrderField() : string
    Return values
stringgetPage()
    public
                    getPage() : int
    Return values
intgetParameters()
    public
                    getParameters() : array<string|int, mixed>
    Return values
array<string|int, mixed>getReactionType()
    public
                    getReactionType() : string
    Return values
stringgetReverseOrderDirection()
    public
                    getReverseOrderDirection() : string
    Return values
stringhasConstraints()
    public
                    hasConstraints() : bool
    Return values
boolhasName()
    public
                    hasName() : bool
    Return values
boolhasReactionType()
    public
                    hasReactionType() : bool