Changeset 894 for trunk/Modules/System/System.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/System/System.php
r893 r894 111 111 } 112 112 113 function GetModels(): array 114 { 115 return array(UnitOfMeasure::GetClassName(), ActionIcon::GetClassName(), ActionGroup::GetClassName(), 116 ActionType::GetClassName(), Action::GetClassName(), Language::GetClassName(), Country::GetClassName()); 117 } 118 113 119 function DoInstall(): void 114 120 { … … 538 544 } 539 545 } 546 547 class UnitOfMeasure extends Model 548 { 549 static function GetDesc(): ModelDesc 550 { 551 $Desc = new ModelDesc(self::GetClassName()); 552 $Desc->AddString('Name'); 553 $Desc->AddString('Unit'); 554 return $Desc; 555 } 556 } 557 558 class Action extends Model 559 { 560 static function GetDesc(): ModelDesc 561 { 562 $Desc = new ModelDesc(self::GetClassName()); 563 $Desc->AddString('Title'); 564 $Desc->AddString('URL'); 565 $Desc->AddReference('Icon', ActionIcon::GetClassName()); 566 $Desc->AddReference('Type', ActionType::GetClassName()); 567 $Desc->AddReference('Group', ActionGroup::GetClassName()); 568 $Desc->AddReference('PermissionOperation', PermissionOperation::GetClassName()); 569 $Desc->AddBoolean('Enable'); 570 return $Desc; 571 } 572 } 573 574 class ActionIcon extends Model 575 { 576 static function GetDesc(): ModelDesc 577 { 578 $Desc = new ModelDesc(self::GetClassName()); 579 $Desc->AddString('Name'); 580 return $Desc; 581 } 582 } 583 584 class ActionGroup extends Model 585 { 586 static function GetDesc(): ModelDesc 587 { 588 $Desc = new ModelDesc(self::GetClassName()); 589 $Desc->AddString('Name'); 590 return $Desc; 591 } 592 } 593 594 class ActionType extends Model 595 { 596 static function GetDesc(): ModelDesc 597 { 598 $Desc = new ModelDesc(self::GetClassName()); 599 $Desc->AddString('Name'); 600 return $Desc; 601 } 602 } 603 604 class Language extends Model 605 { 606 static function GetDesc(): ModelDesc 607 { 608 $Desc = new ModelDesc(self::GetClassName()); 609 $Desc->AddString('Name'); 610 return $Desc; 611 } 612 } 613 614 class Country extends Model 615 { 616 static function GetDesc(): ModelDesc 617 { 618 $Desc = new ModelDesc(self::GetClassName()); 619 $Desc->AddString('Name'); 620 return $Desc; 621 } 622 } 623
Note:
See TracChangeset
for help on using the changeset viewer.