ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace 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
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
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
y
z
Ö
+
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
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilObjWikiSubItemListGUI.php
Go to the documentation of this file.
1
<?php
2
24
class
ilObjWikiSubItemListGUI
extends
ilSubItemListGUI
25
{
26
protected
ilObjUser
$user
;
27
28
public
function
__construct
(
29
string
$a_cmd_class
30
) {
31
global
$DIC
;
32
33
parent::__construct
($a_cmd_class);
34
$this->
lng
= $DIC->language();
35
$this->
user
= $DIC->user();
36
}
37
38
public
function
getHTML
(): string
39
{
40
$lng
=
$this->lng
;
41
42
$lng
->
loadLanguageModule
(
'content'
);
43
foreach
($this->
getSubItemIds
(
true
) as $sub_item) {
44
if
(is_object($this->
getHighlighter
()) &&
45
$this->
getHighlighter
()->
getContent
($this->
getObjId
(), $sub_item) !==
''
) {
46
$this->tpl->setCurrentBlock(
'sea_fragment'
);
47
$this->tpl->setVariable(
'TXT_FRAGMENT'
, $this->
getHighlighter
()->
getContent
($this->
getObjId
(), $sub_item));
48
$this->tpl->parseCurrentBlock();
49
}
50
51
$this->tpl->setCurrentBlock(
'subitem'
);
52
53
// TODO: subitem type must returned from lucene
54
$title = (string)
ilWikiPage::lookupTitle
($sub_item);
55
if
($title !==
''
) {
56
// Page
57
$this->tpl->setVariable(
'SUBITEM_TYPE'
,
$lng
->
txt
(
'obj_pg'
));
58
$this->tpl->setVariable(
'SEPERATOR'
,
':'
);
59
60
$link =
'&srcstring=1'
;
61
$link =
ilObjWikiGUI::getGotoLink
($this->
getRefId
(), $title) . $link;
62
63
$this->tpl->setVariable(
'LINK'
, $link);
64
$this->tpl->setVariable(
'TARGET'
, $this->
getItemListGUI
()->getCommandFrame(
''
));
65
$this->tpl->setVariable(
'TITLE'
, $title);
66
}
else
{
67
$this->tpl->setVariable(
'SUBITEM_TYPE'
,
$lng
->
txt
(
'obj_file'
));
68
$this->tpl->setVariable(
'SEPERATOR'
,
':'
);
69
70
// File
71
$this->
getItemListGUI
()->setChildId(
'il__file_'
. $sub_item);
72
$link = $this->
getItemListGUI
()->getCommandLink(
'downloadFile'
);
73
$this->tpl->setVariable(
'LINK'
, $link);
74
$this->tpl->setVariable(
'TITLE'
,
ilObject::_lookupTitle
($sub_item));
75
}
76
$this->tpl->parseCurrentBlock();
77
$this->tpl->parseCurrentBlock();
78
}
79
80
$this->
showDetailsLink
();
81
82
return
$this->tpl->get();
83
}
84
}
ilSubItemListGUI\getObjId
getObjId()
Definition:
class.ilSubItemListGUI.php:101
ilSubItemListGUI\getSubItemIds
getSubItemIds(bool $limited=false)
Definition:
class.ilSubItemListGUI.php:111
ilLanguage\txt
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Definition:
class.ilLanguage.php:170
ilSubItemListGUI\getHighlighter
getHighlighter()
Definition:
class.ilSubItemListGUI.php:91
ilWikiPage\lookupTitle
static lookupTitle(int $a_page_id, string $lang="-")
Definition:
class.ilWikiPage.php:422
ilObjWikiSubItemListGUI\__construct
__construct(string $a_cmd_class)
Definition:
class.ilObjWikiSubItemListGUI.php:28
ilSubItemListGUI
Base class for all sub item list gui's.
Definition:
class.ilSubItemListGUI.php:26
ilLanguage\loadLanguageModule
loadLanguageModule(string $a_module)
Load language module.
Definition:
class.ilLanguage.php:226
ilSubItemListGUI\$lng
ilLanguage $lng
Definition:
class.ilSubItemListGUI.php:32
ILIAS\Repository\user
user()
Definition:
trait.GlobalDICDomainServices.php:66
ilSubItemListGUI\showDetailsLink
showDetailsLink()
Definition:
class.ilSubItemListGUI.php:135
ilObjWikiSubItemListGUI\getHTML
getHTML()
Definition:
class.ilObjWikiSubItemListGUI.php:38
ilObjUser
ilObjWikiSubItemListGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilObjWikiSubItemListGUI.php:24
ilObject\_lookupTitle
static _lookupTitle(int $obj_id)
Definition:
class.ilObject.php:830
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
$DIC
global $DIC
Definition:
shib_login.php:22
ilObjWikiGUI\getGotoLink
static getGotoLink(int $a_ref_id, string $a_page="", string $lang="-")
Definition:
class.ilObjWikiGUI.php:913
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ilSubItemListGUI\getRefId
getRefId()
Definition:
class.ilSubItemListGUI.php:96
ilSubItemListGUI\getItemListGUI
getItemListGUI()
Definition:
class.ilSubItemListGUI.php:120
ILIAS\UI\Implementation\Component\Input\ViewControl\getContent
getContent()
Definition:
GroupDecorator.php:87
ilObjWikiSubItemListGUI\$user
ilObjUser $user
Definition:
class.ilObjWikiSubItemListGUI.php:26
components
ILIAS
Wiki
classes
class.ilObjWikiSubItemListGUI.php
Generated on Sun Apr 6 2025 23:04:44 for ILIAS by
1.8.13 (using
Doxyfile
)