TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Service\ContextService Class Reference

Public Member Functions

 __construct ()
 
 isBackendContext ()
 
 isStandaloneContext ()
 
 getContextString ()
 

Private Attributes

 $backendContext = false
 

Detailed Description

Service for determining the current context (as a backend module or in standalone mode)

Definition at line 20 of file ContextService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\Service\ContextService::__construct ( )

Constructor, prepare the context information

Definition at line 30 of file ContextService.php.

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

Member Function Documentation

◆ getContextString()

TYPO3\CMS\Install\Service\ContextService::getContextString ( )

Is the install tool running as a standalone application?

Returns
bool

Definition at line 63 of file ContextService.php.

References TYPO3\CMS\Install\Service\ContextService\isBackendContext().

◆ isBackendContext()

TYPO3\CMS\Install\Service\ContextService::isBackendContext ( )

Is the install tool running in the backend?

Returns
bool

Definition at line 43 of file ContextService.php.

References TYPO3\CMS\Install\Service\ContextService\$backendContext.

Referenced by TYPO3\CMS\Install\Service\ContextService\getContextString().

◆ isStandaloneContext()

TYPO3\CMS\Install\Service\ContextService::isStandaloneContext ( )

Is the install tool running as a standalone application?

Returns
bool

Definition at line 53 of file ContextService.php.

References TYPO3\CMS\Install\Service\ContextService\$backendContext.

Member Data Documentation

◆ $backendContext

TYPO3\CMS\Install\Service\ContextService::$backendContext = false
private