Demand

Demand Object for filtering redirects in the backend module

Internal

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
$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
getCreationType()  : int|null
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
hasCreationType()  : 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

$creationType

protected int|null $creationType = -1

$orderDirection

protected string $orderDirection

$secondaryOrderField

protected string $secondaryOrderField

$sourceHosts

protected array<string|int, string> $sourceHosts

$statusCodes

protected array<string|int, int> $statusCodes = []

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 ]) : 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

fromCommandInput()

public static fromCommandInput(InputInterface $input) : self
Parameters
$input : InputInterface
Return values
self

fromRequest()

public static fromRequest(ServerRequestInterface $request) : self
Parameters
$request : ServerRequestInterface
Return values
self

getCreationType()

public getCreationType() : int|null
Return values
int|null

getDefaultOrderDirection()

public getDefaultOrderDirection() : string
Return values
string

getFirstSourceHost()

public getFirstSourceHost() : string
Return values
string

getFirstStatusCode()

public getFirstStatusCode() : int
Return values
int

getLimit()

public getLimit() : int
Return values
int

getMaxHits()

public getMaxHits() : int
Return values
int

getOffset()

Offset for the current set of records

public getOffset() : int
Return values
int

getOlderThan()

public getOlderThan() : DateTimeInterface|null
Return values
DateTimeInterface|null

getOrderDirection()

public getOrderDirection() : string
Return values
string

getOrderField()

public getOrderField() : string
Return values
string

getPage()

The current Page of the paginated redirects

public getPage() : int
Return values
int

getParameters()

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

getReverseOrderDirection()

public getReverseOrderDirection() : string
Return values
string

getSecondaryOrderField()

public getSecondaryOrderField() : string
Return values
string

getSourceHosts()

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

getSourcePath()

public getSourcePath() : string
Return values
string

getStatusCodes()

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

getTarget()

public getTarget() : string
Return values
string

hasConstraints()

public hasConstraints() : bool
Return values
bool

hasCreationType()

public hasCreationType() : bool
Return values
bool

hasMaxHits()

public hasMaxHits() : bool
Return values
bool

hasOlderThan()

public hasOlderThan() : bool
Return values
bool

hasSecondaryOrdering()

public hasSecondaryOrdering() : bool
Return values
bool

hasSourceHosts()

public hasSourceHosts() : bool
Return values
bool

hasSourcePath()

public hasSourcePath() : bool
Return values
bool

hasStatusCodes()

public hasStatusCodes() : bool
Return values
bool

hasTarget()

public hasTarget() : bool
Return values
bool

        
On this page

Search results