Changeset 887 for trunk/Modules/Subject/Subject.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Subject/Subject.php
r886 r887 3 3 class ModuleSubject 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('Subject', array( … … 127 127 'Filter' => '1', 128 128 )); 129 $this->System->ModuleManager->Modules['IS']->RegisterDashboardItem('Subject',130 array( 'ModuleSubject', 'ShowDashboardItem'));129 ModuleIS::Cast($this->System->GetModule('IS'))->RegisterDashboardItem('Subject', 130 array($this, 'ShowDashboardItem')); 131 131 } 132 132 133 function DoInstall() 133 function DoInstall(): void 134 134 { 135 135 $this->Database->query("CREATE TABLE IF NOT EXISTS `Subject` ( … … 173 173 } 174 174 175 function DoUninstall() 175 function DoUninstall(): void 176 176 { 177 177 $this->Database->query('DROP TABLE `Contact`'); … … 180 180 } 181 181 182 function ShowDashboardItem() 182 function ShowDashboardItem(): string 183 183 { 184 184 $DbResult = $this->Database->select('Subject', 'COUNT(*)', '1');
Note:
See TracChangeset
for help on using the changeset viewer.