Changeset 899 for trunk/Modules/Scheduler/Scheduler.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Scheduler/Scheduler.php
r894 r899 1 1 <?php 2 2 3 class ModuleScheduler extends AppModule3 class ModuleScheduler extends Module 4 4 { 5 5 function __construct(System $System) … … 9 9 $this->Version = '1.0'; 10 10 $this->Creator = 'Chronos'; 11 $this->License = 'GNU/GPL ';11 $this->License = 'GNU/GPLv3'; 12 12 $this->Description = 'Allow to setup and execute planned and recurring tasks'; 13 $this->Dependencies = array(); 14 } 15 16 function GetModels(): array 17 { 18 return array(SchedulerAction::GetClassName(), Scheduler::GetClassName()); 13 $this->Models = array(SchedulerAction::GetClassName(), Scheduler::GetClassName()); 19 14 } 20 15 … … 99 94 } 100 95 101 static function Cast( AppModule $AppModule): ModuleScheduler96 static function Cast(Module $Module): ModuleScheduler 102 97 { 103 if ($ AppModule instanceof ModuleScheduler)98 if ($Module instanceof ModuleScheduler) 104 99 { 105 return $ AppModule;100 return $Module; 106 101 } 107 throw new Exception('Expected ModuleScheduler type but got '.gettype($ AppModule));102 throw new Exception('Expected ModuleScheduler type but got '.gettype($Module)); 108 103 } 109 104 } … … 128 123 class Scheduler extends Model 129 124 { 130 static function Get Desc(): ModelDesc125 static function GetModelDesc(): ModelDesc 131 126 { 132 127 $Desc = new ModelDesc(self::GetClassName()); … … 145 140 class SchedulerAction extends Model 146 141 { 147 static function Get Desc(): ModelDesc142 static function GetModelDesc(): ModelDesc 148 143 { 149 144 $Desc = new ModelDesc(self::GetClassName());
Note:
See TracChangeset
for help on using the changeset viewer.