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
move_el.php
Go to the documentation of this file.
1
<?php
21
require __DIR__ .
'/init.php'
;
22
28
class
moveElementLocalPageTree
extends
\TYPO3\CMS\Backend\Tree\View\PageTreeView
{
29
30
}
31
37
class
ext_posMap_pages
extends
\TYPO3\CMS\Backend\Tree\View\PagePositionMap
{
38
42
public
$l_insertNewPageHere =
'movePageToHere'
;
43
49
protected
$pageTreeClassName =
'moveElementLocalPageTree'
;
50
59
public
function
onClickEvent
($pid, $newPagePID) {
60
return
'window.location.href=\'tce_db.php?cmd[pages]['
.
$GLOBALS
[
'SOBE'
]->moveUid .
']['
. $this->moveOrCopy .
']='
. $pid .
'&redirect='
. rawurlencode($this->R_URI) .
'&prErr=1&uPT=1&vC='
.
$GLOBALS
[
'BE_USER'
]->veriCode() .
\TYPO3\CMS\Backend\Utility\BackendUtility::getUrlToken
(
'tceAction'
) .
'\'
;
return
false
;
';
61
}
62
71
public function linkPageTitle($str, $rec) {
72
$url = \TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('
uid
' => (int)$rec['
uid
'], '
moveUid
' => $GLOBALS['
SOBE
']->moveUid));
73
return '
<a href=
"' . htmlspecialchars($url) . '"
>
' . $str . '
</a>
';
74
}
75
85
public function boldTitle($t_code, $dat, $id) {
86
return parent::boldTitle($t_code, $dat, $GLOBALS['
SOBE
']->moveUid);
87
}
88
89
}
90
96
class ext_posMap_tt_content extends \TYPO3\CMS\Backend\Tree\View\PagePositionMap {
97
101
public $dontPrintPageInsertIcons = 1;
102
108
protected $pageTreeClassName = '
moveElementLocalPageTree
';
109
118
public function linkPageTitle($str, $rec) {
119
$url = \TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('
uid
' => (int)$rec['
uid
'], '
moveUid
' => $GLOBALS['
SOBE
']->moveUid));
120
return '
<a href=
"' . htmlspecialchars($url) . '"
>
' . $str . '
</a>
';
121
}
122
131
public function wrapRecordTitle($str, $row) {
132
if ($GLOBALS['
SOBE
']->moveUid == $row['
uid
']) {
133
$str = '
<strong>
' . $str . '
</strong>
';
134
}
135
return parent::wrapRecordTitle($str, $row);
136
}
137
}
138
139
$moveElementController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('
TYPO3
\\CMS\\Backend\\Controller\\ContentElement\\MoveElementController
');
140
$moveElementController->main();
141
$moveElementController->printContent();
TYPO3
ext_posMap_pages\onClickEvent
onClickEvent($pid, $newPagePID)
Definition:
move_el.php:59
TYPO3\CMS\Backend\Utility\BackendUtility\getUrlToken
static getUrlToken($formName='securityToken', $tokenName='formToken')
Definition:
BackendUtility.php:3218
moveElementLocalPageTree
Definition:
move_el.php:28
ext_posMap_pages
Definition:
move_el.php:37
TYPO3\CMS\Backend\Tree\View\PagePositionMap
Definition:
PagePositionMap.php:28
TYPO3\CMS\Backend\Tree\View\PageTreeView
Definition:
PageTreeView.php:22
$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
move_el.php
Generated on Wed Aug 7 2019 09:52:17 for TYPO3 CMS by
1.8.13