Ignore:
Timestamp:
Nov 24, 2020, 10:58:56 AM (4 years ago)
Author:
chronos
Message:
  • Modified: More static types added.
File:
1 edited

Legend:

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

    r874 r888  
    33class Measure extends Model
    44{
    5   var $Data;
    6   var $LevelReducing = 5;
    7   var $ReferenceTime = 0;
    8   var $MaxLevel = 4;
    9   var $Differential = 0;
    10   var $Debug = 0;
    11   var $DivisionCount = 500;
    12   var $ValueTypes = array('Min', 'Avg', 'Max');
    13 
    14   function Load($Id)
     5  public array $Data;
     6  public int $LevelReducing = 5;
     7  public int $ReferenceTime = 0;
     8  public int $MaxLevel = 4;
     9  public int $Differential = 0;
     10  public int $Debug = 0;
     11  public int $DivisionCount = 500;
     12  public array $ValueTypes = array('Min', 'Avg', 'Max');
     13
     14  function Load(int $Id): void
    1515  {
    1616    $Result = $this->Database->select('Measure', '*', 'Id='.$Id);
     
    2828  }
    2929
    30   function StatTableName($Level)
     30  function StatTableName(int $Level): string
    3131  {
    3232    if ($Level == 0) return 'Data';
     
    419419    // Load measures
    420420    $Measures = array();
    421     $Result = $Database->select('Measure', '*');
     421    $Result = $this->Database->select('Measure', '*');
    422422    while ($Row = $Result->fetch_assoc())
    423423    {
    424       $Measures = new Measure();
     424      $Measure = new Measure($this->System);
    425425      $Measure->Load($Row['Id']);
    426426    }
Note: See TracChangeset for help on using the changeset viewer.