Changeset 894 for trunk/Modules/API/API.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/API/API.php
r893 r894 35 35 function GetModels(): array 36 36 { 37 return array( 'APIToken');37 return array(APIToken::GetClassName()); 38 38 } 39 39 } … … 43 43 static function GetDesc(): ModelDesc 44 44 { 45 $Desc = new ModelDesc( 'APIToken');46 $Desc->AddReference('User', 'User');45 $Desc = new ModelDesc(self::GetClassName()); 46 $Desc->AddReference('User', User::GetClassName()); 47 47 $Desc->AddString('Token'); 48 48 return $Desc;
Note:
See TracChangeset
for help on using the changeset viewer.