ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilUIHookPluginGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
13 {
14  protected $plugin_object = null;
15 
16  const UNSPECIFIED = "";
17  const KEEP = "";
18  const REPLACE = "r";
19  const APPEND = "a";
20  const PREPEND = "p";
21 
27  final public function setPluginObject($a_val)
28  {
29  $this->plugin_object = $a_val;
30  }
31 
37  final public function getPluginObject()
38  {
39  return $this->plugin_object;
40  }
41 
48  public function getHTML($a_comp, $a_part, $a_par = array())
49  {
50  return array("mode" => ilUIHookPluginGUI::KEEP, "html" => "");
51  }
52 
59  public function modifyGUI($a_comp, $a_part, $a_par = array())
60  {
61  }
62 
70  final public function modifyHTML($a_def_html, $a_resp)
71  {
72  switch ($a_resp["mode"]) {
74  $a_def_html = $a_resp["html"];
75  break;
77  $a_def_html .= $a_resp["html"];
78  break;
80  $a_def_html = $a_resp["html"] . $a_def_html;
81  break;
82  }
83  return $a_def_html;
84  }
85 
91  public function gotoHook()
92  {
93  }
94 
100  public function checkGotoHook($a_target)
101  {
102  return array("target" => false);
103  }
104 }
gotoHook()
Goto script hook.
setPluginObject($a_val)
Set plugin object.
checkGotoHook($a_target)
Goto script hook.
getPluginObject()
Get plugin object.
modifyGUI($a_comp, $a_part, $a_par=array())
Modify user interface, paramters contain classes that can be modified.
getHTML($a_comp, $a_part, $a_par=array())
Get html for ui area.
User interface hook class.
modifyHTML($a_def_html, $a_resp)
Modify HTML based on default html and plugin response.