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
- $creationType : int|null
- $integrityStatus : string|null
- $limit : int
- $orderDirection : string
- $orderField : string
- $page : int
- $protected : int|null
- $secondaryOrderField : string
- $sourceHosts : array<string|int, string>
- $sourcePath : string
- $statusCodes : array<string|int, int>
- $target : string
Methods
- __construct() : mixed
- fromCommandInput() : self
- fromRequest() : self
- getCreationType() : int|null
- getDefaultOrderDirection() : string
- getFirstSourceHost() : string
- getFirstStatusCode() : int
- getIntegrityStatus() : string|null
- 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>
- getProtected() : int|null
- getReverseOrderDirection() : string
- getSecondaryOrderField() : string
- getSourceHosts() : array<string|int, mixed>|null
- getSourcePath() : string
- getStatusCodes() : array<string|int, mixed>
- getTarget() : string
- hasConstraints() : bool
- hasCreationType() : bool
- hasIntegrityStatus() : bool
- hasMaxHits() : bool
- hasOlderThan() : bool
- hasProtected() : 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
$creationType
protected
int|null
$creationType
= -1
$integrityStatus
protected
string|null
$integrityStatus
= null
$limit
protected
int
$limit
= 50
$orderDirection
protected
string
$orderDirection
$orderField
protected
string
$orderField
$page
protected
int
$page
$protected
protected
int|null
$protected
= -1
$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 ][, int|null $creationType = -1 ][, int|null $protected = -1 ][, string|null $integrityStatus = 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
- $creationType : int|null = -1
- $protected : int|null = -1
- $integrityStatus : string|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
selfgetCreationType()
public
getCreationType() : int|null
Return values
int|nullgetDefaultOrderDirection()
public
getDefaultOrderDirection() : string
Return values
stringgetFirstSourceHost()
public
getFirstSourceHost() : string
Return values
stringgetFirstStatusCode()
public
getFirstStatusCode() : int
Return values
intgetIntegrityStatus()
public
getIntegrityStatus() : string|null
Return values
string|nullgetLimit()
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>getProtected()
public
getProtected() : int|null
Return values
int|nullgetReverseOrderDirection()
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
boolhasCreationType()
public
hasCreationType() : bool
Return values
boolhasIntegrityStatus()
public
hasIntegrityStatus() : bool
Return values
boolhasMaxHits()
public
hasMaxHits() : bool
Return values
boolhasOlderThan()
public
hasOlderThan() : bool
Return values
boolhasProtected()
public
hasProtected() : 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