ILIAS
Release_5_0_x_branch Revision 61816
◀ 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
$lng->loadLanguageModule(
"wiki"
);
51
$this->
setEnableNumInfo
(
false
);
52
53
$this->
setTitle
($lng->txt(
"wiki_wiki_search"
));
54
$this->allow_moving =
false
;
55
}
56
62
static
function
getBlockType
()
63
{
64
return
self::$block_type
;
65
}
66
72
static
function
isRepositoryObject
()
73
{
74
return
false
;
75
}
76
80
static
function
getScreenMode
()
81
{
82
return
IL_SCREEN_SIDE
;
83
}
84
88
function
&
executeCommand
()
89
{
90
global
$ilCtrl
;
91
92
$next_class = $ilCtrl->getNextClass();
93
$cmd
= $ilCtrl->getCmd(
"getHTML"
);
94
95
switch
($next_class)
96
{
97
default
:
98
return
$this->
$cmd
();
99
}
100
}
101
105
function
getHTML
()
106
{
107
global
$ilCtrl
,
$lng
,
$ilUser
;
108
109
return
parent::getHTML
();
110
}
111
115
function
fillDataSection
()
116
{
117
global
$ilCtrl
,
$lng
, $ilAccess;
118
119
$tpl
=
new
ilTemplate
(
"tpl.wiki_search_block.html"
,
true
,
true
,
"Modules/Wiki"
);
120
121
// go
122
$tpl
->setVariable(
"TXT_PERFORM"
, $lng->txt(
"wiki_search"
));
123
$tpl
->setVariable(
"FORMACTION"
,
124
$ilCtrl->getFormActionByClass(
"ilobjwikigui"
,
"performSearch"
));
125
$tpl
->setVariable(
"SEARCH_TERM"
,
126
ilUtil::prepareFormOutput
(
ilUtil::stripSlashes
(
$_POST
[
"search_term"
])));
127
128
$this->
setDataSection
(
$tpl
->get());
129
}
130
}
131
132
?>
Modules
Wiki
classes
class.ilWikiSearchBlockGUI.php
Generated on Wed Apr 27 2016 21:01:24 for ILIAS by
1.8.1.2 (using
Doxyfile
)