Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Module.php « module_number_6 « modules « selenium « tests « ui - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4e19b0c81070818120277ea41db504ff14fbfe6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php declare(strict_types = 0);

namespace Modules\Example_F;

use Core\CModule,
	APP,
	CMenu;

class Module extends CModule {

	/**
	 * Initialize module.
	 */
	public function init(): void {
		$menu = APP::Component()->get('menu.main');

		$menu->remove('Reports');

		$menu
			->find('Monitoring')
			->getSubMenu()
			->remove('Maps');
	}
}