Changeset 899 for trunk/Modules/API/API.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/API/API.php
r894 r899 15 15 */ 16 16 17 class ModuleAPI extends AppModule17 class ModuleAPI extends Module 18 18 { 19 19 function __construct(System $System) … … 23 23 $this->Version = '1.0'; 24 24 $this->Creator = 'Chronos'; 25 $this->License = 'GNU/GPL ';25 $this->License = 'GNU/GPLv3'; 26 26 $this->Description = 'Remote API for support of other clients'; 27 $this->Dependencies = array('User'); 27 $this->Dependencies = array(ModuleUser::GetName()); 28 $this->Models = array(APIToken::GetClassName()); 28 29 } 29 30 … … 32 33 $this->System->RegisterPage(['api'], 'PageAPI'); 33 34 } 34 35 function GetModels(): array36 {37 return array(APIToken::GetClassName());38 }39 35 } 40 36 41 37 class ApiToken extends Model 42 38 { 43 static function Get Desc(): ModelDesc39 static function GetModelDesc(): ModelDesc 44 40 { 45 41 $Desc = new ModelDesc(self::GetClassName());
Note:
See TracChangeset
for help on using the changeset viewer.