‪TYPO3CMS  ‪main
TYPO3\CMS\Redirects\Repository\Demand Class Reference

Public Member Functions

 __construct (int $page=1, string $orderField=self::DEFAULT_ORDER_FIELD, string $orderDirection=self::ORDER_ASCENDING, array $sourceHosts=[], string $sourcePath='', string $target='', array $statusCodes=[], int $maxHits=0, \DateTimeInterface $olderThan=null, ?int $creationType=-1, ?int $protected=-1, ?string $integrityStatus=RedirectConflict::NO_CONFLICT)
 
 getMaxHits ()
 
 hasMaxHits ()
 
 getOlderThan ()
 
 hasOlderThan ()
 
 getOrderField ()
 
 getOrderDirection ()
 
 getDefaultOrderDirection ()
 
 getReverseOrderDirection ()
 
 hasSecondaryOrdering ()
 
 getSecondaryOrderField ()
 
 getFirstSourceHost ()
 
 getSourceHosts ()
 
 getSourcePath ()
 
 getTarget ()
 
 getLimit ()
 
 getCreationType ()
 
 getProtected ()
 
 getIntegrityStatus ()
 
 getFirstStatusCode ()
 
 getStatusCodes ()
 
 hasStatusCodes ()
 
 hasSourceHosts ()
 
 hasSourcePath ()
 
 hasTarget ()
 
 hasCreationType ()
 
 hasProtected ()
 
 hasIntegrityStatus ()
 
 hasConstraints ()
 
 getPage ()
 
 getOffset ()
 
 getParameters ()
 

Static Public Member Functions

static fromRequest (ServerRequestInterface $request)
 
static fromCommandInput (InputInterface $input)
 

Protected Attributes

const ORDER_DESCENDING = 'desc'
 
const ORDER_ASCENDING = 'asc'
 
const DEFAULT_ORDER_FIELD = 'source_host'
 
const DEFAULT_SECONDARY_ORDER_FIELD = 'source_host'
 
const ORDER_FIELDS = ['source_host', 'source_path', 'lasthiton', 'hitcount', 'protected']
 
string $orderField
 
string $orderDirection
 
array $sourceHosts
 
string $sourcePath
 
string $target
 
array $statusCodes = []
 
int $limit = 50
 
int $page
 
string $secondaryOrderField
 
int $creationType = -1
 
int $protected = -1
 
string $integrityStatus = RedirectConflict::NO_CONFLICT
 

Private Attributes

int $maxHits
 
DateTimeInterface $olderThan
 

Detailed Description

Demand Object for filtering redirects in the backend module

Definition at line 28 of file Demand.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ fromCommandInput()

static TYPO3\CMS\Redirects\Repository\Demand::fromCommandInput ( InputInterface  $input)
static

◆ fromRequest()

◆ getCreationType()

◆ getDefaultOrderDirection()

TYPO3\CMS\Redirects\Repository\Demand::getDefaultOrderDirection ( )

Definition at line 166 of file Demand.php.

References TYPO3\CMS\Redirects\Repository\Demand\ORDER_ASCENDING.

◆ getFirstSourceHost()

TYPO3\CMS\Redirects\Repository\Demand::getFirstSourceHost ( )

Definition at line 186 of file Demand.php.

Referenced by TYPO3\CMS\Redirects\Repository\Demand\getParameters().

◆ getFirstStatusCode()

TYPO3\CMS\Redirects\Repository\Demand::getFirstStatusCode ( )

Definition at line 226 of file Demand.php.

Referenced by TYPO3\CMS\Redirects\Repository\Demand\getParameters().

◆ getIntegrityStatus()

◆ getLimit()

◆ getMaxHits()

◆ getOffset()

TYPO3\CMS\Redirects\Repository\Demand::getOffset ( )

◆ getOlderThan()

TYPO3\CMS\Redirects\Repository\Demand::getOlderThan ( )

