‪TYPO3CMS  9.5
ContentCreationPagePositionMap.php
Go to the documentation of this file.
1 <?php
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 
19 
26 {
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