ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
11{
12
16 protected $plugin_object = null;
17 public const UNSPECIFIED = '';
18 public const KEEP = '';
19 public const REPLACE = 'r';
20 public const APPEND = 'a';
21 public const PREPEND = 'p';
22
23
27 final public function setPluginObject($a_val)
28 {
29 $this->plugin_object = $a_val;
30 }
31
32
36 final public function getPluginObject()
37 {
39 }
40
41
62 public function getHTML($a_comp, $a_part, $a_par = array())
63 {
64 return array('mode' => self::KEEP, 'html' => '');
65 }
66
67
85 public function modifyGUI($a_comp, $a_part, $a_par = array())
86 {
87 }
88
89
100 final public function modifyHTML($a_def_html, $a_resp)
101 {
102 switch ($a_resp['mode']) {
103 case self::REPLACE:
104 $a_def_html = $a_resp['html'];
105 break;
106 case self::APPEND:
107 $a_def_html .= $a_resp['html'];
108 break;
109 case self::PREPEND:
110 $a_def_html = $a_resp['html'] . $a_def_html;
111 break;
112 }
113
114 return $a_def_html;
115 }
116
117
123 public function gotoHook()
124 {
125 }
126
127
133 public function checkGotoHook($a_target)
134 {
135 return array('target' => false);
136 }
137}
An exception for terminatinating execution or to throw for unit testing.
Class ilUIHookPluginGUI.
checkGotoHook($a_target)
Goto script hook.
getHTML($a_comp, $a_part, $a_par=array())
gotoHook()
Goto script hook.
modifyHTML($a_def_html, $a_resp)
modifyGUI($a_comp, $a_part, $a_par=array())