TYPO3CMS
9.5
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
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
ContentCreationPagePositionMap.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Backend\Tree\View
;
3
4
/*
5
* This file is part of the TYPO3 CMS project.
6
*
7
* It is free software; you can redistribute it and/or modify it under
8
* the terms of the GNU General Public License, either version 2
9
* of the License, or any later version.
10
*
11
* For the full copyright and license information, please read the
12
* LICENSE.txt file that was distributed with this source code.
13
*
14
* The TYPO3 project - inspiring people to share!
15
*/
16
17
use
TYPO3\CMS\Backend\Routing\UriBuilder
;
18
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
19
25
class
ContentCreationPagePositionMap
extends
PagePositionMap
26
{
30
public
$dontPrintPageInsertIcons
= 1;
31
39
public
function
wrapRecordTitle
($str, $row)
40
{
41
return
$str;
42
}
43
54
public
function
onClickInsertRecord
($row, $vv,
$moveUid
, $pid, $sys_lang = 0)
55
{
56
$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
57
$location = (string)$uriBuilder->buildUriFromRoute(
'record_edit'
, [
58
'edit[tt_content]['
. (is_array($row) ? -$row[
'uid'
] : $pid) .
']'
=>
'new'
,
59
'defVals[tt_content][colPos]'
=> $vv,
60
'defVals[tt_content][sys_language_uid]'
=> $sys_lang,
61
'returnUrl'
=> GeneralUtility::_GP(
'returnUrl'
)
62
]);
63
return
$this->clientContext .
'.location.href='
. GeneralUtility::quoteJSvalue($location) .
'+document.editForm.defValues.value; return false;'
;
64
}
65
}
TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap
Definition:
ContentCreationPagePositionMap.php:26
TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap\wrapRecordTitle
string wrapRecordTitle($str, $row)
Definition:
ContentCreationPagePositionMap.php:38
TYPO3\CMS\Backend\Routing\UriBuilder
Definition:
UriBuilder.php:35
TYPO3\CMS\Backend\Tree\View\PagePositionMap
Definition:
PagePositionMap.php:37
TYPO3\CMS\Backend\Tree\View
Definition:
AbstractTreeView.php:2
TYPO3\CMS\Backend\Tree\View\PagePositionMap\$moveUid
string $moveUid
Definition:
PagePositionMap.php:81
TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap\$dontPrintPageInsertIcons
bool $dontPrintPageInsertIcons
Definition:
ContentCreationPagePositionMap.php:29
TYPO3\CMS\Core\Utility\GeneralUtility
Definition:
GeneralUtility.php:45
TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap\onClickInsertRecord
string onClickInsertRecord($row, $vv, $moveUid, $pid, $sys_lang=0)
Definition:
ContentCreationPagePositionMap.php:53
doxygen
typo3
sysext
backend
Classes
Tree
View
ContentCreationPagePositionMap.php
Generated on Tue Oct 5 2021 01:56:56 for TYPO3CMS by
1.8.18