ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
$row
$row
Definition:
migrateto20.php:360
$rows
$rows
Definition:
xhr_table.php:10
ilObjWikiSearchResultTableGUI\parse
parse()
Parse results and call setDatea.
Definition:
class.ilObjWikiSearchResultTableGUI.php:20
php
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 Thu Jan 16 2025 19:02:14 for ILIAS by
1.8.13 (using
Doxyfile
)