TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
PageTree.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Rtehtmlarea
;
3
26
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
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
}
TYPO3\CMS\Backend\Utility\IconUtility\skinImg
static skinImg($backPath, $src, $wHattribs='', $outputMode=0)
Definition:
IconUtility.php:300
TYPO3\CMS\Rtehtmlarea\PageTree
Definition:
PageTree.php:33
GeneralUtility
localPageTree
Definition:
class.browse_links.php:7
localPageTree\ext_isLinkable
ext_isLinkable($doktype, $uid)
Definition:
class.browse_links.php:96
TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue
static quoteJSvalue($value)
Definition:
GeneralUtility.php:5339
TYPO3\CMS\Backend\Tree\View\AbstractTreeView\$tree
$tree
Definition:
AbstractTreeView.php:278
TYPO3\CMS\Rtehtmlarea
Definition:
BrowseLinks.php:2
TYPO3\CMS\Rtehtmlarea\PageTree\printTree
printTree($treeArr='')
Definition:
PageTree.php:42
localPageTree\wrapTitle
wrapTitle($title, $v, $ext_pArrPages='')
Definition:
class.browse_links.php:37
TYPO3\CMS\Backend\Tree\View\AbstractTreeView\getThisScript
getThisScript()
Definition:
AbstractTreeView.php:317
TYPO3\CMS\Backend\Tree\View\BrowseTreeView\getTitleStr
getTitleStr($row, $titleLen=30)
Definition:
BrowseTreeView.php:103
$GLOBALS
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
Definition:
ext_localconf.php:5
typo3
sysext
rtehtmlarea
Classes
PageTree.php
Generated on Wed Aug 7 2019 09:52:30 for TYPO3 CMS by
1.8.13