ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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
24include_once("Services/Block/classes/class.ilBlockGUI.php");
25
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
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",
127
128 $this->setDataSection($tpl->get());
129 }
130}
131
132?>
global $tpl
Definition: ilias.php:8
const IL_SCREEN_SIDE
This class represents a block method of a block.
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
setTitle($a_title)
Set Title.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
BlockGUI class for wiki searchblock.
static getScreenMode()
Get Screen Mode for current command.
static getBlockType()
Get block type.
static isRepositoryObject()
Is this a repository object.
fillDataSection()
Fill data section.
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40
$cmd
Definition: sahs_server.php:35
global $ilUser
Definition: imgupload.php:15