ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilUIHookPluginGUI Class Reference

User interface hook class. More...

+ Collaboration diagram for ilUIHookPluginGUI:

Public Member Functions

 setPluginObject ($a_val)
 Set plugin object. More...
 
 getPluginObject ()
 Get plugin object. More...
 
 getHTML ($a_comp, $a_part, $a_par=array())
 Get html for ui area. More...
 
 modifyGUI ($a_comp, $a_part, $a_par=array())
 Modify user interface, paramters contain classes that can be modified. More...
 
 modifyHTML ($a_def_html, $a_resp)
 Modify HTML based on default html and plugin response. More...
 
 gotoHook ()
 Goto script hook. More...
 
 checkGotoHook ($a_target)
 Goto script hook. More...
 

Data Fields

const UNSPECIFIED = ""
 
const KEEP = ""
 
const REPLACE = "r"
 
const APPEND = "a"
 
const PREPEND = "p"
 

Protected Attributes

 $plugin_object = null
 

Detailed Description

User interface hook class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilUIHookPluginGUI.php.

Member Function Documentation

◆ checkGotoHook()

ilUIHookPluginGUI::checkGotoHook (   $a_target)

Goto script hook.

Can be used to interfere with the goto script behaviour

Definition at line 100 of file class.ilUIHookPluginGUI.php.

101  {
102  return array("target" => false);
103  }

◆ getHTML()

ilUIHookPluginGUI::getHTML (   $a_comp,
  $a_part,
  $a_par = array() 
)

Get html for ui area.

Parameters

Definition at line 48 of file class.ilUIHookPluginGUI.php.

References KEEP.

49  {
50  return array("mode" => ilUIHookPluginGUI::KEEP, "html" => "");
51  }

◆ getPluginObject()

ilUIHookPluginGUI::getPluginObject ( )
final

Get plugin object.

Returns
object plugin object

Definition at line 37 of file class.ilUIHookPluginGUI.php.

References $plugin_object.

38  {
39  return $this->plugin_object;
40  }

◆ gotoHook()

ilUIHookPluginGUI::gotoHook ( )

Goto script hook.

Can be used to interfere with the goto script behaviour

Definition at line 91 of file class.ilUIHookPluginGUI.php.

92  {
93  }

◆ modifyGUI()

ilUIHookPluginGUI::modifyGUI (   $a_comp,
  $a_part,
  $a_par = array() 
)

Modify user interface, paramters contain classes that can be modified.

Parameters

Definition at line 59 of file class.ilUIHookPluginGUI.php.

60  {
61  }

◆ modifyHTML()

ilUIHookPluginGUI::modifyHTML (   $a_def_html,
  $a_resp 
)
final

Modify HTML based on default html and plugin response.

Parameters
stringdefault html
stringresonse from plugin
Returns
string modified html

Definition at line 70 of file class.ilUIHookPluginGUI.php.

References APPEND, PREPEND, and REPLACE.

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  }

◆ setPluginObject()

ilUIHookPluginGUI::setPluginObject (   $a_val)
final

Set plugin object.

Parameters
objectplugin object

Definition at line 27 of file class.ilUIHookPluginGUI.php.

28  {
29  $this->plugin_object = $a_val;
30  }

Field Documentation

◆ $plugin_object

ilUIHookPluginGUI::$plugin_object = null
protected

Definition at line 14 of file class.ilUIHookPluginGUI.php.

Referenced by getPluginObject().

◆ APPEND

const ilUIHookPluginGUI::APPEND = "a"

Definition at line 19 of file class.ilUIHookPluginGUI.php.

Referenced by ilUIHookProcessor\__construct(), and modifyHTML().

◆ KEEP

◆ PREPEND

const ilUIHookPluginGUI::PREPEND = "p"

Definition at line 20 of file class.ilUIHookPluginGUI.php.

Referenced by ilUIHookProcessor\__construct(), and modifyHTML().

◆ REPLACE

const ilUIHookPluginGUI::REPLACE = "r"

Definition at line 18 of file class.ilUIHookPluginGUI.php.

Referenced by ilUIHookProcessor\__construct(), and modifyHTML().

◆ UNSPECIFIED

const ilUIHookPluginGUI::UNSPECIFIED = ""

Definition at line 16 of file class.ilUIHookPluginGUI.php.


The documentation for this class was generated from the following file: