ILIAS
Release_4_2_x_branch Revision 61807
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilWikiSearchBlockGUI.php
Go to the documentation of this file.
1
<?php
2
/*
3
+-----------------------------------------------------------------------------+
4
| ILIAS open source |
5
+-----------------------------------------------------------------------------+
6
| Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7
| |
8
| This program is free software; you can redistribute it and/or |
9
| modify it under the terms of the GNU General Public License |
10
| as published by the Free Software Foundation; either version 2 |
11
| of the License, or (at your option) any later version. |
12
| |
13
| This program is distributed in the hope that it will be useful, |
14
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16
| GNU General Public License for more details. |
17
| |
18
| You should have received a copy of the GNU General Public License |
19
| along with this program; if not, write to the Free Software |
20
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21
+-----------------------------------------------------------------------------+
22
*/
23
24
include_once(
"Services/Block/classes/class.ilBlockGUI.php"
);
25
36
class
ilWikiSearchBlockGUI
extends
ilBlockGUI
37
{
38
static
$block_type
=
"wikisearch"
;
39
static
$st_data
;
40
44
function
__construct
()
45
{
46
global
$ilCtrl
,
$lng
;
47
48
parent::ilBlockGUI
();
49
50
//$this->setImage(ilUtil::getImagePath("icon_news_s.gif"));
51
52
$lng->loadLanguageModule(
"wiki"
);
53
//$this->setBlockId(...);
54
/*$this->setLimit(5);
55
$this->setAvailableDetailLevels(3);*/
56
$this->
setEnableNumInfo
(
false
);
57
58
$this->
setTitle
($lng->txt(
"wiki_wiki_search"
));
59
//$this->setRowTemplate("tpl.block_row_news_for_context.html", "Services/News");
60
//$this->setData($data);
61
$this->allow_moving =
false
;
62
//$this->handleView();
63
}
64
70
static
function
getBlockType
()
71
{
72
return
self::$block_type
;
73
}
74
80
static
function
isRepositoryObject
()
81
{
82
return
false
;
83
}
84
88
static
function
getScreenMode
()
89
{
90
return
IL_SCREEN_SIDE
;
91
}
92
96
function
&
executeCommand
()
97
{
98
global
$ilCtrl
;
99
100
$next_class = $ilCtrl->getNextClass();
101
$cmd
= $ilCtrl->getCmd(
"getHTML"
);
102
103
switch
($next_class)
104
{
105
default
:
106
return
$this->
$cmd
();
107
}
108
}
109
113
function
getHTML
()
114
{
115
global
$ilCtrl
,
$lng
, $ilUser;
116
117
return
parent::getHTML
();
118
}
119
123
function
fillDataSection
()
124
{
125
global
$ilCtrl
,
$lng
, $ilAccess;
126
127
$tpl
=
new
ilTemplate
(
"tpl.wiki_search_block.html"
,
true
,
true
,
"Modules/Wiki"
);
128
129
// go
130
$tpl
->setVariable(
"TXT_PERFORM"
, $lng->txt(
"wiki_search"
));
131
$tpl
->setVariable(
"FORMACTION"
,
132
$ilCtrl->getFormActionByClass(
"ilobjwikigui"
,
"performSearch"
));
133
134
$this->
setDataSection
(
$tpl
->get());
135
}
136
}
137
138
?>
Modules
Wiki
classes
class.ilWikiSearchBlockGUI.php
Generated on Fri Apr 22 2016 19:04:00 for ILIAS by
1.8.1.2 (using
Doxyfile
)