Changeset 887 for trunk/Modules/TimeMeasure/Main.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/TimeMeasure/Main.php
r874 r887 3 3 class PageMeasure extends Page 4 4 { 5 var$GraphTimeRanges;6 var$DefaultVariables;7 var$ImageHeight;8 var$ImageWidth;9 10 function __construct( $System)5 public array $GraphTimeRanges; 6 public array $DefaultVariables; 7 public int $ImageHeight; 8 public int $ImageWidth; 9 10 function __construct(System $System) 11 11 { 12 12 parent::__construct($System); … … 23 23 ); 24 24 $this->GraphTimeRanges = array 25 (26 'hour' => array(27 'caption' => 'Hodina',28 'period' => 3600,29 ),30 'day' => array(31 'caption' => 'Den',32 'period' => 86400, // 3600 * 24,33 ),34 'week' => array(35 'caption' => 'Týden',36 'period' => 604800, // 3600 * 24 * 7,37 ),38 'month' => array(39 'caption' => 'Měsíc',40 'period' => 2592000, // 3600 * 24 * 30,41 ),42 'year' => array(43 'caption' => 'Rok',44 'period' => 31536000, // 3600 * 24 * 365,45 ),46 'years' => array(47 'caption' => 'Desetiletí',48 'period' => 315360000, // 3600 * 24 * 365 * 10,49 ),50 );25 ( 26 'hour' => array( 27 'caption' => 'Hodina', 28 'period' => 3600, 29 ), 30 'day' => array( 31 'caption' => 'Den', 32 'period' => 86400, // 3600 * 24, 33 ), 34 'week' => array( 35 'caption' => 'Týden', 36 'period' => 604800, // 3600 * 24 * 7, 37 ), 38 'month' => array( 39 'caption' => 'Měsíc', 40 'period' => 2592000, // 3600 * 24 * 30, 41 ), 42 'year' => array( 43 'caption' => 'Rok', 44 'period' => 31536000, // 3600 * 24 * 365, 45 ), 46 'years' => array( 47 'caption' => 'Desetiletí', 48 'period' => 315360000, // 3600 * 24 * 365 * 10, 49 ), 50 ); 51 51 } 52 52 … … 114 114 } 115 115 116 function Show() 116 function Show(): string 117 117 { 118 118 $Debug = 0; … … 182 182 } 183 183 184 function Graph() 184 function Graph(): string 185 185 { 186 186 $Output = '<strong>Graf:</strong><br/>'; … … 194 194 } 195 195 196 function MeasureTable() 196 function MeasureTable(): string 197 197 { 198 198 $PrefixMultiplier = new PrefixMultiplier(); … … 266 266 class PageMeasureAddValue extends Page 267 267 { 268 function Show() 268 function Show(): string 269 269 { 270 270 $this->ClearPage = true;
Note:
See TracChangeset
for help on using the changeset viewer.