Changeset 888 for trunk/Modules/TimeMeasure/Measure.php
- Timestamp:
- Nov 24, 2020, 10:58:56 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/TimeMeasure/Measure.php
r874 r888 3 3 class Measure extends Model 4 4 { 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 15 15 { 16 16 $Result = $this->Database->select('Measure', '*', 'Id='.$Id); … … 28 28 } 29 29 30 function StatTableName( $Level)30 function StatTableName(int $Level): string 31 31 { 32 32 if ($Level == 0) return 'Data'; … … 419 419 // Load measures 420 420 $Measures = array(); 421 $Result = $ Database->select('Measure', '*');421 $Result = $this->Database->select('Measure', '*'); 422 422 while ($Row = $Result->fetch_assoc()) 423 423 { 424 $Measure s = new Measure();424 $Measure = new Measure($this->System); 425 425 $Measure->Load($Row['Id']); 426 426 }
Note:
See TracChangeset
for help on using the changeset viewer.