Ignore:
Timestamp:
Jan 4, 2021, 9:55:40 PM (4 years ago)
Author:
chronos
Message:
  • Modified: More work on modules models initialization.
Location:
trunk/Modules/TimeMeasure
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/TimeMeasure/Measure.php

    r888 r893  
    1111  public int $DivisionCount = 500;
    1212  public array $ValueTypes = array('Min', 'Avg', 'Max');
     13
     14  static function GetDesc(): ModelDesc
     15  {
     16    $Desc = new ModelDesc('Measure');
     17    $Desc->AddString('Name');
     18    $Desc->AddString('Title');
     19    $Desc->AddString('Description');
     20    $Desc->AddString('Unit');
     21    $Desc->AddBoolean('Continuity');
     22    $Desc->AddInteger('Period');
     23    $Desc->AddString('PermissionAdd');
     24    $Desc->AddString('PermissionView');
     25    $Desc->AddBoolean('Enabled');
     26    $Desc->AddString('DataType');
     27    $Desc->AddString('DataTable');
     28    return $Desc;
     29  }
    1330
    1431  function Load(int $Id): void
  • trunk/Modules/TimeMeasure/TimeMeasure.php

    r887 r893  
    1818  }
    1919
    20   function DoInstall(): void
     20  function GetModels(): array
    2121  {
    22   }
    23 
    24   function DoUnInstall(): void
    25   {
     22    return array('Measure');
    2623  }
    2724
     
    4946    ));
    5047  }
    51 
    52   function DoStop(): void
    53   {
    54   }
    5548}
Note: See TracChangeset for help on using the changeset viewer.