ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilRepositoryObjectSearchBlockGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once './Services/Block/classes/class.ilBlockGUI.php';
5 
18 {
19  public static $block_type = "objectsearch";
20  public static $st_data;
21 
22 
28  public function __construct($a_title)
29  {
30  parent::__construct();
31 
32  $this->setEnableNumInfo(false);
33 
34  $this->setTitle($a_title);
35  $this->allow_moving = false;
36  }
37 
43  public static function getBlockType()
44  {
45  return self::$block_type;
46  }
47 
53  public static function isRepositoryObject()
54  {
55  return false;
56  }
57 
61  public static function getScreenMode()
62  {
63  return IL_SCREEN_SIDE;
64  }
65 
69  public function executeCommand()
70  {
72 
73  $next_class = $ilCtrl->getNextClass();
74  $cmd = $ilCtrl->getCmd("getHTML");
75 
76  switch ($next_class) {
77  default:
78  return $this->$cmd();
79  }
80  }
81 
85  public function getHTML()
86  {
87  return parent::getHTML();
88  }
89 
93  public function fillDataSection()
94  {
96  $lng = $this->lng;
97 
98  $tpl = new ilTemplate("tpl.search_search_block.html", true, true, 'Services/Search');
99 
100  $lng->loadLanguageModule('search');
101  $tpl->setVariable("TXT_PERFORM", $lng->txt('btn_search'));
102  $tpl->setVariable("FORMACTION", $ilCtrl->getFormActionByClass('ilrepositoryobjectsearchgui', 'performSearch'));
103  $tpl->setVariable("SEARCH_TERM", ilUtil::prepareFormOutput(ilUtil::stripSlashes($_POST["search_term"])));
104 
105  $this->setDataSection($tpl->get());
106  }
107 }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
static isRepositoryObject()
Is this a repository object.
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
static getScreenMode()
Get Screen Mode for current command.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
global $ilCtrl
Definition: ilias.php:18
__construct($a_title)
Constructor type $ilCtrl type $lng.
setTitle($a_title)
Set Title.
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
This class represents a block method of a block.
const IL_SCREEN_SIDE
$_POST["username"]