TYPO3 CMS  TYPO3_6-2
FolderTree.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Rtehtmlarea;
4 
12 
21  public function wrapTitle($title, \TYPO3\CMS\Core\Resource\Folder $folderObject) {
22  if ($this->ext_isLinkable($folderObject)) {
23  $aOnClick = 'return jumpToUrl(\'' . $this->getThisScript() . 'act=' . $GLOBALS['SOBE']->browser->act . '&mode=' . $GLOBALS['SOBE']->browser->mode . '&editorNo=' . $GLOBALS['SOBE']->browser->editorNo . '&contentTypo3Language=' . $GLOBALS['SOBE']->browser->contentTypo3Language . '&contentTypo3Charset=' . $GLOBALS['SOBE']->browser->contentTypo3Charset . '&expandFolder=' . rawurlencode($folderObject->getCombinedIdentifier()) . '\');';
24  return '<a href="#" onclick="' . htmlspecialchars($aOnClick) . '">' . $title . '</a>';
25  } else {
26  return '<span class="typo3-dimmed">' . $title . '</span>';
27  }
28  }
29 
39  public function PMiconATagWrap($icon, $cmd, $isExpand = TRUE) {
40 
41  if (empty($this->scope)) {
42  $this->scope = array(
43  'class' => get_class($this),
44  'script' => $this->thisScript,
45  'ext_noTempRecyclerDirs' => $this->ext_noTempRecyclerDirs,
46  'browser' => array(
47  'mode' => $GLOBALS['SOBE']->browser->mode,
48  'act' => $GLOBALS['SOBE']->browser->act,
49  'editorNo' => $GLOBALS['SOBE']->browser->editorNo
50  ),
51  );
52  }
53 
54  if ($this->thisScript) {
55  // Activates dynamic AJAX based tree
56  $scopeData = serialize($this->scope);
57  $scopeHash = GeneralUtility::hmac($scopeData);
58  $js = htmlspecialchars('Tree.load(' . GeneralUtility::quoteJSvalue($cmd) . ', ' . (int)$isExpand . ', this, ' . GeneralUtility::quoteJSvalue($scopeData) . ', ' . GeneralUtility::quoteJSvalue($scopeHash) . ');');
59  return '<a class="pm" onclick="' . $js . '">' . $icon . '</a>';
60  } else {
61  return $icon;
62  }
63  }
64 
65 }
ext_isLinkable(\TYPO3\CMS\Core\Resource\Folder $folderObject)
wrapTitle($title, \TYPO3\CMS\Core\Resource\Folder $folderObject)
Definition: FolderTree.php:21
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]