ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
class.ilObjWikiSearchResultTableGUI.php
Go to the documentation of this file.
1
<?php
2
24
class
ilObjWikiSearchResultTableGUI
extends
ilRepositoryObjectSearchResultTableGUI
25
{
26
public
function
parse
(): void
27
{
28
$ilCtrl =
$this->ctrl
;
29
30
$rows = array();
31
foreach
($this->
getResults
()->
getResults
() as $result_set) {
32
$row = array();
33
$row[
'title'
] =
ilWikiPage::lookupTitle
($result_set[
'item_id'
]);
34
35
if
(!is_null($row[
'title'
])) {
36
$ilCtrl->setParameterByClass(
37
'ilwikipagegui'
,
38
'page'
,
39
ilWikiUtil::makeUrlTitle
($row[
'title'
])
40
);
41
$row[
'link'
] = $ilCtrl->getLinkTargetByClass(
'ilwikipagegui'
,
'preview'
);
42
43
$row[
'content'
] = $result_set[
'content'
] ??
""
;
44
45
$rows[] = $row;
46
}
47
}
48
49
$this->
setData
($rows);
50
}
51
52
protected
function
fillRow
(array $a_set): void
53
{
54
$this->tpl->setVariable(
'HREF_ITEM'
, $a_set[
'link'
]);
55
$this->tpl->setVariable(
'TXT_ITEM_TITLE'
, $a_set[
'title'
]);
56
57
if
($a_set[
'content'
] !==
''
) {
58
$this->tpl->setVariable(
'HIGHLIGHT_CONTENT'
, $a_set[
'content'
]);
59
}
60
}
61
}
ilTable2GUI\setData
setData(array $a_data)
Definition:
class.ilTable2GUI.php:466
ilWikiPage\lookupTitle
static lookupTitle(int $a_page_id, string $lang="-")
Definition:
class.ilWikiPage.php:421
ilTable2GUI\$ctrl
ilCtrl $ctrl
Definition:
class.ilTable2GUI.php:46
ilObjWikiSearchResultTableGUI\fillRow
fillRow(array $a_set)
Definition:
class.ilObjWikiSearchResultTableGUI.php:52
ilObjWikiSearchResultTableGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilObjWikiSearchResultTableGUI.php:24
ilWikiUtil\makeUrlTitle
static makeUrlTitle(string $a_par)
Definition:
class.ilWikiUtil.php:443
ilObjWikiSearchResultTableGUI\parse
parse()
Definition:
class.ilObjWikiSearchResultTableGUI.php:26
ilRepositoryObjectSearchResultTableGUI
Definition:
class.ilRepositoryObjectSearchResultTableGUI.php:21
ilRepositoryObjectSearchResultTableGUI\getResults
getResults()
Definition:
class.ilRepositoryObjectSearchResultTableGUI.php:57
components
ILIAS
Wiki
classes
class.ilObjWikiSearchResultTableGUI.php
Generated on Mon Sep 1 2025 23:04:33 for ILIAS by
1.8.13 (using
Doxyfile
)