‪TYPO3CMS  11.5
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 {
34  public function ‪getActionLink($pid, $newPagePID): string
35  {
36  $uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
37  return (string)$uriBuilder->buildUriFromRoute('tce_db', [
38  'cmd[pages][' . $this->moveUid . '][' . $this->moveOrCopy . ']' => $pid,
39  'redirect' => $this->R_URI,
40  ]);
41  }
42 
50  public function ‪linkPageTitle($str, $rec)
51  {
52  $url = GeneralUtility::linkThisScript(['uid' => (int)$rec['uid'], 'moveUid' => $this->moveUid]);
53  return '<a href="' . htmlspecialchars($url) . '">' . $str . '</a>';
54  }
55 
64  public function ‪boldTitle($t_code, $dat, $id)
65  {
66  return parent::boldTitle($t_code, $dat, (int)$this->moveUid);
67  }
68 
74  protected function ‪insertlabel()
75  {
76  return htmlspecialchars($this->‪getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:movePageToHere'));
77  }
78 }
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\linkPageTitle
‪string linkPageTitle($str, $rec)
Definition: PageMovingPagePositionMap.php:50
‪TYPO3\CMS\Backend\Tree\View\PagePositionMap\getLanguageService
‪LanguageService getLanguageService()
Definition: PagePositionMap.php:315
‪TYPO3\CMS\Backend\Routing\UriBuilder
Definition: UriBuilder.php:40
‪TYPO3\CMS\Backend\Tree\View\PagePositionMap
Definition: PagePositionMap.php:36
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap
Definition: PageMovingPagePositionMap.php:26
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\insertlabel
‪string insertlabel()
Definition: PageMovingPagePositionMap.php:74
‪TYPO3\CMS\Backend\Tree\View
Definition: AbstractContentPagePositionMap.php:18
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\getActionLink
‪string getActionLink($pid, $newPagePID)
Definition: PageMovingPagePositionMap.php:34
‪TYPO3\CMS\Backend\Tree\View\PageMovingPagePositionMap\boldTitle
‪string boldTitle($t_code, $dat, $id)
Definition: PageMovingPagePositionMap.php:64
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:50