Changeset 899 for trunk/Modules/Portal


Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (4 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Portal/Portal.php

    r896 r899  
    33include_once(dirname(__FILE__).'/../../Common/Global.php');
    44
    5 class ModulePortal extends AppModule
     5class ModulePortal extends Module
    66{
    77  function __construct(System $System)
     
    1313    $this->License = 'GNU/GPLv3';
    1414    $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());
    2117  }
    2218
     
    6561class PanelColumn extends Model
    6662{
    67   static function GetDesc(): ModelDesc
     63  static function GetModelDesc(): ModelDesc
    6864  {
    6965    $Desc = new ModelDesc(self::GetClassName());
     
    7571class Panel extends Model
    7672{
    77   static function GetDesc(): ModelDesc
     73  static function GetModelDesc(): ModelDesc
    7874  {
    7975    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.