Changeset 899 for trunk/Modules/IS/IS.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r894 r899 845 845 class Menu extends Model 846 846 { 847 static function Get Desc(): ModelDesc847 static function GetModelDesc(): ModelDesc 848 848 { 849 849 $Desc = new ModelDesc(self::GetClassName()); … … 855 855 class MenuItem extends Model 856 856 { 857 static function Get Desc(): ModelDesc857 static function GetModelDesc(): ModelDesc 858 858 { 859 859 $Desc = new ModelDesc(self::GetClassName()); … … 868 868 class MenuItemFavorite extends Model 869 869 { 870 static function Get Desc(): ModelDesc870 static function GetModelDesc(): ModelDesc 871 871 { 872 872 $Desc = new ModelDesc(self::GetClassName()); … … 877 877 } 878 878 879 class ModuleIS extends AppModule879 class ModuleIS extends Module 880 880 { 881 881 public array $DashboardItems; … … 890 890 $this->License = 'GNU/GPLv3'; 891 891 $this->Description = 'User interface for generic information system'; 892 $this->Dependencies = array('User'); 892 $this->Dependencies = array(ModuleUser::GetName()); 893 $this->Models = array(Menu::GetClassName(), MenuItem::GetClassName(), MenuItemFavorite::GetClassName()); 893 894 894 895 $this->DashboardItems = array(); 895 }896 897 function GetModels(): array898 {899 return array(Menu::GetClassName(), MenuItem::GetClassName(), MenuItemFavorite::GetClassName());900 896 } 901 897 … … 956 952 } 957 953 958 static function Cast( AppModule $AppModule): ModuleIS959 { 960 if ($ AppModule instanceof ModuleIS)961 { 962 return $ AppModule;963 } 964 throw new Exception('Expected ModuleIS type but '.gettype($ AppModule));954 static function Cast(Module $Module): ModuleIS 955 { 956 if ($Module instanceof ModuleIS) 957 { 958 return $Module; 959 } 960 throw new Exception('Expected ModuleIS type but '.gettype($Module)); 965 961 } 966 962 }
Note:
See TracChangeset
for help on using the changeset viewer.