Changeset 817 for trunk/Modules/NetworkConfig/NetworkConfig.php
- Timestamp:
- Mar 16, 2016, 8:51:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfig/NetworkConfig.php
r781 r817 51 51 ), 52 52 )); 53 $this->System->FormManager->RegisterFormType('TNetworkConfigurationState', array( 54 'Type' => 'Enumeration', 55 'States' => array('Neplánováno', 'V plánu', 'Provádí se'), 56 )); 57 53 58 $this->System->RegisterCommandLine('config', array($this, 'Config')); 59 $this->System->Models['NetworkDevice']->RegisterOnChange('NetworkConfig', array($this, 'DoNetworkChange')); 60 $this->System->Models['NetworkInterface']->RegisterOnChange('NetworkConfig', array($this, 'DoNetworkChange')); 61 } 62 63 function DoNetworkChange() 64 { 65 $this->Database->query('UPDATE `NetworkConfiguration` SET `Changed`=1 WHERE '. 66 '(`Id`=1) OR (`Id`=7) OR (`Id`=8) OR (`Id`=9) OR (`Id`=10) OR (`Id`=11) OR (`Id`=12) OR (`Id`=13)'); 54 67 } 55 68
Note:
See TracChangeset
for help on using the changeset viewer.