source: trunk/Modules/System/SystemModels.php@ 895

Last change on this file since 895 was 895, checked in by chronos, 4 years ago
  • Modified: Setup is now AppModule and it is installed and stated as first module.
  • Modified: Improved modular system.
File size: 1.6 KB
Line 
1<?php
2
3class UnitOfMeasure extends Model
4{
5 static function GetDesc(): ModelDesc
6 {
7 $Desc = new ModelDesc(self::GetClassName());
8 $Desc->AddString('Name');
9 $Desc->AddString('Unit');
10 return $Desc;
11 }
12}
13
14class Action extends Model
15{
16 static function GetDesc(): ModelDesc
17 {
18 $Desc = new ModelDesc(self::GetClassName());
19 $Desc->AddString('Title');
20 $Desc->AddString('URL');
21 $Desc->AddReference('Icon', ActionIcon::GetClassName());
22 $Desc->AddReference('Type', ActionType::GetClassName());
23 $Desc->AddReference('Group', ActionGroup::GetClassName());
24 $Desc->AddReference('PermissionOperation', PermissionOperation::GetClassName());
25 $Desc->AddBoolean('Enable');
26 return $Desc;
27 }
28}
29
30class ActionIcon extends Model
31{
32 static function GetDesc(): ModelDesc
33 {
34 $Desc = new ModelDesc(self::GetClassName());
35 $Desc->AddString('Name');
36 return $Desc;
37 }
38}
39
40class ActionGroup extends Model
41{
42 static function GetDesc(): ModelDesc
43 {
44 $Desc = new ModelDesc(self::GetClassName());
45 $Desc->AddString('Name');
46 return $Desc;
47 }
48}
49
50class ActionType extends Model
51{
52 static function GetDesc(): ModelDesc
53 {
54 $Desc = new ModelDesc(self::GetClassName());
55 $Desc->AddString('Name');
56 return $Desc;
57 }
58}
59
60class Language extends Model
61{
62 static function GetDesc(): ModelDesc
63 {
64 $Desc = new ModelDesc(self::GetClassName());
65 $Desc->AddString('Name');
66 return $Desc;
67 }
68}
69
70class Country extends Model
71{
72 static function GetDesc(): ModelDesc
73 {
74 $Desc = new ModelDesc(self::GetClassName());
75 $Desc->AddString('Name');
76 return $Desc;
77 }
78}
Note: See TracBrowser for help on using the repository browser.