ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilUIHookPluginGUI Class Reference

User interface hook class. More...

+ Collaboration diagram for ilUIHookPluginGUI:

Public Member Functions

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

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

ilUIHookPluginGUI::checkGotoHook ( )

Goto script hook.

Can be used to interfere with the goto script behaviour

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

{
return array("target" => false);
}
ilUIHookPluginGUI::getHTML (   $a_comp,
  $a_part,
  $a_par = array() 
)

Get html for ui area.

Parameters
@return

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

References KEEP.

{
return array("mode" => ilUIHookPluginGUI::KEEP, "html" => "");
}
ilUIHookPluginGUI::getPluginObject ( )
final

Get plugin object.

Returns
object plugin object

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

References $plugin_object.

{
}
ilUIHookPluginGUI::gotoHook ( )

Goto script hook.

Can be used to interfere with the goto script behaviour

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

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

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

Parameters
@return

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

{
}
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.

{
switch ($a_resp["mode"])
{
$a_def_html = $a_resp["html"];
break;
$a_def_html.= $a_resp["html"];
break;
$a_def_html = $a_resp["html"].$a_def_html;
break;
}
return $a_def_html;
}
ilUIHookPluginGUI::setPluginObject (   $a_val)
final

Set plugin object.

Parameters
objectplugin object

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

{
$this->plugin_object = $a_val;
}

Field Documentation

ilUIHookPluginGUI::$plugin_object = null
protected

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

Referenced by getPluginObject().

const ilUIHookPluginGUI::APPEND = "a"

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

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

const ilUIHookPluginGUI::PREPEND = "p"

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

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

const ilUIHookPluginGUI::REPLACE = "r"

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

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

const ilUIHookPluginGUI::UNSPECIFIED = ""

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


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