Changeset 894 for trunk/Modules/Task
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Task/Task.php
r893 r894 16 16 function GetModels(): array 17 17 { 18 return array( 'TaskGroup', 'Task', 'Work');18 return array(TaskGroup::GetClassName(), Task::GetClassName(), Work::GetClassName()); 19 19 } 20 20 … … 111 111 static function GetDesc(): ModelDesc 112 112 { 113 $Desc = new ModelDesc( 'Task');113 $Desc = new ModelDesc(self::GetClassName()); 114 114 $Desc->AddString('Name'); 115 115 $Desc->AddDate('TimeCreate'); … … 119 119 $Desc->AddBoolean('Public'); 120 120 $Desc->AddInteger('Progress'); 121 $Desc->AddReference('Group', 'TaskGroup');121 $Desc->AddReference('Group', TaskGroup::GetClassName()); 122 122 $Desc->AddString('Description'); 123 123 $Desc->AddText('Conclusion'); 124 $Desc->AddReference('AssignedTo', 'User');124 $Desc->AddReference('AssignedTo', User::GetClassName()); 125 125 return $Desc; 126 126 } … … 131 131 static function GetDesc(): ModelDesc 132 132 { 133 $Desc = new ModelDesc( 'TaskGroup');133 $Desc = new ModelDesc(self::GetClassName()); 134 134 $Desc->AddString('Name'); 135 135 $Desc->AddText('Description'); 136 $Desc->AddReference('Parent', 'TaskGroup');136 $Desc->AddReference('Parent', TaskGroup::GetClassName()); 137 137 return $Desc; 138 138 } … … 143 143 static function GetDesc(): ModelDesc 144 144 { 145 $Desc = new ModelDesc( 'Work');145 $Desc = new ModelDesc(self::GetClassName()); 146 146 $Desc->AddString('Name'); 147 147 $Desc->AddText('Description'); 148 148 $Desc->AddDateTime('TimeStart'); 149 149 $Desc->AddFloat('Duration'); 150 $Desc->AddReference('User', 'User');151 $Desc->AddReference('Task', 'Task');150 $Desc->AddReference('User', User::GetClassName()); 151 $Desc->AddReference('Task', Task::GetClassName()); 152 152 return $Desc; 153 153 }
Note:
See TracChangeset
for help on using the changeset viewer.