TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Service\EnvironmentService Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Service\EnvironmentService:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 isEnvironmentInFrontendMode ()
 
 isEnvironmentInBackendMode ()
 
 isEnvironmentInCliMode ()
 
 getServerRequestMethod ()
 

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 environment params

Definition at line 19 of file EnvironmentService.php.

Member Function Documentation

◆ getServerRequestMethod()

TYPO3\CMS\Extbase\Service\EnvironmentService::getServerRequestMethod ( )
Returns
string

Definition at line 51 of file EnvironmentService.php.

◆ isEnvironmentInBackendMode()

TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInBackendMode ( )

Detects if TYPO3_MODE is defined and its value is "BE"

Returns
boolean

Definition at line 35 of file EnvironmentService.php.

References TYPO3_MODE.

Referenced by TYPO3\CMS\Extbase\Service\EnvironmentService\isEnvironmentInCliMode().

◆ isEnvironmentInCliMode()

TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInCliMode ( )

Detects if we are running a script from the command line.

Returns
boolean

Definition at line 44 of file EnvironmentService.php.

References TYPO3\CMS\Extbase\Service\EnvironmentService\isEnvironmentInBackendMode().

◆ isEnvironmentInFrontendMode()

TYPO3\CMS\Extbase\Service\EnvironmentService::isEnvironmentInFrontendMode ( )

Detects if TYPO3_MODE is defined and its value is "FE"

Returns
boolean

Definition at line 26 of file EnvironmentService.php.

References TYPO3_MODE.