ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
22 global $ilCtrl;
23
24 $rows = array();
25 foreach($this->getResults()->getResults() as $result_set)
26 {
27 $row = array();
28 include_once './Modules/Wiki/classes/class.ilWikiPage.php';
29 $row['title'] = ilWikiPage::lookupTitle($result_set['item_id']);
30
31 $ilCtrl->setParameterByClass(
32 'ilwikipagegui',
33 'page',
35 );
36 $row['link'] = $ilCtrl->getLinkTargetByClass('ilwikipagegui','preview');
37
38 $row['relevance'] = $result_set['relevance'];
39 $row['content'] = $result_set['content'];
40
41 $rows[] = $row;
42 }
43
44 $this->setData($rows);
45 }
46
51 public function fillRow($a_set)
52 {
53 $this->tpl->setVariable('HREF_ITEM', $a_set['link']);
54 $this->tpl->setVariable('TXT_ITEM_TITLE',$a_set['title']);
55
56 if($this->getSettings()->enabledLucene())
57 {
58 $this->tpl->setVariable('RELEVANCE', $this->getRelevanceHTML($a_set['relevance']));
59 }
60 if(strlen($a_set['content']))
61 {
62 $this->tpl->setVariable('HIGHLIGHT_CONTENT',$a_set['content']);
63 }
64 }
65}
66?>
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