‪TYPO3CMS  10.4
PageMovingPagePositionMap.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 
26 {
30  public ‪$l_insertNewPageHere = 'movePageToHere';
31 
37  protected ‪$pageTreeClassName = PageTreeView::class;
38 
46  public function ‪getActionLink($pid, $newPagePID): string
47  {
48  $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
49  return (string)$uriBuilder->buildUriFromRoute('tce_db', [
50  'cmd[pages][' . $this->moveUid . '][' . $this->moveOrCopy . ']' => $pid,
51  'redirect' => $this->R_URI,
52  ]);
53  }
54 
62  public function ‪linkPageTitle($str, $rec)
63  {
64  $url = GeneralUtility::linkThisScript(['uid' => (int)$rec['uid'], 'moveUid' => $this->moveUid]);
65  return '<a href="' . htmlspecialchars($url) . '">' . $str . '</a>';
66  }
67 
76  public function ‪boldTitle($t_code, $dat, $id)
77  {
78  return parent::boldTitle($t_code, $dat, (int)$this->moveUid);
79  }
80 }
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\linkPageTitle
‪string linkPageTitle($str, $rec)
Definition: PageMovingPagePositionMap.php:60
‪TYPO3\CMS\Backend\Routing\UriBuilder
Definition: UriBuilder.php:38
‪TYPO3\CMS\Backend\Tree\View\PagePositionMap
Definition: PagePositionMap.php:39
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\$pageTreeClassName
‪string $pageTreeClassName
Definition: PageMovingPagePositionMap.php:35
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap
Definition: PageMovingPagePositionMap.php:26
‪TYPO3\CMS\Backend\Tree\View
Definition: AbstractTreeView.php:16
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\getActionLink
‪string getActionLink($pid, $newPagePID)
Definition: PageMovingPagePositionMap.php:44
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\$l_insertNewPageHere
‪string $l_insertNewPageHere
Definition: PageMovingPagePositionMap.php:29
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\boldTitle
‪string boldTitle($t_code, $dat, $id)
Definition: PageMovingPagePositionMap.php:74
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46