ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilUIHookPluginGUI.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public const UNSPECIFIED = '';
29 public const KEEP = '';
30 public const REPLACE = 'r';
31 public const APPEND = 'a';
32 public const PREPEND = 'p';
33
34
35 final public function setPluginObject(ilUserInterfaceHookPlugin $a_val): void
36 {
37 $this->plugin_object = $a_val;
38 }
39
41 {
43 }
44
45
62 public function getHTML(
63 string $a_comp,
64 string $a_part,
65 array $a_par = array()
66 ): array {
67 return array('mode' => self::KEEP, 'html' => '');
68 }
69
70
84 public function modifyGUI(
85 string $a_comp,
86 string $a_part,
87 array $a_par = array()
88 ): void {
89 }
90
91
97 final public function modifyHTML(
98 string $a_def_html,
99 array $a_resp
100 ): string {
101 switch ($a_resp['mode']) {
102 case self::REPLACE:
103 $a_def_html = $a_resp['html'];
104 break;
105 case self::APPEND:
106 $a_def_html .= $a_resp['html'];
107 break;
108 case self::PREPEND:
109 $a_def_html = $a_resp['html'] . $a_def_html;
110 break;
111 }
112
113 return $a_def_html;
114 }
115
116
123 public function gotoHook(): void
124 {
125 }
126
127
133 public function checkGotoHook(string $a_target): array
134 {
135 return array('target' => false);
136 }
137}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
gotoHook()
Goto script hook.
setPluginObject(ilUserInterfaceHookPlugin $a_val)
getHTML(string $a_comp, string $a_part, array $a_par=array())
checkGotoHook(string $a_target)
Goto script hook.
ilUserInterfaceHookPlugin $plugin_object
modifyGUI(string $a_comp, string $a_part, array $a_par=array())
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...