Changeset 899 for trunk/Modules/Task


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

Legend:

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

    r894 r899  
    11<?php
    22
    3 class ModuleTask extends AppModule
     3class ModuleTask 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 = 'Work and task management';
    13     $this->Dependencies = array('User');
    14   }
    15 
    16   function GetModels(): array
    17   {
    18     return array(TaskGroup::GetClassName(), Task::GetClassName(), Work::GetClassName());
     13    $this->Dependencies = array(ModuleUser::GetName());
     14    $this->Models = array(TaskGroup::GetClassName(), Task::GetClassName(), Work::GetClassName());
    1915  }
    2016
     
    109105class Task extends Model
    110106{
    111   static function GetDesc(): ModelDesc
     107  static function GetModelDesc(): ModelDesc
    112108  {
    113109    $Desc = new ModelDesc(self::GetClassName());
     
    129125class TaskGroup extends Model
    130126{
    131   static function GetDesc(): ModelDesc
     127  static function GetModelDesc(): ModelDesc
    132128  {
    133129    $Desc = new ModelDesc(self::GetClassName());
     
    141137class Work extends Model
    142138{
    143   static function GetDesc(): ModelDesc
     139  static function GetModelDesc(): ModelDesc
    144140  {
    145141    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.