Changeset 899 for trunk/Modules/Network
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- Location:
- trunk/Modules/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r895 r899 100 100 } 101 101 102 class ModuleNetwork extends AppModule102 class ModuleNetwork extends Module 103 103 { 104 104 public int $MinNotifyTime; … … 112 112 $this->License = 'GNU/GPLv3'; 113 113 $this->Description = 'Networking related tools'; 114 $this->Dependencies = array('Notify', 'IS'); 115 116 // TODO: Make notify time configurable 117 $this->MinNotifyTime = 30; // seconds 118 } 119 120 function GetModels(): array 121 { 122 return array(NetworkDomainAlias::GetClassName(), NetworkDevice::GetClassName(), NetworkDeviceType::GetClassName(), 114 $this->Dependencies = array(ModuleNotify::GetName(), ModuleIS::GetName()); 115 $this->Models = array(NetworkDomainAlias::GetClassName(), NetworkDevice::GetClassName(), NetworkDeviceType::GetClassName(), 123 116 NetworkDeviceLog::GetClassName(), NetworkInterface::GetClassName(), NetworkInterfaceType::GetClassName(), 124 117 NetworkSubnet::GetClassName(), NetworkPort::GetClassName(), NetworkSpeedLimit::GetClassName(), … … 128 121 NetworkDomainItemFilter::GetClassName(), DeviceAPIType::GetClassName(), NetworkInterfaceWireless::GetClassName(), 129 122 NetworkInterfaceUpDown::GetClassName(), NetworkPortUpDown::GetClassName()); 123 124 // TODO: Make notify time configurable 125 $this->MinNotifyTime = 30; // seconds 130 126 } 131 127 -
trunk/Modules/Network/NetworkModels.php
r895 r899 3 3 class NetworkDomainAlias extends Model 4 4 { 5 static function Get Desc(): ModelDesc5 static function GetModelDesc(): ModelDesc 6 6 { 7 7 $Desc = new ModelDesc(self::GetClassName()); … … 16 16 class NetworkDevice extends Model 17 17 { 18 static function Get Desc(): ModelDesc18 static function GetModelDesc(): ModelDesc 19 19 { 20 20 $Desc = new ModelDesc(self::GetClassName()); … … 39 39 class NetworkDeviceType extends Model 40 40 { 41 static function Get Desc(): ModelDesc41 static function GetModelDesc(): ModelDesc 42 42 { 43 43 $Desc = new ModelDesc(self::GetClassName()); … … 51 51 class NetworkDeviceLog extends Model 52 52 { 53 static function Get Desc(): ModelDesc53 static function GetModelDesc(): ModelDesc 54 54 { 55 55 $Desc = new ModelDesc(self::GetClassName()); … … 64 64 class NetworkInterface extends Model 65 65 { 66 static function Get Desc(): ModelDesc66 static function GetModelDesc(): ModelDesc 67 67 { 68 68 $Desc = new ModelDesc(self::GetClassName()); … … 83 83 class NetworkInterfaceType extends Model 84 84 { 85 static function Get Desc(): ModelDesc85 static function GetModelDesc(): ModelDesc 86 86 { 87 87 $Desc = new ModelDesc(self::GetClassName()); … … 96 96 class NetworkSubnet extends Model 97 97 { 98 static function Get Desc(): ModelDesc98 static function GetModelDesc(): ModelDesc 99 99 { 100 100 $Desc = new ModelDesc(self::GetClassName()); … … 121 121 class NetworkPort extends Model 122 122 { 123 static function Get Desc(): ModelDesc123 static function GetModelDesc(): ModelDesc 124 124 { 125 125 $Desc = new ModelDesc(self::GetClassName()); … … 137 137 class NetworkSpeedLimit extends Model 138 138 { 139 static function Get Desc(): ModelDesc139 static function GetModelDesc(): ModelDesc 140 140 { 141 141 $Desc = new ModelDesc(self::GetClassName()); … … 150 150 class NetworkInterfaceLatency extends Model 151 151 { 152 static function Get Desc(): ModelDesc152 static function GetModelDesc(): ModelDesc 153 153 { 154 154 $Desc = new ModelDesc(self::GetClassName()); … … 162 162 class NetworkLink extends Model 163 163 { 164 static function Get Desc(): ModelDesc164 static function GetModelDesc(): ModelDesc 165 165 { 166 166 $Desc = new ModelDesc(self::GetClassName()); … … 174 174 class NetworkLinkType extends Model 175 175 { 176 static function Get Desc(): ModelDesc176 static function GetModelDesc(): ModelDesc 177 177 { 178 178 $Desc = new ModelDesc(self::GetClassName()); … … 188 188 class NetworkSignal extends Model 189 189 { 190 static function Get Desc(): ModelDesc190 static function GetModelDesc(): ModelDesc 191 191 { 192 192 $Desc = new ModelDesc(self::GetClassName()); … … 204 204 class NetworkAddressCategory extends Model 205 205 { 206 static function Get Desc(): ModelDesc206 static function GetModelDesc(): ModelDesc 207 207 { 208 208 $Desc = new ModelDesc(self::GetClassName()); … … 214 214 class NetworkDomain extends Model 215 215 { 216 static function Get Desc(): ModelDesc216 static function GetModelDesc(): ModelDesc 217 217 { 218 218 $Desc = new ModelDesc(self::GetClassName()); … … 232 232 class NetworkDomainServer extends Model 233 233 { 234 static function Get Desc(): ModelDesc234 static function GetModelDesc(): ModelDesc 235 235 { 236 236 $Desc = new ModelDesc(self::GetClassName()); … … 244 244 class NetworkDomainView extends Model 245 245 { 246 static function Get Desc(): ModelDesc246 static function GetModelDesc(): ModelDesc 247 247 { 248 248 $Desc = new ModelDesc(self::GetClassName()); … … 257 257 class NetworkDomainItemFilter extends Model 258 258 { 259 static function Get Desc(): ModelDesc259 static function GetModelDesc(): ModelDesc 260 260 { 261 261 $Desc = new ModelDesc(self::GetClassName()); … … 272 272 class DeviceAPIType extends Model 273 273 { 274 static function Get Desc(): ModelDesc274 static function GetModelDesc(): ModelDesc 275 275 { 276 276 $Desc = new ModelDesc(self::GetClassName()); … … 282 282 class NetworkInterfaceWireless extends Model 283 283 { 284 static function Get Desc(): ModelDesc284 static function GetModelDesc(): ModelDesc 285 285 { 286 286 $Desc = new ModelDesc(self::GetClassName()); … … 305 305 class NetworkDeviceConfig extends Model 306 306 { 307 static function Get Desc(): ModelDesc307 static function GetModelDesc(): ModelDesc 308 308 { 309 309 $Desc = new ModelDesc(self::GetClassName()); … … 318 318 class NetworkInterfaceUpDown extends Model 319 319 { 320 static function Get Desc(): ModelDesc320 static function GetModelDesc(): ModelDesc 321 321 { 322 322 $Desc = new ModelDesc(self::GetClassName()); … … 331 331 class NetworkPortUpDown extends Model 332 332 { 333 static function Get Desc(): ModelDesc333 static function GetModelDesc(): ModelDesc 334 334 { 335 335 $Desc = new ModelDesc(self::GetClassName());
Note:
See TracChangeset
for help on using the changeset viewer.