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

Legend:

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

    r894 r899  
    33class Employee extends Model
    44{
    5   static function GetDesc(): ModelDesc
     5  static function GetModelDesc(): ModelDesc
    66  {
    77    $Desc = new ModelDesc(self::GetClassName());
     
    2020class EmployeeSalary extends Model
    2121{
    22   static function GetDesc(): ModelDesc
     22  static function GetModelDesc(): ModelDesc
    2323  {
    2424    $Desc = new ModelDesc(self::GetClassName());
     
    3131}
    3232
    33 class ModuleEmployee extends AppModule
     33class ModuleEmployee extends Module
    3434{
    3535  function __construct(System $System)
     
    3939    $this->Version = '1.0';
    4040    $this->Creator = 'Chronos';
    41     $this->License = 'GNU/GPL';
     41    $this->License = 'GNU/GPLv3';
    4242    $this->Description = 'Employee wages management';
    43     $this->Dependencies = array('User', 'Finance');
    44   }
    45 
    46   function GetModels(): array
    47   {
    48     return array(Employee::GetClassName(), EmployeeSalary::GetClassName());
     43    $this->Dependencies = array(ModuleUser::GetName(), ModuleFinance::GetName());
     44    $this->Models = array(Employee::GetClassName(), EmployeeSalary::GetClassName());
    4945  }
    5046
Note: See TracChangeset for help on using the changeset viewer.