-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathModule.php
More file actions
38 lines (33 loc) · 875 Bytes
/
Copy pathModule.php
File metadata and controls
38 lines (33 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php declare(strict_types = 1);
namespace Modules\BGmotHosts;
use APP;
use CController as CAction;
class Module extends \Zabbix\Core\CModule {
/**
* Initialize module.
*/
public function init(): void {
// Initialize main menu (CMenu class instance).
APP::Component()->get('menu.main')
->findOrAdd(_('Monitoring'))
->getSubmenu()
->insertAfter('Hosts', (new \CMenuItem(_('Hosts tree')))
->setAction('bghost.view')
);
}
/**
* Event handler, triggered before executing the action.
*
* @param CAction $action Action instance responsible for current request.
*/
public function onBeforeAction(CAction $action): void {
}
/**
* Event handler, triggered on application exit.
*
* @param CAction $action Action instance responsible for current request.
*/
public function onTerminate(CAction $action): void {
}
}
?>