TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
EnvironmentService.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extbase\Service
;
3
19
class
EnvironmentService
implements
\TYPO3\CMS\Core\SingletonInterface
{
20
26
public
function
isEnvironmentInFrontendMode
() {
27
return
(defined(
'TYPO3_MODE'
) &&
TYPO3_MODE
===
'FE'
) ?: FALSE;
28
}
29
35
public
function
isEnvironmentInBackendMode
() {
36
return
(defined(
'TYPO3_MODE'
) &&
TYPO3_MODE
===
'BE'
) ?: FALSE;
37
}
38
44
public
function
isEnvironmentInCliMode
() {
45
return
$this->
isEnvironmentInBackendMode
() && defined(
'TYPO3_cliMode'
) && TYPO3_cliMode === TRUE;
46
}
47
51
public
function
getServerRequestMethod
() {
52
return
isset($_SERVER[
'REQUEST_METHOD'
]) && is_string($_SERVER[
'REQUEST_METHOD'
]) ? $_SERVER[
'REQUEST_METHOD'
] :
'GET'
;
53
}
54
}
TYPO3\CMS\Extbase\Service\EnvironmentService\isEnvironmentInFrontendMode
isEnvironmentInFrontendMode()
Definition:
EnvironmentService.php:26
TYPO3\CMS\Extbase\Service
Definition:
CacheService.php:2
TYPO3\CMS\Extbase\Service\EnvironmentService\isEnvironmentInCliMode
isEnvironmentInCliMode()
Definition:
EnvironmentService.php:44
TYPO3\CMS\Extbase\Service\EnvironmentService
Definition:
EnvironmentService.php:19
TYPO3_MODE
const TYPO3_MODE
Definition:
init.php:40
TYPO3\CMS\Extbase\Service\EnvironmentService\getServerRequestMethod
getServerRequestMethod()
Definition:
EnvironmentService.php:51
TYPO3\CMS\Extbase\Service\EnvironmentService\isEnvironmentInBackendMode
isEnvironmentInBackendMode()
Definition:
EnvironmentService.php:35
TYPO3\CMS\Core\SingletonInterface
Definition:
SingletonInterface.php:22
typo3
sysext
extbase
Classes
Service
EnvironmentService.php
Generated on Wed Aug 7 2019 09:52:25 for TYPO3 CMS by
1.8.13