‪TYPO3CMS  9.5
TYPO3\CMS\Frontend\Utility\EidUtility Class Reference

Static Public Member Functions

static FrontendUserAuthentication initFeUser ()
 
static initLanguage ($language='default')
 
static initTCA ()
 
static initExtensionTCA ($extensionKey)
 

Static Private Member Functions

static TypoScriptFrontendController getTSFE ()
 

Detailed Description

Tools for scripts using the eID feature of the TYPO3 Frontend. Included from \TYPO3\CMS\Frontend\Http\RequestHandler. Since scripts using the eID feature does not have a full FE environment initialized by default this class seeks to provide functions that can initialize parts of the FE environment as needed, eg. Frontend User session, Database connection etc.

Deprecated:
‪since TYPO3 v9.4, will be removed in TYPO3 v10.0. Ensure to migrate your eID script to a PSR-15 middleware at the right position, where the frontend is boot up at the level you need.

Definition at line 35 of file EidUtility.php.

Member Function Documentation

◆ getTSFE()

static TypoScriptFrontendController TYPO3\CMS\Frontend\Utility\EidUtility::getTSFE ( )
staticprivate

Creating a single static cached instance of TSFE to use with this class.

Returns
‪TypoScriptFrontendController

Definition at line 138 of file EidUtility.php.

Referenced by TYPO3\CMS\Frontend\Utility\EidUtility\initFeUser().

◆ initExtensionTCA()

static TYPO3\CMS\Frontend\Utility\EidUtility::initExtensionTCA (   $extensionKey)
static

Makes TCA for the extension available inside eID. Use this function if you need not to include the whole $GLOBALS['TCA'].

Parameters
string$extensionKey‪Extension key
Deprecated:
‪since TYPO3 v9.4, will be removed in TYPO3 v10.0.

Definition at line 119 of file EidUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\extPath().

◆ initFeUser()

static FrontendUserAuthentication TYPO3\CMS\Frontend\Utility\EidUtility::initFeUser ( )
static

Load and initialize Frontend User. Note, this process is slow because it creates a calls many objects. Call this method only if necessary!

Returns
‪FrontendUserAuthentication Frontend User object (usually known as TSFE->fe_user)
Deprecated:
‪since TYPO3 v9.4, will be removed in TYPO3 v10.0. Use the FrontendUserAuthenticator PSR-15 middleware to set up the Frontend User.

Definition at line 44 of file EidUtility.php.

References $GLOBALS, TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication\getCookieName(), and TYPO3\CMS\Frontend\Utility\EidUtility\getTSFE().

◆ initLanguage()

static TYPO3\CMS\Frontend\Utility\EidUtility::initLanguage (   $language = 'default')
static

Initializes $GLOBALS['LANG'] for use in eID scripts.

Parameters
string$languageTYPO3 language code
Deprecated:
‪since TYPO3 v9.4, will be removed in TYPO3 v10.0. Instantiate the LanguageService by yourself instead.

Definition at line 87 of file EidUtility.php.

References $GLOBALS.

◆ initTCA()

static TYPO3\CMS\Frontend\Utility\EidUtility::initTCA ( )
static

Makes TCA available inside eID

Deprecated:
‪since TYPO3 v9.4, will be removed in TYPO3 v10.0. Is not needed anymore within eID scripts as TCA is now available at any time

Definition at line 100 of file EidUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\loadBaseTca().