Changeset 894 for trunk/Modules/Subject/Subject.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Subject/Subject.php
r893 r894 133 133 function GetModels(): array 134 134 { 135 return array('Country', 'Subject', 'ContactCategory', 'Contact'); 135 return array(Country::GetClassName(), Subject::GetClassName(), ContactCategory::GetClassName(), 136 Contact::GetClassName()); 136 137 } 137 138 … … 149 150 static function GetDesc(): ModelDesc 150 151 { 151 $Desc = new ModelDesc( 'Subject');152 $Desc = new ModelDesc(self::GetClassName()); 152 153 $Desc->AddString('Name'); 153 154 $Desc->AddString('AddressStreet'); 154 155 $Desc->AddString('AddressTown'); 155 156 $Desc->AddString('AddressPSC'); 156 $Desc->AddReference('AddressCountry', 'Country', true);157 $Desc->AddReference('AddressCountry', Country::GetClassName(), true); 157 158 $Desc->AddString('IC'); 158 159 $Desc->AddString('DIC'); 159 160 $Desc->AddBoolean('PayVAT'); 160 $Desc->AddReference('MapPosition', 'MapPosition', true);161 $Desc->AddReference('MapPosition', MapPosition::GetClassName(), true); 161 162 $Desc->AddString('WWW'); 162 163 $Desc->AddString('Note'); … … 169 170 static function GetDesc(): ModelDesc 170 171 { 171 $Desc = new ModelDesc( 'Country');172 $Desc = new ModelDesc(self::GetClassName()); 172 173 $Desc->AddString('Name'); 173 174 return $Desc; … … 179 180 static function GetDesc(): ModelDesc 180 181 { 181 $Desc = new ModelDesc( 'Contact');182 $Desc->AddReference('Category', 'ContactCategory', true);182 $Desc = new ModelDesc(self::GetClassName()); 183 $Desc->AddReference('Category', ContactCategory::GetClassName(), true); 183 184 $Desc->AddString('Value'); 184 $Desc->AddReference('Subject', 'Subject', true);185 $Desc->AddReference('User', 'User', true);185 $Desc->AddReference('Subject', Subject::GetClassName(), true); 186 $Desc->AddReference('User', User::GetClassName(), true); 186 187 $Desc->AddString('Description'); 187 188 $Desc->AddBoolean('Receive'); … … 194 195 static function GetDesc(): ModelDesc 195 196 { 196 $Desc = new ModelDesc( 'ContactCategory');197 $Desc = new ModelDesc(self::GetClassName()); 197 198 $Desc->AddString('Name'); 198 199 return $Desc;
Note:
See TracChangeset
for help on using the changeset viewer.