‪TYPO3CMS  10.4
ContentCreationPagePositionMap.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
27 {
32 
40  public function ‪wrapRecordTitle($str, $row)
41  {
42  return $str;
43  }
44 
55  public function ‪onClickInsertRecord($row, $vv, ‪$moveUid, $pid, $sys_lang = 0)
56  {
57  $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
58  $location = (string)$uriBuilder->buildUriFromRoute('record_edit', [
59  'edit[tt_content][' . (is_array($row) ? -$row['uid'] : $pid) . ']' => 'new',
60  'defVals[tt_content][colPos]' => $vv,
61  'defVals[tt_content][sys_language_uid]' => $sys_lang,
62  'returnUrl' => GeneralUtility::_GP('returnUrl')
63  ]);
64  return $this->clientContext . '.location.href=' . GeneralUtility::quoteJSvalue($location) . '+document.editForm.defValues.value; return false;';
65  }
66 }
‪TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap\$dontPrintPageInsertIcons
‪int $dontPrintPageInsertIcons
Definition: ContentCreationPagePositionMap.php:30
‪TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap
Definition: ContentCreationPagePositionMap.php:27
‪TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap\wrapRecordTitle
‪string wrapRecordTitle($str, $row)
Definition: ContentCreationPagePositionMap.php:39
‪TYPO3\CMS\Backend\Routing\UriBuilder
Definition: UriBuilder.php:38
‪TYPO3\CMS\Backend\Tree\View\PagePositionMap
Definition: PagePositionMap.php:39
‪TYPO3\CMS\Backend\Tree\View
Definition: AbstractTreeView.php:16
‪TYPO3\CMS\Backend\Tree\View\PagePositionMap\$moveUid
‪string $moveUid
Definition: PagePositionMap.php:73
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Backend\Tree\View\ContentCreationPagePositionMap\onClickInsertRecord
‪string onClickInsertRecord($row, $vv, $moveUid, $pid, $sys_lang=0)
Definition: ContentCreationPagePositionMap.php:54