4 require_once
'Services/Search/classes/class.ilRepositoryObjectSearchResultTableGUI.php';
14 public function parse()
19 global
$ilCtrl, $ilObjDataCache;
26 if(!array_key_exists($result_set[
'item_id'], $valid_threads))
33 $row[
'title'] = $valid_threads[$result_set[
'item_id']];
35 $ilCtrl->setParameterByClass(
'ilObjForumGUI',
'thr_pk', $result_set[
'item_id']);
36 $row[
'link'] = $ilCtrl->getLinkTargetByClass(
'ilObjForumGUI',
'viewThread');
38 $row[
'relevance'] = $result_set[
'relevance'];
39 $row[
'content'] = $result_set[
'content'];
53 $this->tpl->setVariable(
'HREF_ITEM', $a_set[
'link']);
54 $this->tpl->setVariable(
'TXT_ITEM_TITLE',$a_set[
'title']);
58 $this->tpl->setVariable(
'RELEVANCE', $this->
getRelevanceHTML($a_set[
'relevance']));
60 if(strlen($a_set[
'content']))
62 $this->tpl->setVariable(
'HIGHLIGHT_CONTENT',$a_set[
'content']);
getSettings()
Get search settings.
fillRow($a_set)
Fill result row.
getRelevanceHTML($a_rel)
Get relevance html.
static _getThreads($a_obj_id, $a_sort_mode=self::SORT_DATE)
Get thread infos of object.
Create styles array
The data for the language used.
Class ilObjForumSearchResultTableGUI.
parse()
Parse search result set and call set data.