|
11 | 11 | */ |
12 | 12 | class Plugin |
13 | 13 | { |
14 | | - public static $name = 'Novnc Plugin'; |
15 | | - public static $description = 'Allows handling of NoVNC HTML5 VNC Connections'; |
16 | | - public static $help = ''; |
17 | | - public static $type = 'plugin'; |
| 14 | + public static $name = 'Novnc Plugin'; |
| 15 | + public static $description = 'Allows handling of NoVNC HTML5 VNC Connections'; |
| 16 | + public static $help = ''; |
| 17 | + public static $type = 'plugin'; |
18 | 18 |
|
19 | | - /** |
20 | | - * Plugin constructor. |
21 | | - */ |
22 | | - public function __construct() |
23 | | - { |
24 | | - } |
| 19 | + /** |
| 20 | + * Plugin constructor. |
| 21 | + */ |
| 22 | + public function __construct() |
| 23 | + { |
| 24 | + } |
25 | 25 |
|
26 | | - /** |
27 | | - * @return array |
28 | | - */ |
29 | | - public static function getHooks() |
30 | | - { |
31 | | - return [ |
32 | | - //'system.settings' => [__CLASS__, 'getSettings'], |
33 | | - //'ui.menu' => [__CLASS__, 'getMenu'], |
34 | | - ]; |
35 | | - } |
| 26 | + /** |
| 27 | + * @return array |
| 28 | + */ |
| 29 | + public static function getHooks() |
| 30 | + { |
| 31 | + return [ |
| 32 | + //'system.settings' => [__CLASS__, 'getSettings'], |
| 33 | + //'ui.menu' => [__CLASS__, 'getMenu'], |
| 34 | + ]; |
| 35 | + } |
36 | 36 |
|
37 | | - /** |
38 | | - * @param \Symfony\Component\EventDispatcher\GenericEvent $event |
39 | | - */ |
40 | | - public static function getMenu(GenericEvent $event) |
41 | | - { |
42 | | - $menu = $event->getSubject(); |
43 | | - if ($GLOBALS['tf']->ima == 'admin') { |
44 | | - function_requirements('has_acl'); |
45 | | - if (has_acl('client_billing')) { |
46 | | - } |
47 | | - } |
48 | | - } |
| 37 | + /** |
| 38 | + * @param \Symfony\Component\EventDispatcher\GenericEvent $event |
| 39 | + */ |
| 40 | + public static function getMenu(GenericEvent $event) |
| 41 | + { |
| 42 | + $menu = $event->getSubject(); |
| 43 | + if ($GLOBALS['tf']->ima == 'admin') { |
| 44 | + function_requirements('has_acl'); |
| 45 | + if (has_acl('client_billing')) { |
| 46 | + } |
| 47 | + } |
| 48 | + } |
49 | 49 |
|
50 | | - /** |
51 | | - * @param \Symfony\Component\EventDispatcher\GenericEvent $event |
52 | | - */ |
53 | | - public static function getRequirements(GenericEvent $event) |
54 | | - { |
55 | | - /** |
56 | | - * @var \MyAdmin\Plugins\Loader $this->loader |
57 | | - */ |
58 | | - $loader = $event->getSubject(); |
59 | | - $loader->add_requirement('class.Novnc', '/../vendor/detain/myadmin-novnc-plugin/src/Novnc.php'); |
60 | | - $loader->add_requirement('deactivate_kcare', '/../vendor/detain/myadmin-novnc-plugin/src/abuse.inc.php'); |
61 | | - $loader->add_requirement('deactivate_abuse', '/../vendor/detain/myadmin-novnc-plugin/src/abuse.inc.php'); |
62 | | - $loader->add_requirement('get_abuse_licenses', '/../vendor/detain/myadmin-novnc-plugin/src/abuse.inc.php'); |
63 | | - } |
| 50 | + /** |
| 51 | + * @param \Symfony\Component\EventDispatcher\GenericEvent $event |
| 52 | + */ |
| 53 | + public static function getRequirements(GenericEvent $event) |
| 54 | + { |
| 55 | + /** |
| 56 | + * @var \MyAdmin\Plugins\Loader $this->loader |
| 57 | + */ |
| 58 | + $loader = $event->getSubject(); |
| 59 | + $loader->add_requirement('class.Novnc', '/../vendor/detain/myadmin-novnc-plugin/src/Novnc.php'); |
| 60 | + $loader->add_requirement('deactivate_kcare', '/../vendor/detain/myadmin-novnc-plugin/src/abuse.inc.php'); |
| 61 | + $loader->add_requirement('deactivate_abuse', '/../vendor/detain/myadmin-novnc-plugin/src/abuse.inc.php'); |
| 62 | + $loader->add_requirement('get_abuse_licenses', '/../vendor/detain/myadmin-novnc-plugin/src/abuse.inc.php'); |
| 63 | + } |
64 | 64 |
|
65 | | - /** |
66 | | - * @param \Symfony\Component\EventDispatcher\GenericEvent $event |
67 | | - */ |
68 | | - public static function getSettings(GenericEvent $event) |
69 | | - { |
70 | | - /** |
71 | | - * @var \MyAdmin\Settings $settings |
72 | | - **/ |
73 | | - $settings = $event->getSubject(); |
74 | | - } |
| 65 | + /** |
| 66 | + * @param \Symfony\Component\EventDispatcher\GenericEvent $event |
| 67 | + */ |
| 68 | + public static function getSettings(GenericEvent $event) |
| 69 | + { |
| 70 | + /** |
| 71 | + * @var \MyAdmin\Settings $settings |
| 72 | + **/ |
| 73 | + $settings = $event->getSubject(); |
| 74 | + } |
75 | 75 | } |
0 commit comments