TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\Utility\EidUtility Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Utility\EidUtility:
tslib_eidtools

Static Public Member Functions

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

Static Private Member Functions

static getTSFE ()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Tools for scripts using the eID feature of index.php Included from index_ts.php 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.

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om
Dmitry Dulepov dmitr.nosp@m.y@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 29 of file EidUtility.php.

Member Function Documentation

◆ connectDB()

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

Connecting to database. If the function fails, last error message can be retrieved using $GLOBALS['TYPO3_DB']->sql_error().

Returns
boolean TRUE if connection was successful
Deprecated:
since 6.1, database will connect itself if needed. Will be removed two versions later

Definition at line 55 of file EidUtility.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ getTSFE()

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

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

Returns
New instance of

Definition at line 112 of file EidUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ 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$extensionKeyExtension key
Returns
void

Definition at line 95 of file EidUtility.php.

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

◆ initLanguage()

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

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

Parameters
string$languageTYPO3 language code
Returns
void

Definition at line 66 of file EidUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Frontend\Controller\ExtDirectEidController\routeAction().

◆ initTCA()

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

Makes TCA available inside eID

Returns
void

Definition at line 78 of file EidUtility.php.

References $GLOBALS, and TYPO3\CMS\Core\Core\Bootstrap\getInstance().