TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
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 ( )

Constructor, prepare the context information

Definition at line 30 of file ContextService.php.

References GeneralUtility\_GP().

Member Function Documentation

getContextString ( )

Is the install tool running as a standalone application?

Returns
bool

Definition at line 63 of file ContextService.php.

References ContextService\isBackendContext().

isBackendContext ( )

Is the install tool running in the backend?

Returns
bool

Definition at line 43 of file ContextService.php.

References ContextService\$backendContext.

Referenced by ContextService\getContextString().

isStandaloneContext ( )

Is the install tool running as a standalone application?

Returns
bool

Definition at line 53 of file ContextService.php.

References ContextService\$backendContext.

Member Data Documentation

$backendContext = false
private