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

Legend:

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

    r897 r899  
    11<?php
    22
    3 class ModuleWiki extends AppModule
     3class ModuleWiki extends Module
    44{
    55  function __construct(System $System)
     
    1111    $this->License = 'GNU/GPLv3';
    1212    $this->Description = 'Mediawiki style page management';
    13     $this->Dependencies = array('User');
    14     $this->Revision = 1;
    15   }
    16 
    17   function GetModels(): array
    18   {
    19     return array(WikiPage::GetClassName(), WikiPageContent::GetClassName());
     13    $this->Dependencies = array(ModuleUser::GetName());
     14    $this->Models = array(WikiPage::GetClassName(), WikiPageContent::GetClassName());
    2015  }
    2116
     
    4439class WikiPage extends Model
    4540{
    46   static function GetDesc(): ModelDesc
     41  static function GetModelDesc(): ModelDesc
    4742  {
    4843    $Desc = new ModelDesc(self::GetClassName());
     
    5651class WikiPageContent extends Model
    5752{
    58   static function GetDesc(): ModelDesc
     53  static function GetModelDesc(): ModelDesc
    5954  {
    6055    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.