‪TYPO3CMS  9.5
PageMovingPagePositionMap.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 
25 {
29  public ‪$l_insertNewPageHere = 'movePageToHere';
30 
36  protected ‪$pageTreeClassName = PageTreeView::class;
37 
45  public function ‪onClickEvent($pid, $newPagePID)
46  {
47  $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
48  return 'window.location.href=' . GeneralUtility::quoteJSvalue((string)$uriBuilder->buildUriFromRoute('tce_db', [
49  'cmd[pages][' . $this->moveUid . '][' . $this->moveOrCopy . ']' => $pid,
50  'redirect' => $this->R_URI,
51  ])) . ';return false;';
52  }
53 
61  public function ‪linkPageTitle($str, $rec)
62  {
63  $url = GeneralUtility::linkThisScript(['uid' => (int)$rec['uid'], 'moveUid' => $this->moveUid]);
64  return '<a href="' . htmlspecialchars($url) . '">' . $str . '</a>';
65  }
66 
75  public function ‪boldTitle($t_code, $dat, $id)
76  {
77  return parent::boldTitle($t_code, $dat, $this->moveUid);
78  }
79 }
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\linkPageTitle
‪string linkPageTitle($str, $rec)
Definition: PageMovingPagePositionMap.php:59
‪TYPO3\CMS\Backend\Routing\UriBuilder
Definition: UriBuilder.php:35
‪TYPO3\CMS\Backend\Tree\View\PagePositionMap
Definition: PagePositionMap.php:37
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\$pageTreeClassName
‪string $pageTreeClassName
Definition: PageMovingPagePositionMap.php:34
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap
Definition: PageMovingPagePositionMap.php:25
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\onClickEvent
‪string onClickEvent($pid, $newPagePID)
Definition: PageMovingPagePositionMap.php:43
‪TYPO3\CMS\Backend\Tree\View
Definition: AbstractTreeView.php:2
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\$l_insertNewPageHere
‪string $l_insertNewPageHere
Definition: PageMovingPagePositionMap.php:28
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\boldTitle
‪string boldTitle($t_code, $dat, $id)
Definition: PageMovingPagePositionMap.php:73
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:45