ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
+
Files
File List
+
Globals
+
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
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
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
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilObjWikiSearchResultTableGUI.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once
'./Services/Search/classes/class.ilRepositoryObjectSearchResultTableGUI.php'
;
5
15
class
ilObjWikiSearchResultTableGUI
extends
ilRepositoryObjectSearchResultTableGUI
16
{
20
public
function
parse
()
21
{
22
$ilCtrl
=
$this->ctrl
;
23
24
$rows
= array();
25
foreach
($this->
getResults
()->
getResults
() as $result_set) {
26
$row = array();
27
include_once
'./Modules/Wiki/classes/class.ilWikiPage.php'
;
28
$row[
'title'
] =
ilWikiPage::lookupTitle
($result_set[
'item_id'
]);
29
30
$ilCtrl
->setParameterByClass(
31
'ilwikipagegui'
,
32
'page'
,
33
ilWikiUtil::makeUrlTitle
($row[
'title'
])
34
);
35
$row[
'link'
] =
$ilCtrl
->getLinkTargetByClass(
'ilwikipagegui'
,
'preview'
);
36
37
$row[
'relevance'
] = $result_set[
'relevance'
];
38
$row[
'content'
] = $result_set[
'content'
];
39
40
$rows
[] = $row;
41
}
42
43
$this->
setData
(
$rows
);
44
}
45
50
public
function
fillRow
($a_set)
51
{
52
$this->tpl->setVariable(
'HREF_ITEM'
, $a_set[
'link'
]);
53
$this->tpl->setVariable(
'TXT_ITEM_TITLE'
, $a_set[
'title'
]);
54
55
if
($this->
getSettings
()->enabledLucene()) {
56
$this->tpl->setVariable(
'RELEVANCE'
, $this->
getRelevanceHTML
($a_set[
'relevance'
]));
57
}
58
if
(strlen($a_set[
'content'
])) {
59
$this->tpl->setVariable(
'HIGHLIGHT_CONTENT'
, $a_set[
'content'
]);
60
}
61
}
62
}
ilWikiPage\lookupTitle
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
Definition:
class.ilWikiPage.php:466
ilRepositoryObjectSearchResultTableGUI\getSettings
getSettings()
Get search settings.
Definition:
class.ilRepositoryObjectSearchResultTableGUI.php:48
$ilCtrl
global $ilCtrl
Definition:
ilias.php:18
ilTable2GUI\$ctrl
$ctrl
Definition:
class.ilTable2GUI.php:21
ilWikiUtil\makeUrlTitle
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
Definition:
class.ilWikiUtil.php:588
ilRepositoryObjectSearchResultTableGUI\getRelevanceHTML
getRelevanceHTML($a_rel)
Get relevance html.
Definition:
class.ilRepositoryObjectSearchResultTableGUI.php:127
ilTable2GUI\setData
setData($a_data)
Definition:
class.ilTable2GUI.php:576
ilObjWikiSearchResultTableGUI
Definition:
class.ilObjWikiSearchResultTableGUI.php:15
$rows
$rows
Definition:
xhr_table.php:10
ilObjWikiSearchResultTableGUI\parse
parse()
Parse results and call setDatea.
Definition:
class.ilObjWikiSearchResultTableGUI.php:20
ilRepositoryObjectSearchResultTableGUI
Definition:
class.ilRepositoryObjectSearchResultTableGUI.php:5
ilObjWikiSearchResultTableGUI\fillRow
fillRow($a_set)
Fill result row.
Definition:
class.ilObjWikiSearchResultTableGUI.php:50
ilRepositoryObjectSearchResultTableGUI\getResults
getResults()
Definition:
class.ilRepositoryObjectSearchResultTableGUI.php:62
Modules
Wiki
classes
class.ilObjWikiSearchResultTableGUI.php
Generated on Sun Apr 13 2025 20:01:11 for ILIAS by
1.8.13 (using
Doxyfile
)