ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4include_once './Services/Search/classes/class.ilRepositoryObjectSearchResultTableGUI.php';
5
16{
20 public function parse()
21 {
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',
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}
An exception for terminatinating execution or to throw for unit testing.
setData($a_data)
set table data @access public
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
global $ilCtrl
Definition: ilias.php:18
$rows
Definition: xhr_table.php:10