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
ext_localconf.php
Go to the documentation of this file.
1
<?php
2
if
(!defined(
'TYPO3_MODE'
)) {
3
die
(
'Access denied.'
);
4
}
5
6
// register the hook to actually do the work within TCEmain
7
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
't3lib/class.t3lib_tcemain.php'
][
'processCmdmapClass'
][
'version'
] =
'&TYPO3\\CMS\\Version\\Hook\\DataHandlerHook'
;
8
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
't3lib/class.t3lib_tcemain.php'
][
'moveRecordClass'
][
'version'
] =
'&TYPO3\\CMS\\Version\\Hook\\DataHandlerHook'
;
9
10
// Register hook for overriding the icon status overlay
11
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
't3lib/class.t3lib_iconworks.php'
][
'overrideIconOverlay'
][
'version'
] =
'&TYPO3\\CMS\\Version\\Hook\\IconUtilityHook'
;
12
13
// Register hook to check for the preview mode in the FE
14
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'tslib/class.tslib_fe.php'
][
'connectToDB'
][
'version_preview'
] =
'TYPO3\\CMS\\Version\\Hook\\PreviewHook->checkForPreview'
;
15
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
'tslib/index_ts.php'
][
'postBeUser'
][
'version_preview'
] =
'TYPO3\\CMS\\Version\\Hook\\PreviewHook->initializePreviewUser'
;
16
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
't3lib/class.t3lib_userauthgroup.php'
][
'getPagePermsClause'
][
'version_preview'
] =
'TYPO3\\CMS\\Version\\Hook\\PreviewHook->overridePagePermissionClause'
;
17
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'SC_OPTIONS'
][
't3lib/class.t3lib_userauthgroup.php'
][
'calcPerms'
][
'version_preview'
] =
'TYPO3\\CMS\\Version\\Hook\\PreviewHook->overridePermissionCalculation'
;
18
19
if
(
TYPO3_MODE
===
'BE'
) {
20
// add default notification options to every page
21
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSconfig(
'
22
tx_version.workspaces.stageNotificationEmail.subject = LLL:EXT:version/Resources/Private/Language/locallang_emails.xlf:subject
23
tx_version.workspaces.stageNotificationEmail.message = LLL:EXT:version/Resources/Private/Language/locallang_emails.xlf:message
24
# tx_version.workspaces.stageNotificationEmail.additionalHeaders =
25
'
);
26
}
TYPO3_MODE
const TYPO3_MODE
Definition:
init.php:40
die
die
Definition:
index.php:6
$GLOBALS
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
Definition:
ext_localconf.php:5
typo3
sysext
version
ext_localconf.php
Generated on Wed Aug 7 2019 09:52:19 for TYPO3 CMS by
1.8.13