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

Legend:

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

    r897 r899  
    11<?php
    22
    3 class ModuleSubject extends AppModule
     3class ModuleSubject extends Module
    44{
    55  function __construct(System $System)
     
    99    $this->Version = '1.0';
    1010    $this->Creator = 'Chronos';
    11     $this->License = 'GNU/GPL';
     11    $this->License = 'GNU/GPLv3';
    1212    $this->Description = 'Subject management';
    13     $this->Dependencies = array('User', 'Map');
     13    $this->Dependencies = array(ModuleUser::GetName(), ModuleMap::GetName());
     14    $this->Models = array(Subject::GetClassName(), ContactCategory::GetClassName(),
     15      Contact::GetClassName());
    1416  }
    1517
     
    131133  }
    132134
    133   function GetModels(): array
    134   {
    135     return array(Subject::GetClassName(), ContactCategory::GetClassName(),
    136       Contact::GetClassName());
    137   }
    138 
    139135  function ShowDashboardItem(): string
    140136  {
     
    148144class Subject extends Model
    149145{
    150   static function GetDesc(): ModelDesc
     146  static function GetModelDesc(): ModelDesc
    151147  {
    152148    $Desc = new ModelDesc(self::GetClassName());
     
    168164class Contact extends Model
    169165{
    170   static function GetDesc(): ModelDesc
     166  static function GetModelDesc(): ModelDesc
    171167  {
    172168    $Desc = new ModelDesc(self::GetClassName());
     
    183179class ContactCategory extends Model
    184180{
    185   static function GetDesc(): ModelDesc
     181  static function GetModelDesc(): ModelDesc
    186182  {
    187183    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.