source: trunk/Modules/NetworkConfigLinux/NetworkConfigLinux.php@ 887

Last change on this file since 887 was 887, checked in by chronos, 4 years ago
  • Added: Static types added to almost all classes, methods and function. Supported by PHP 7.4.
  • Fixed: Various found code issues.
File size: 1.0 KB
Line 
1<?php
2
3include_once(dirname(__FILE__).'/Generators/DNS.php');
4include_once(dirname(__FILE__).'/Generators/CheckPorts.php');
5include_once(dirname(__FILE__).'/Generators/Latency.php');
6
7class ModuleNetworkConfigLinux extends AppModule
8{
9 function __construct(System $System)
10 {
11 parent::__construct($System);
12 $this->Name = 'NetworkConfigLinux';
13 $this->Version = '1.0';
14 $this->Creator = 'Chronos';
15 $this->License = 'GNU/GPL';
16 $this->Description = 'Network service configuration of Linux server';
17 $this->Dependencies = array('NetworkConfig');
18 }
19
20 function DoInstall(): void
21 {
22 }
23
24 function DoUnInstall(): void
25 {
26 }
27
28 function DoStart(): void
29 {
30 ModuleNetworkConfig::Cast($this->System->GetModule('NetworkConfig'))->RegisterConfigItem('linux-dns', 'ConfigDNS');
31 ModuleNetworkConfig::Cast($this->System->GetModule('NetworkConfig'))->RegisterConfigItem('linux-checkports', 'ConfigCheckPorts');
32 ModuleNetworkConfig::Cast($this->System->GetModule('NetworkConfig'))->RegisterConfigItem('linux-latency', 'ConfigLatency');
33 }
34}
Note: See TracBrowser for help on using the repository browser.