Changeset 899 for trunk/Modules/Portal/Portal.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Portal/Portal.php
r896 r899 3 3 include_once(dirname(__FILE__).'/../../Common/Global.php'); 4 4 5 class ModulePortal extends AppModule5 class ModulePortal extends Module 6 6 { 7 7 function __construct(System $System) … … 13 13 $this->License = 'GNU/GPLv3'; 14 14 $this->Description = 'Community portal.'; 15 $this->Dependencies = array('News', 'User'); 16 } 17 18 function GetModels(): array 19 { 20 return array(Panel::GetClassName(), PanelColumn::GetClassName()); 15 $this->Dependencies = array(ModuleNews::GetName(), ModuleUser::GetName()); 16 $this->Models = array(Panel::GetClassName(), PanelColumn::GetClassName()); 21 17 } 22 18 … … 65 61 class PanelColumn extends Model 66 62 { 67 static function Get Desc(): ModelDesc63 static function GetModelDesc(): ModelDesc 68 64 { 69 65 $Desc = new ModelDesc(self::GetClassName()); … … 75 71 class Panel extends Model 76 72 { 77 static function Get Desc(): ModelDesc73 static function GetModelDesc(): ModelDesc 78 74 { 79 75 $Desc = new ModelDesc(self::GetClassName());
Note:
See TracChangeset
for help on using the changeset viewer.