Demand
Demand Object for filtering redirects in the backend module
Table of Contents
Constants
- DEFAULT_ORDER_FIELD = 'source_host'
- DEFAULT_SECONDARY_ORDER_FIELD = 'source_host'
- ORDER_ASCENDING = 'asc'
- ORDER_DESCENDING = 'desc'
- ORDER_FIELDS = ['source_host', 'source_path', 'lasthiton', 'hitcount', 'protected']
Properties
- $limit : int
- $orderDirection : string
- $orderField : string
- $page : int
- $secondaryOrderField : string
- $sourceHosts : array<string|int, string>
- $sourcePath : string
- $statusCodes : array<string|int, int>
- $target : string
Methods
- __construct() : mixed
- fromCommandInput() : self
- fromRequest() : self
- getDefaultOrderDirection() : string
- getFirstSourceHost() : string
- getFirstStatusCode() : int
- getLimit() : int
- getMaxHits() : int
- getOffset() : int
- Offset for the current set of records
- getOlderThan() : DateTimeInterface|null
- getOrderDirection() : string
- getOrderField() : string
- getPage() : int
- The current Page of the paginated redirects
- getParameters() : array<string|int, mixed>
- getReverseOrderDirection() : string
- getSecondaryOrderField() : string
- getSourceHosts() : array<string|int, mixed>|null
- getSourcePath() : string
- getStatusCodes() : array<string|int, mixed>
- getTarget() : string
- hasConstraints() : bool
- hasMaxHits() : bool
- hasOlderThan() : bool
- hasSecondaryOrdering() : bool
- hasSourceHosts() : bool
- hasSourcePath() : bool
- hasStatusCodes() : bool
- hasTarget() : bool
Constants
DEFAULT_ORDER_FIELD
protected
mixed
DEFAULT_ORDER_FIELD
= 'source_host'
DEFAULT_SECONDARY_ORDER_FIELD
protected
mixed
DEFAULT_SECONDARY_ORDER_FIELD
= 'source_host'
ORDER_ASCENDING
protected
mixed
ORDER_ASCENDING
= 'asc'
ORDER_DESCENDING
protected
mixed
ORDER_DESCENDING
= 'desc'
ORDER_FIELDS
protected
mixed
ORDER_FIELDS
= ['source_host', 'source_path', 'lasthiton', 'hitcount', 'protected']
Properties
$limit
protected
int
$limit
= 50
$orderDirection
protected
string
$orderDirection
$orderField
protected
string
$orderField
$page
protected
int
$page
$secondaryOrderField
protected
string
$secondaryOrderField
$sourceHosts
protected
array<string|int, string>
$sourceHosts
$sourcePath
protected
string
$sourcePath
$statusCodes
protected
array<string|int, int>
$statusCodes
= []
$target
protected
string
$target
Methods
__construct()
public
__construct([int $page = 1 ][, string $orderField = self::DEFAULT_ORDER_FIELD ][, string $orderDirection = self::ORDER_ASCENDING ][, array<string|int, mixed> $sourceHosts = [] ][, string $sourcePath = '' ][, string $target = '' ][, array<string|int, mixed> $statusCodes = [] ][, int $maxHits = 0 ][, DateTimeInterface|null $olderThan = null ]) : mixed
Parameters
- $page : int = 1
- $orderField : string = self::DEFAULT_ORDER_FIELD
- $orderDirection : string = self::ORDER_ASCENDING
- $sourceHosts : array<string|int, mixed> = []
- $sourcePath : string = ''
- $target : string = ''
- $statusCodes : array<string|int, mixed> = []
- $maxHits : int = 0
- $olderThan : DateTimeInterface|null = null
fromCommandInput()
public
static fromCommandInput(InputInterface $input) : self
Parameters
- $input : InputInterface
Return values
selffromRequest()
public
static fromRequest(ServerRequestInterface $request) : self
Parameters
- $request : ServerRequestInterface
Return values
selfgetDefaultOrderDirection()
public
getDefaultOrderDirection() : string
Return values
stringgetFirstSourceHost()
public
getFirstSourceHost() : string
Return values
stringgetFirstStatusCode()
public
getFirstStatusCode() : int
Return values
intgetLimit()
public
getLimit() : int
Return values
intgetMaxHits()
public
getMaxHits() : int
Return values
intgetOffset()
Offset for the current set of records
public
getOffset() : int
Return values
intgetOlderThan()
public
getOlderThan() : DateTimeInterface|null
Return values
DateTimeInterface|nullgetOrderDirection()
public
getOrderDirection() : string
Return values
stringgetOrderField()
public
getOrderField() : string
Return values
stringgetPage()
The current Page of the paginated redirects
public
getPage() : int
Return values
intgetParameters()
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getReverseOrderDirection()
public
getReverseOrderDirection() : string
Return values
stringgetSecondaryOrderField()
public
getSecondaryOrderField() : string
Return values
stringgetSourceHosts()
public
getSourceHosts() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetSourcePath()
public
getSourcePath() : string
Return values
stringgetStatusCodes()
public
getStatusCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>getTarget()
public
getTarget() : string
Return values
stringhasConstraints()
public
hasConstraints() : bool
Return values
boolhasMaxHits()
public
hasMaxHits() : bool
Return values
boolhasOlderThan()
public
hasOlderThan() : bool
Return values
boolhasSecondaryOrdering()
public
hasSecondaryOrdering() : bool
Return values
boolhasSourceHosts()
public
hasSourceHosts() : bool
Return values
boolhasSourcePath()
public
hasSourcePath() : bool
Return values
boolhasStatusCodes()
public
hasStatusCodes() : bool
Return values
boolhasTarget()
public
hasTarget() : bool