Changeset 887 for trunk/Modules/Customer/Customer.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Customer/Customer.php
r874 r887 3 3 class ModuleCustomer extends AppModule 4 4 { 5 function __construct( $System)5 function __construct(System $System) 6 6 { 7 7 parent::__construct($System); … … 14 14 } 15 15 16 function DoStart() 16 function DoStart(): void 17 17 { 18 18 $this->System->FormManager->RegisterClass('Member', array( … … 187 187 )); 188 188 189 $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Customer',190 array( 'ModuleCustomer', 'ShowDashboardItem'));189 ModuleIS::Cast($this->System->GetModule('IS'))->RegisterDashboardItem('Customer', 190 array($this, 'ShowDashboardItem')); 191 191 } 192 192 193 function ShowDashboardItem() 193 function ShowDashboardItem(): string 194 194 { 195 195 $DbResult = $this->Database->select('Member', 'COUNT(*)', '1');
Note:
See TracChangeset
for help on using the changeset viewer.