TYPO3 CMS  TYPO3_6-2
PageTree.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Rtehtmlarea;
3 
27 
33 class PageTree extends \localPageTree {
34 
42  public function printTree($treeArr = '') {
43  $titleLen = (int)$GLOBALS['BE_USER']->uc['titleLen'];
44  if (!is_array($treeArr)) {
45  $treeArr = $this->tree;
46  }
47  $out = '';
48  $c = 0;
49  foreach ($treeArr as $k => $v) {
50  $c++;
51  $bgColorClass = ($c + 1) % 2 ? 'bgColor' : 'bgColor-10';
52  if ($GLOBALS['SOBE']->browser->curUrlInfo['act'] == 'page' && $GLOBALS['SOBE']->browser->curUrlInfo['pageid'] == $v['row']['uid'] && $GLOBALS['SOBE']->browser->curUrlInfo['pageid']) {
53  $arrCol = '<td><img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/blinkarrow_right.gif', 'width="5" height="9"') . ' class="c-blinkArrowR" alt="" /></td>';
54  $bgColorClass = 'bgColor4';
55  } else {
56  $arrCol = '<td></td>';
57  }
58  $aOnClick = 'return jumpToUrl(' . GeneralUtility::quoteJSvalue($this->getThisScript() . 'act=' . $GLOBALS['SOBE']->browser->act . '&editorNo=' . $GLOBALS['SOBE']->browser->editorNo . '&contentTypo3Language=' . $GLOBALS['SOBE']->browser->contentTypo3Language . '&mode=' . $GLOBALS['SOBE']->browser->mode . '&expandPage=' . $v['row']['uid']) . ');';
59  $cEbullet = $this->ext_isLinkable($v['row']['doktype'], $v['row']['uid']) ? '<a href="#" onclick="' . htmlspecialchars($aOnClick) . '"><img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/ol/arrowbullet.gif', 'width="18" height="16"') . ' alt="" /></a>' : '';
60  $out .= '
61  <tr class="' . $bgColorClass . '">
62  <td nowrap="nowrap"' . ($v['row']['_CSSCLASS'] ? ' class="' . $v['row']['_CSSCLASS'] . '"' : '') . '>' . $v['HTML'] . $this->wrapTitle($this->getTitleStr($v['row'], $titleLen), $v['row'], $this->ext_pArrPages) . '</td>' . $arrCol . '<td>' . $cEbullet . '</td>
63  </tr>';
64  }
65  $out = '
66 
67 
68  <!--
69  Navigation Page Tree:
70  -->
71  <table border="0" cellpadding="0" cellspacing="0" id="typo3-tree">
72  ' . $out . '
73  </table>';
74  return $out;
75  }
76 
77 }
static skinImg($backPath, $src, $wHattribs='', $outputMode=0)
ext_isLinkable($doktype, $uid)
wrapTitle($title, $v, $ext_pArrPages='')
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]