Changeset 887 for trunk/Modules/Task/Task.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Task/Task.php
r760 r887 3 3 class ModuleTask 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('Task', array( … … 89 89 )); 90 90 91 $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Task',92 array( 'ModuleTask', 'ShowDashboardItem'));91 ModuleIS::Cast($this->System->GetModule('IS'))->RegisterDashboardItem('Task', 92 array($this, 'ShowDashboardItem')); 93 93 } 94 94 95 function DoInstall() 95 function DoInstall(): void 96 96 { 97 98 97 } 99 98 100 function ShowDashboardItem() 99 function ShowDashboardItem(): string 101 100 { 102 101 $DbResult = $this->Database->select('Task', 'COUNT(*)', '`Progress` < 100');
Note:
See TracChangeset
for help on using the changeset viewer.