Changeset 894 for trunk/Modules/Notify/Notify.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Notify/Notify.php
r893 r894 130 130 function GetModels(): array 131 131 { 132 return array( 'NotifyCategory', 'NotifyUser');132 return array(NotifyCategory::GetClassName(), NotifyUser::GetClassName()); 133 133 } 134 134 … … 190 190 static function GetDesc(): ModelDesc 191 191 { 192 $Desc = new ModelDesc( 'NotifyCategory');192 $Desc = new ModelDesc(self::GetClassName()); 193 193 $Desc->AddString('Name'); 194 194 $Desc->AddString('SysName'); … … 201 201 static function GetDesc(): ModelDesc 202 202 { 203 $Desc = new ModelDesc( 'NotifyUser');204 $Desc->AddReference('User', 'User');205 $Desc->AddReference('Contact', 'Contact');203 $Desc = new ModelDesc(self::GetClassName()); 204 $Desc->AddReference('User', User::GetClassName()); 205 $Desc->AddReference('Contact', Contact::GetClassName()); 206 206 $Desc->AddInteger('Period'); 207 207 return $Desc;
Note:
See TracChangeset
for help on using the changeset viewer.