Changeset 894 for trunk/Modules/Employee
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Employee/Employee.php
r893 r894 5 5 static function GetDesc(): ModelDesc 6 6 { 7 $Desc = new ModelDesc( 'Employee');7 $Desc = new ModelDesc(self::GetClassName()); 8 8 $Desc->AddDateTime('Time'); 9 9 $Desc->AddString('To'); … … 13 13 $Desc->AddBoolean('Archive'); 14 14 $Desc->AddString('From'); 15 $Desc->AddReference('AttachmentFile', 'File');15 $Desc->AddReference('AttachmentFile', File::GetClassName()); 16 16 return $Desc; 17 17 } … … 22 22 static function GetDesc(): ModelDesc 23 23 { 24 $Desc = new ModelDesc( 'EmployeeSalary');24 $Desc = new ModelDesc(self::GetClassName()); 25 25 $Desc->AddDate('Date'); 26 $Desc->AddReference('Employee', 'Employee');26 $Desc->AddReference('Employee', Employee::GetClassName()); 27 27 $Desc->AddInteger('Amount'); 28 $Desc->AddReference('Contract', 'Contract');28 $Desc->AddReference('Contract', Contract::GetClassName()); 29 29 return $Desc; 30 30 } … … 46 46 function GetModels(): array 47 47 { 48 return array( 'Employee', 'EmployeeSalary');48 return array(Employee::GetClassName(), EmployeeSalary::GetClassName()); 49 49 } 50 50
Note:
See TracChangeset
for help on using the changeset viewer.