Changeset 887 for trunk/Modules/NetworkConfigAirOS
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- Location:
- trunk/Modules/NetworkConfigAirOS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigAirOS/Generators/Signal.php
r873 r887 5 5 class ConfigAirOSSignal extends NetworkConfigItem 6 6 { 7 function ReadWirelessRegistration() 7 function ReadWirelessRegistration(): void 8 8 { 9 9 $Time = time(); … … 19 19 //$SSHClient->Debug = true; 20 20 $Result = $SSHClient->Execute('wstalist'); 21 if (count($Result) > 0) 22 { 21 if (count($Result) > 0) 22 { 23 23 //print_r($Result); 24 24 $Array = json_decode(implode("\n", $Result), true); … … 44 44 echo("\n"); 45 45 } else echo("Empty response\n"); 46 47 46 } 48 47 } 49 48 50 function Run() 49 function Run(): void 51 50 { 52 51 RepeatFunction(60 * 60, array($this, 'ReadWirelessRegistration')); -
trunk/Modules/NetworkConfigAirOS/NetworkConfigAirOS.php
r781 r887 5 5 class ModuleNetworkConfigAirOS extends AppModule 6 6 { 7 function __construct( $System)7 function __construct(System $System) 8 8 { 9 9 parent::__construct($System); … … 16 16 } 17 17 18 function DoInstall() 18 function DoInstall(): void 19 19 { 20 20 } 21 21 22 function DoUnInstall() 22 function DoUnInstall(): void 23 23 { 24 24 } 25 25 26 function DoStart() 26 function DoStart(): void 27 27 { 28 $this->System->ModuleManager->Modules['NetworkConfig']->RegisterConfigItem('airos-signal', 'ConfigAirOSSignal');28 ModuleNetworkConfig::Cast($this->System->GetModule('NetworkConfig'))->RegisterConfigItem('airos-signal', 'ConfigAirOSSignal'); 29 29 } 30 30 }
Note:
See TracChangeset
for help on using the changeset viewer.