Changeset 899 for trunk/Modules/Wiki/Wiki.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Wiki/Wiki.php
r897 r899 1 1 <?php 2 2 3 class ModuleWiki extends AppModule3 class ModuleWiki extends Module 4 4 { 5 5 function __construct(System $System) … … 11 11 $this->License = 'GNU/GPLv3'; 12 12 $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()); 20 15 } 21 16 … … 44 39 class WikiPage extends Model 45 40 { 46 static function Get Desc(): ModelDesc41 static function GetModelDesc(): ModelDesc 47 42 { 48 43 $Desc = new ModelDesc(self::GetClassName()); … … 56 51 class WikiPageContent extends Model 57 52 { 58 static function Get Desc(): ModelDesc53 static function GetModelDesc(): ModelDesc 59 54 { 60 55 $Desc = new ModelDesc(self::GetClassName());
Note:
See TracChangeset
for help on using the changeset viewer.