Changeset 817 for trunk/Modules/Network/Network.php
- Timestamp:
- Mar 16, 2016, 8:51:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r815 r817 171 171 'API' => array('Type' => 'TDeviceAPIType', 'Caption' => 'API', 'Default' => '', 'Null' => true), 172 172 ), 173 'AfterInsert' => array($this, 'AfterInsertNetworkDevice'), 174 'AfterModify' => array($this, 'AfterModifyNetworkDevice'), 175 'AfterDelete' => array($this, 'AfterModifyNetworkDevice'), 173 176 )); 174 177 $this->System->FormManager->RegisterClass('NetworkDeviceType', array( … … 201 204 'Ports' => array('Type' => 'TDevicePortListInterface', 'Caption' => 'Síťové porty', 'Default' => ''), 202 205 ), 206 'AfterInsert' => array($this, 'AfterInsertNetworkInterface'), 207 'AfterModify' => array($this, 'AfterModifyNetworkInterface'), 208 'AfterDelete' => array($this, 'AfterModifyNetworkInterface'), 203 209 )); 204 210 $this->System->FormManager->RegisterClass('NetworkInterfaceType', array( … … 594 600 $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Network', 595 601 array('ModuleNetwork', 'ShowDashboardItem')); 596 } 597 602 603 $this->System->RegisterModel('NetworkDevice', array( 604 'Title' => 'Síťové zařízení', 605 )); 606 $this->System->RegisterModel('NetworkInterface', array( 607 'Title' => 'Síťové rozhraní', 608 )); 609 } 610 611 function AfterInsertNetworkDevice($Form) 612 { 613 $this->System->Models['NetworkDevice']->DoOnChange(); 614 } 615 616 function AfterModifyNetworkDevice($Form, $Id) 617 { 618 $this->System->Models['NetworkDevice']->DoOnChange(); 619 } 620 621 function AfterInsertNetworkInterface($Form) 622 { 623 $this->System->Models['NetworkInterface']->DoOnChange(); 624 } 625 626 function AfterModifyNetworkInterface($Form, $Id) 627 { 628 $this->System->Models['NetworkInterface']->DoOnChange(); 629 } 630 598 631 function ShowDashboardItem() 599 632 {
Note:
See TracChangeset
for help on using the changeset viewer.