Changeset 378 for trunk/Modules/Network/Network.php
- Timestamp:
- Jan 20, 2012, 3:32:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r377 r378 78 78 $this->AddPropertyString('IPv6'); 79 79 $this->AddPropertyString('ExternalIP'); 80 $this->AddPropertyOneToMany('Device', ' Device');80 $this->AddPropertyOneToMany('Device', 'NetworkDevice'); 81 81 $this->AddPropertyBoolean('Online'); 82 82 $this->AddPropertyDateTime('LastOnline'); … … 153 153 } 154 154 } 155 156 class NetworkSegment extends Model 157 { 158 function __construct($Database, $System) 159 { 160 parent::__construct($Database, $System); 161 $this->Name = 'NetworkSegment'; 162 $this->AddPropertyString('Name'); 163 $this->AddPropertyInteger('Price'); 164 $this->AddPropertyOneToMany('Parent', 'NetworkSegment'); 165 $this->AddPropertyInteger('Users'); 166 $this->AddPropertyInteger('Consumption'); 167 $this->AddPropertyInteger('UsersOverheads'); 168 } 169 } 170 155 171 156 172 class EmailView extends ViewForm … … 221 237 $this->Description = 'Network device, interface and interconnection management'; 222 238 $this->Dependencies = array('User', 'Member'); 223 $this->Models = array('NetworkDevice', 'NetworkDeviceType', 'NetworkInterface', 224 'NetworkInterfaceType', 'NetworkPoint', 'NetworkLink', 'NetworkSubnet'); 239 $this->SupportedModels = array('NetworkDevice', 'NetworkDeviceType', 'NetworkInterface', 240 'NetworkInterfaceType', 'NetworkPoint', 'NetworkLink', 'NetworkSubnet', 241 'NetworkSegment'); 225 242 } 226 243
Note:
See TracChangeset
for help on using the changeset viewer.