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

Legend:

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

    r896 r899  
    11<?php
    22
    3 class ModuleCustomer extends AppModule
     3class ModuleCustomer 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 = 'Customer management';
    13     $this->Dependencies = array('User', 'Finance');
     13    $this->Dependencies = array(ModuleUser::GetName(), ModuleFinance::GetName());
     14    $this->Models = array(Member::GetClassName(), MemberPayment::GetClassName(), SupportActivity::GetClassName(), ServiceCategory::GetClassName(),
     15      Service::GetClassName(), ServiceCustomerRel::GetClassName(), UserCustomerRel::GetClassName());
    1416  }
    1517
     
    199201  }
    200202
    201   function GetModels(): array
    202   {
    203     return array(Member::GetClassName(), MemberPayment::GetClassName(), SupportActivity::GetClassName(), ServiceCategory::GetClassName(),
    204       Service::GetClassName(), ServiceCustomerRel::GetClassName(), UserCustomerRel::GetClassName());
    205   }
    206 
    207203  function ShowDashboardItem(): string
    208204  {
     
    221217class Member extends Model
    222218{
    223   static function GetDesc(): ModelDesc
     219  static function GetModelDesc(): ModelDesc
    224220  {
    225221    $Desc = new ModelDesc(self::GetClassName());
     
    242238class MemberPayment extends Model
    243239{
    244   static function GetDesc(): ModelDesc
     240  static function GetModelDesc(): ModelDesc
    245241  {
    246242    $Desc = new ModelDesc(self::GetClassName());
     
    257253class Service extends Model
    258254{
    259   static function GetDesc(): ModelDesc
     255  static function GetModelDesc(): ModelDesc
    260256  {
    261257    $Desc = new ModelDesc(self::GetClassName());
     
    279275class ServiceCategory extends Model
    280276{
    281   static function GetDesc(): ModelDesc
     277  static function GetModelDesc(): ModelDesc
    282278  {
    283279    $Desc = new ModelDesc(self::GetClassName());
     
    289285class SupportActivity extends Model
    290286{
    291   static function GetDesc(): ModelDesc
     287  static function GetModelDesc(): ModelDesc
    292288  {
    293289    $Desc = new ModelDesc(self::GetClassName());
     
    302298class ServiceCustomerRel extends Model
    303299{
    304   static function GetDesc(): ModelDesc
     300  static function GetModelDesc(): ModelDesc
    305301  {
    306302    $Desc = new ModelDesc(self::GetClassName());
     
    315311class UserCustomerRel extends Model
    316312{
    317   static function GetDesc(): ModelDesc
     313  static function GetModelDesc(): ModelDesc
    318314  {
    319315    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.