ReactionDemand

Demand Object for filtering reactions in the backend module

Internal

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

$orderDirection

protected string $orderDirection = self::ORDER_ASCENDING

$orderField

protected string $orderField = self::DEFAULT_ORDER_FIELD

$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
self

getDefaultOrderDirection()

public getDefaultOrderDirection() : string
Return values
string

getLimit()

public getLimit() : int
Return values
int

getName()

public getName() : string
Return values
string

getOffset()

public getOffset() : int
Return values
int

getOrderDirection()

public getOrderDirection() : string
Return values
string

getOrderField()

public getOrderField() : string
Return values
string

getPage()

public getPage() : int
Return values
int

getParameters()

public getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>

getReactionType()

public getReactionType() : string
Return values
string

getReverseOrderDirection()

public getReverseOrderDirection() : string
Return values
string

hasConstraints()

public hasConstraints() : bool
Return values
bool

hasName()

public hasName() : bool
Return values
bool

hasReactionType()

public hasReactionType() : bool
Return values
bool

        
On this page

Search results