Ignore:
Timestamp:
Feb 25, 2022, 9:30:55 AM (3 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Network/Network.php

    r917 r921  
    120120      NetworkDomain::GetClassName(), NetworkDomainServer::GetClassName(), NetworkDomainView::GetClassName(),
    121121      NetworkDomainItemFilter::GetClassName(), DeviceAPIType::GetClassName(), NetworkInterfaceWireless::GetClassName(),
    122       NetworkInterfaceUpDown::GetClassName(), NetworkPortUpDown::GetClassName());
     122      NetworkInterfaceUpDown::GetClassName(), NetworkPortUpDown::GetClassName(), NetworkMac::GetClassName());
    123123
    124124    // TODO: Make notify time configurable
     
    380380      'Items' => array(
    381381        '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' => ''),
    383383        'Interface' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní', 'Default' => '', 'Null' => true),
    384384        'Value' => array('Type' => 'Integer', 'Caption' => 'Signál', 'Default' => '0', 'Suffix' => 'dBm'),
     
    608608        'Duration' => array('Type' => 'TimeDiff', 'Caption' => 'Trvání', 'Default' => '', 'ReadOnly' => true),
    609609      ),
     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',
    610632    ));
    611633    $this->System->FormManager->RegisterFormType('TNetworkProtocol', array(
Note: See TracChangeset for help on using the changeset viewer.