Ignore:
Timestamp:
Dec 29, 2014, 12:43:16 AM (10 years ago)
Author:
chronos
Message:
  • Modified: Some FormType definition moved from global file to corresponding modules.
File:
1 edited

Legend:

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

    r679 r711  
    341341      ),
    342342    ));
     343    $this->System->FormManager->RegisterFormType('TNetworkDevice', array(
     344        'Type' => 'Reference',
     345        'Table' => 'NetworkDevice',
     346        'Id' => 'Id',
     347        'Name' => 'Name',
     348        'Filter' => '1',
     349    ));
     350    $this->System->FormManager->RegisterFormType('TNetworkDeviceType', array(
     351        'Type' => 'Reference',
     352        'Table' => 'NetworkDeviceType',
     353        'Id' => 'Id',
     354        'Name' => 'Name',
     355        'Filter' => '1',
     356    ));
     357    $this->System->FormManager->RegisterFormType('TNetworkInterface', array(
     358        'Type' => 'Reference',
     359        'Table' => 'NetworkInterface',
     360        'View' => '(SELECT NetworkInterface.*, CONCAT(NetworkDevice.Name, "-", NetworkInterface.Name) AS DeviceName FROM NetworkInterface '.
     361        'LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device) AS T',
     362        'Id' => 'Id',
     363        'Name' => 'DeviceName',
     364        'Filter' => '1',
     365    ));
     366    $this->System->FormManager->RegisterFormType('TNetworkInterfaceType', array(
     367        'Type' => 'Reference',
     368        'Table' => 'NetworkInterfaceType',
     369        'Id' => 'Id',
     370        'Name' => 'Name',
     371        'Filter' => '1',
     372    ));   
     373    $this->System->FormManager->RegisterFormType('TDeviceList', array(
     374      'Type' => 'ManyToOne',
     375      'Table' => 'NetworkDevice',
     376      'Id' => 'Id',
     377      'Ref' => 'Member',
     378      'Filter' => '1',
     379    ));
     380    $this->System->FormManager->RegisterFormType('TDeviceListAPI', array(
     381      'Type' => 'ManyToOne',
     382      'Table' => 'NetworkDevice',
     383      'Id' => 'Id',
     384      'Ref' => 'API',
     385      'Filter' => '1',
     386    ));
     387    $this->System->FormManager->RegisterFormType('TDeviceAPIType', array(
     388      'Type' => 'Reference',
     389        'Table' => 'DeviceAPIType',
     390        'Id' => 'Id',
     391        'Name' => 'Name',
     392        'Filter' => '1',
     393    ));   
     394    $this->System->FormManager->RegisterFormType('TNetworkInterfaceWirelessListInterface', array(
     395      'Type' => 'ManyToOne',
     396      'Table' => 'NetworkInterfaceWireless',
     397      'Id' => 'Id',
     398      'Ref' => 'NetworkInterface',
     399      'Filter' => '1',
     400    ));
     401    $this->System->FormManager->RegisterFormType('TInterfaceList', array(
     402      'Type' => 'ManyToOne',
     403      'Table' => 'NetworkInterface',
     404      'Id' => 'Id',
     405      'Ref' => 'Device',
     406      'Filter' => '1',
     407    ));
    343408  }
    344409
Note: See TracChangeset for help on using the changeset viewer.