Ignore:
Timestamp:
Apr 1, 2020, 12:43:07 AM (4 years ago)
Author:
chronos
Message:
  • Added: New SpeedLimit table to support network speed limit groups.
File:
1 edited

Legend:

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

    r868 r869  
    293293        'UpDown' => array('Type' => 'TNetworkPortUpDown', 'Caption' => 'Změny stavu', 'Default' => ''),
    294294      ),
     295    ));
     296    $this->System->FormManager->RegisterClass('NetworkSpeedLimit', array(
     297      'Title' => 'Omezení přenosové rychlosti',
     298      'Table' => 'NetworkSpeedLimit',
     299      'Items' => array(
     300        'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),
     301        'SpeedMaxOut' => array('Type' => 'Integer', 'Caption' => 'Max. rychlost odesílání', 'Default' => '0', 'Suffix' => 'bits/s'),
     302        'SpeedMaxIn' => array('Type' => 'Integer', 'Caption' => 'Max. rychlost přijímání', 'Default' => 0, 'Suffix' => 'bits/s'),
     303        'Parent' => array('Type' => 'TNetworkSpeedLimit', 'Caption' => 'Rodič', 'Default' => '', 'Null' => true),
     304        'Items' => array('Type' => 'TNetworkSpeedLimitListParent', 'Caption' => 'Položky'),
     305        'CustomerServices' => array('Type' => 'TServiceCustomerRelListSpeedLimit', 'Caption' => 'Služby zákazníka'),
     306      ),
     307    ));
     308    $this->System->FormManager->RegisterFormType('TNetworkSpeedLimit', array(
     309      'Type' => 'Reference',
     310      'Table' => 'NetworkSpeedLimit',
     311      'Id' => 'Id',
     312      'Name' => 'Name',
     313      'Filter' => '1',
     314    ));
     315    $this->System->FormManager->RegisterFormType('TNetworkSpeedLimitListParent', array(
     316      'Type' => 'ManyToOne',
     317      'Table' => 'NetworkSpeedLimit',
     318      'Id' => 'Id',
     319      'Ref' => 'Parent',
     320      'Filter' => '1',
     321    ));
     322    $this->System->FormManager->RegisterFormType('TServiceCustomerRelListSpeedLimit', array(
     323      'Type' => 'ManyToOne',
     324      'Table' => 'ServiceCustomerRel',
     325      'Id' => 'Id',
     326      'Ref' => 'SpeedLimit',
     327      'Filter' => '1',
    295328    ));
    296329    $this->System->FormManager->RegisterClass('NetworkInterfaceLatency', array(
Note: See TracChangeset for help on using the changeset viewer.