Changeset 921 for trunk/Modules/Network/Network.php
- Timestamp:
- Feb 25, 2022, 9:30:55 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r917 r921 120 120 NetworkDomain::GetClassName(), NetworkDomainServer::GetClassName(), NetworkDomainView::GetClassName(), 121 121 NetworkDomainItemFilter::GetClassName(), DeviceAPIType::GetClassName(), NetworkInterfaceWireless::GetClassName(), 122 NetworkInterfaceUpDown::GetClassName(), NetworkPortUpDown::GetClassName() );122 NetworkInterfaceUpDown::GetClassName(), NetworkPortUpDown::GetClassName(), NetworkMac::GetClassName()); 123 123 124 124 // TODO: Make notify time configurable … … 380 380 'Items' => array( 381 381 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''), 382 'MAC' => array('Type' => ' MacAddress', 'Caption' => 'Fyzická adresa (MAC)', 'Default' => ''),382 'MAC' => array('Type' => 'TNetworkMac', 'Caption' => 'Fyzická adresa (MAC)', 'Default' => ''), 383 383 'Interface' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní', 'Default' => '', 'Null' => true), 384 384 'Value' => array('Type' => 'Integer', 'Caption' => 'Signál', 'Default' => '0', 'Suffix' => 'dBm'), … … 608 608 'Duration' => array('Type' => 'TimeDiff', 'Caption' => 'Trvání', 'Default' => '', 'ReadOnly' => true), 609 609 ), 610 )); 611 $this->System->FormManager->RegisterClass('NetworkMac', array( 612 'Title' => 'Fyzická síťová adresa', 613 'Table' => 'NetworkMac', 614 'Items' => array( 615 'MAC' => array('Type' => 'String', 'Caption' => 'Fyzická adresa', 'Default' => ''), 616 'Signal' => array('Type' => 'TNetworkSignalListMac', 'Caption' => 'Signál rozhraní', 'Default' => ''), 617 ), 618 )); 619 $this->System->FormManager->RegisterFormType('TNetworkMac', array( 620 'Type' => 'Reference', 621 'Table' => 'NetworkMac', 622 'Id' => 'Id', 623 'Name' => 'MAC', 624 'Filter' => '1', 625 )); 626 $this->System->FormManager->RegisterFormType('TNetworkSignalListMac', array( 627 'Type' => 'ManyToOne', 628 'Table' => 'NetworkSignal', 629 'Id' => 'Id', 630 'Ref' => 'Mac', 631 'Filter' => '1', 610 632 )); 611 633 $this->System->FormManager->RegisterFormType('TNetworkProtocol', array(
Note:
See TracChangeset
for help on using the changeset viewer.