Changeset 894 for trunk/Modules/OpeningHours
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/OpeningHours/OpeningHours.php
r887 r894 228 228 } 229 229 230 function GetModels(): array 231 { 232 return array(SubjectOpenTime::GetClassName(), SubjectOpenTimeDay::GetClassName()); 233 } 234 230 235 function DoStart(): void 231 236 { … … 237 242 $this->System->UnregisterPage(['otviraci-doby']); 238 243 } 239 240 function DoInstall(): void 241 { 242 } 243 244 function DoUnInstall(): void 245 { 246 } 247 } 244 } 245 246 class SubjectOpenTime extends Model 247 { 248 static function GetDesc(): ModelDesc 249 { 250 $Desc = new ModelDesc(self::GetClassName()); 251 $Desc->AddReference('Subject', Subject::GetClassName()); 252 $Desc->AddDateTime('UpdateTime'); 253 $Desc->AddString('Notice'); 254 $Desc->AddString('Photo', File::GetClassName()); 255 return $Desc; 256 } 257 } 258 259 class SubjectOpenTimeDay extends Model 260 { 261 static function GetDesc(): ModelDesc 262 { 263 $Desc = new ModelDesc(self::GetClassName()); 264 $Desc->AddReference('Subject', Subject::GetClassName()); 265 $Desc->AddInteger('Day'); 266 $Desc->AddInteger('Open1'); 267 $Desc->AddInteger('Close1'); 268 $Desc->AddInteger('Open2'); 269 $Desc->AddInteger('Close2'); 270 return $Desc; 271 } 272 }
Note:
See TracChangeset
for help on using the changeset viewer.