TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Install\Service\ContextService Class Reference

Public Member Functions

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

Private Attributes

 $backendContext = FALSE
 

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! Service for determining the current context (as a backend module or in standalone mode)

Definition at line 19 of file ContextService.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor, prepare the context information

Definition at line 29 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
boolean

Definition at line 59 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
boolean

Definition at line 41 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
boolean

Definition at line 50 of file ContextService.php.

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

Member Data Documentation

◆ $backendContext

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