◆ getOrderDirection()

TYPO3\CMS\Redirects\Repository\Demand::getOrderDirection ( )

◆ getOrderField()

TYPO3\CMS\Redirects\Repository\Demand::getOrderField ( )

◆ getPage()

TYPO3\CMS\Redirects\Repository\Demand::getPage ( )

The current Page of the paginated redirects

Definition at line 286 of file Demand.php.

References TYPO3\CMS\Redirects\Repository\Demand\$page.

Referenced by TYPO3\CMS\Redirects\Controller\ManagementController\preparePagination().

◆ getParameters()

◆ getProtected()

◆ getReverseOrderDirection()

TYPO3\CMS\Redirects\Repository\Demand::getReverseOrderDirection ( )

◆ getSecondaryOrderField()

TYPO3\CMS\Redirects\Repository\Demand::getSecondaryOrderField ( )

◆ getSourceHosts()

◆ getSourcePath()

◆ getStatusCodes()

◆ getTarget()

◆ hasConstraints()

◆ hasCreationType()

◆ hasIntegrityStatus()

◆ hasMaxHits()

◆ hasOlderThan()

TYPO3\CMS\Redirects\Repository\Demand::hasOlderThan ( )

◆ hasProtected()

◆ hasSecondaryOrdering()

TYPO3\CMS\Redirects\Repository\Demand::hasSecondaryOrdering ( )

◆ hasSourceHosts()

◆ hasSourcePath()

◆ hasStatusCodes()

◆ hasTarget()

Member Data Documentation

◆ $creationType

int TYPO3\CMS\Redirects\Repository\Demand::$creationType = -1
protected

◆ $integrityStatus

◆ $limit

int TYPO3\CMS\Redirects\Repository\Demand::$limit = 50
protected

◆ $maxHits

int TYPO3\CMS\Redirects\Repository\Demand::$maxHits
private

◆ $olderThan

DateTimeInterface TYPO3\CMS\Redirects\Repository\Demand::$olderThan
private

◆ $orderDirection

string TYPO3\CMS\Redirects\Repository\Demand::$orderDirection
protected

◆ $orderField

string TYPO3\CMS\Redirects\Repository\Demand::$orderField
protected

◆ $page

int TYPO3\CMS\Redirects\Repository\Demand::$page
protected

◆ $protected

int TYPO3\CMS\Redirects\Repository\Demand::$protected = -1
protected

◆ $secondaryOrderField

string TYPO3\CMS\Redirects\Repository\Demand::$secondaryOrderField
protected

◆ $sourceHosts

array TYPO3\CMS\Redirects\Repository\Demand::$sourceHosts
protected

◆ $sourcePath

string TYPO3\CMS\Redirects\Repository\Demand::$sourcePath
protected

◆ $statusCodes

array TYPO3\CMS\Redirects\Repository\Demand::$statusCodes = []
protected

◆ $target

string TYPO3\CMS\Redirects\Repository\Demand::$target
protected

◆ DEFAULT_ORDER_FIELD

const TYPO3\CMS\Redirects\Repository\Demand::DEFAULT_ORDER_FIELD = 'source_host'
protected

◆ DEFAULT_SECONDARY_ORDER_FIELD

const TYPO3\CMS\Redirects\Repository\Demand::DEFAULT_SECONDARY_ORDER_FIELD = 'source_host'
protected

Definition at line 33 of file Demand.php.

Referenced by TYPO3\CMS\Redirects\Repository\Demand\__construct().

◆ ORDER_ASCENDING

◆ ORDER_DESCENDING

const TYPO3\CMS\Redirects\Repository\Demand::ORDER_DESCENDING = 'desc'
protected

◆ ORDER_FIELDS

const TYPO3\CMS\Redirects\Repository\Demand::ORDER_FIELDS = ['source_host', 'source_path', 'lasthiton', 'hitcount', 'protected']
protected

Definition at line 34 of file Demand.php.