‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Routing\RouteSorter Class Reference

Public Member Functions

 withRoutes (array $routes)
 
 withOriginalParameters (array $originalParameters)
 
 sortRoutesForGeneration ()
 

Protected Member Functions

 compareForGeneration (Route $self, Route $other)
 
 compareDefaultRoutes (Route $self, Route $other, int $action=self::LATER)
 
 compareStaticRoutes (Route $self, Route $other, int $action=self::LATER)
 
 compareAllVariablesPresence (Route $self, Route $other, int $action=self::EARLIER)
 
 compareMandatoryVariablesPresence (Route $self, Route $other, int $action=self::EARLIER)
 
 compareMissingDefaultsAmount (Route $self, Route $other, int $action=self::LATER)
 
 compareDefaultsAmount (Route $self, Route $other, int $action=self::LATER)
 

Protected Attributes

const EARLIER = -1
 
const LATER = 1
 
Route[] $routes = array( )
 
array< string, $originalParameters=array();public Route[] function getRoutes():array { return $this-> routes
 

Detailed Description

Pre-processing of given routes based on their actual disposal concerning given parameters.

as this is tightly coupled to Symfony's Routing and we try to encapsulate this, please note that this might change

Definition at line 24 of file RouteSorter.php.

Member Function Documentation

◆ compareAllVariablesPresence()

TYPO3\CMS\Core\Routing\RouteSorter::compareAllVariablesPresence ( Route  $self,
Route  $other,
int  $action = self::EARLIER 
)
protected

◆ compareDefaultRoutes()

TYPO3\CMS\Core\Routing\RouteSorter::compareDefaultRoutes ( Route  $self,
Route  $other,
int  $action = self::LATER 
)
protected

◆ compareDefaultsAmount()

TYPO3\CMS\Core\Routing\RouteSorter::compareDefaultsAmount ( Route  $self,
Route  $other,
int  $action = self::LATER 
)
protected

◆ compareForGeneration()

◆ compareMandatoryVariablesPresence()

TYPO3\CMS\Core\Routing\RouteSorter::compareMandatoryVariablesPresence ( Route  $self,
Route  $other,
int  $action = self::EARLIER 
)
protected

◆ compareMissingDefaultsAmount()

TYPO3\CMS\Core\Routing\RouteSorter::compareMissingDefaultsAmount ( Route  $self,
Route  $other,
int  $action = self::LATER 
)
protected

◆ compareStaticRoutes()

TYPO3\CMS\Core\Routing\RouteSorter::compareStaticRoutes ( Route  $self,
Route  $other,
int  $action = self::LATER 
)
protected

◆ sortRoutesForGeneration()

TYPO3\CMS\Core\Routing\RouteSorter::sortRoutesForGeneration ( )

Definition at line 59 of file RouteSorter.php.

References TYPO3\CMS\Core\Routing\RouteSorter\routes.

◆ withOriginalParameters()

TYPO3\CMS\Core\Routing\RouteSorter::withOriginalParameters ( array  $originalParameters)

Definition at line 52 of file RouteSorter.php.

◆ withRoutes()

TYPO3\CMS\Core\Routing\RouteSorter::withRoutes ( array  $routes)

Definition at line 45 of file RouteSorter.php.

References TYPO3\CMS\Core\Routing\RouteSorter\$routes.

Member Data Documentation

◆ $routes

Route [] TYPO3\CMS\Core\Routing\RouteSorter::$routes = array( )
protected

Definition at line 31 of file RouteSorter.php.

Referenced by TYPO3\CMS\Core\Routing\RouteSorter\withRoutes().

◆ EARLIER

const TYPO3\CMS\Core\Routing\RouteSorter::EARLIER = -1
protected

Definition at line 26 of file RouteSorter.php.

◆ LATER

const TYPO3\CMS\Core\Routing\RouteSorter::LATER = 1
protected

Definition at line 27 of file RouteSorter.php.

◆ routes

array<string, $originalParameters = array( ); public Route[] function getRoutes(): array { return $this-> TYPO3\CMS\Core\Routing\RouteSorter::routes
protected

string>

Definition at line 42 of file RouteSorter.php.

Referenced by TYPO3\CMS\Core\Routing\RouteSorter\sortRoutesForGeneration().