Changeset 894 for trunk/Modules/IS
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r893 r894 847 847 static function GetDesc(): ModelDesc 848 848 { 849 $Desc = new ModelDesc( 'Menu');849 $Desc = new ModelDesc(self::GetClassName()); 850 850 $Desc->AddString('Name'); 851 851 return $Desc; … … 857 857 static function GetDesc(): ModelDesc 858 858 { 859 $Desc = new ModelDesc( 'MenuItem');859 $Desc = new ModelDesc(self::GetClassName()); 860 860 $Desc->AddString('Name'); 861 $Desc->AddReference('Parent', 'MenuItem');862 $Desc->AddReference('Action', 'Action');863 $Desc->AddReference('Menu', 'Menu');861 $Desc->AddReference('Parent', MenuItem::GetClassName()); 862 $Desc->AddReference('Action', Action::GetClassName()); 863 $Desc->AddReference('Menu', Menu::GetClassName()); 864 864 return $Desc; 865 865 } … … 870 870 static function GetDesc(): ModelDesc 871 871 { 872 $Desc = new ModelDesc( 'MenuItemFavorite');873 $Desc->AddReference('User', 'User');874 $Desc->AddReference('MenuItem', 'MenuItem');872 $Desc = new ModelDesc(self::GetClassName()); 873 $Desc->AddReference('User', User::GetClassName()); 874 $Desc->AddReference('MenuItem', MenuItem::GetClassName()); 875 875 return $Desc; 876 876 } … … 897 897 function GetModels(): array 898 898 { 899 return array( 'Menu', 'MenuItem', 'MenuItemFavorite');899 return array(Menu::GetClassName(), MenuItem::GetClassName(), MenuItemFavorite::GetClassName()); 900 900 } 901 901
Note:
See TracChangeset
for help on using the changeset viewer.