‪TYPO3CMS  9.5
TYPO3\CMS\Frontend\Middleware\PageResolver Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\PageResolver:

Public Member Functions

 __construct (TypoScriptFrontendController $controller=null)
 
ResponseInterface process (ServerRequestInterface $request, RequestHandlerInterface $handler)
 

Protected Member Functions

 checkAlternativeIdMethods (TypoScriptFrontendController $tsfe)
 
array null resolvePageId (string $pageId)
 
 setBackendUserAspect (Context $context, BackendUserAuthentication $user=null)
 

Protected Attributes

TypoScriptFrontendController $controller
 

Detailed Description

Process the ID, type and other parameters. After this point we have an array, TSFE->page, which is the page-record of the current page, $TSFE->id.

Now, if there is a backend user logged in and he has NO access to this page, then re-evaluate the id shown!

Definition at line 49 of file PageResolver.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Middleware\PageResolver::__construct ( TypoScriptFrontendController  $controller = null)

Member Function Documentation

◆ checkAlternativeIdMethods()

TYPO3\CMS\Frontend\Middleware\PageResolver::checkAlternativeIdMethods ( TypoScriptFrontendController  $tsfe)
protected

Provides ways to bypass the '?id=[xxx]&type=[xx]' format, using either PATH_INFO or Server Rewrites

Two options: 1) Use PATH_INFO (also Apache) to extract id and type from that var. Does not require any special modules compiled with apache. (less typical) 2) Using hook which enables features like those provided from "realurl" extension (AKA "Speaking URLs")

Parameters
TypoScriptFrontendController$tsfe

Definition at line 182 of file PageResolver.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Frontend\Middleware\PageResolver\process().

◆ process()

◆ resolvePageId()

array null TYPO3\CMS\Frontend\Middleware\PageResolver::resolvePageId ( string  $pageId)
protected
Parameters
string$pageId
Returns
‪array|null

Definition at line 195 of file PageResolver.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

Referenced by TYPO3\CMS\Frontend\Middleware\PageResolver\process().

◆ setBackendUserAspect()

TYPO3\CMS\Frontend\Middleware\PageResolver::setBackendUserAspect ( Context  $context,
BackendUserAuthentication  $user = null 
)
protected

Register the backend user as aspect

Parameters
Context$context
BackendUserAuthentication$user

Definition at line 236 of file PageResolver.php.

References TYPO3\CMS\Core\Context\Context\setAspect().

Referenced by TYPO3\CMS\Frontend\Middleware\PageResolver\process().

Member Data Documentation

◆ $controller

TypoScriptFrontendController TYPO3\CMS\Frontend\Middleware\PageResolver::$controller
protected