TYPO3 CMS  TYPO3_6-2
move_el.php
Go to the documentation of this file.
1 <?php
21 require __DIR__ . '/init.php';
22 
29 
30 }
31 
38 
42  public $l_insertNewPageHere = 'movePageToHere';
43 
49  protected $pageTreeClassName = 'moveElementLocalPageTree';
50 
59  public function onClickEvent($pid, $newPagePID) {
60  return 'window.location.href=\'tce_db.php?cmd[pages][' . $GLOBALS['SOBE']->moveUid . '][' . $this->moveOrCopy . ']=' . $pid . '&redirect=' . rawurlencode($this->R_URI) . '&prErr=1&uPT=1&vC=' . $GLOBALS['BE_USER']->veriCode() . \TYPO3\CMS\Backend\Utility\BackendUtility::getUrlToken('tceAction') . '\';return false;';
61  }
62 
71  public function linkPageTitle($str, $rec) {
72  $url = \TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('uid' => (int)$rec['uid'], 'moveUid' => $GLOBALS['SOBE']->moveUid));
73  return '<a href="' . htmlspecialchars($url) . '">' . $str . '</a>';
74  }
75 
85  public function boldTitle($t_code, $dat, $id) {
86  return parent::boldTitle($t_code, $dat, $GLOBALS['SOBE']->moveUid);
87  }
88 
89 }
90 
96 class ext_posMap_tt_content extends \TYPO3\CMS\Backend\Tree\View\PagePositionMap {
97 
101  public $dontPrintPageInsertIcons = 1;
102 
108  protected $pageTreeClassName = 'moveElementLocalPageTree';
109 
118  public function linkPageTitle($str, $rec) {
119  $url = \TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('uid' => (int)$rec['uid'], 'moveUid' => $GLOBALS['SOBE']->moveUid));
120  return '<a href="' . htmlspecialchars($url) . '">' . $str . '</a>';
121  }
122 
131  public function wrapRecordTitle($str, $row) {
132  if ($GLOBALS['SOBE']->moveUid == $row['uid']) {
133  $str = '<strong>' . $str . '</strong>';
134  }
135  return parent::wrapRecordTitle($str, $row);
136  }
137 }
138 
139 $moveElementController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ContentElement\\MoveElementController');
140 $moveElementController->main();
141 $moveElementController->printContent();
onClickEvent($pid, $newPagePID)
Definition: move_el.php:59
static getUrlToken($formName='securityToken', $tokenName='formToken')
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]