Changeset 887 for trunk/Modules/TimeMeasure
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- Location:
- trunk/Modules/TimeMeasure
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/TimeMeasure/Graph.php
r874 r887 9 9 var $DefaultHeight; 10 10 11 function __construct( $System)11 function __construct(System $System) 12 12 { 13 13 parent::__construct($System); … … 17 17 } 18 18 19 function Show() 19 function Show(): string 20 20 { 21 21 $this->ClearPage = true; 22 return $this->Render(); 22 $this->Render(); 23 return ''; 23 24 } 24 25 25 function Render() 26 function Render(): void 26 27 { 27 28 $PrefixMultiplier = new PrefixMultiplier(); -
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; -
trunk/Modules/TimeMeasure/TimeMeasure.php
r738 r887 7 7 class ModuleTimeMeasure extends AppModule 8 8 { 9 function __construct( $System)9 function __construct(System $System) 10 10 { 11 11 parent::__construct($System); … … 18 18 } 19 19 20 function DoInstall() 20 function DoInstall(): void 21 21 { 22 22 } 23 23 24 function DoUnInstall() 24 function DoUnInstall(): void 25 25 { 26 26 } 27 27 28 function DoStart() 28 function DoStart(): void 29 29 { 30 $this->System->RegisterPage( 'grafy', 'PageMeasure');31 $this->System->RegisterPage( array('grafy', 'graf.png'), 'PageGraph');32 $this->System->RegisterPage( array('grafy', 'add.php'), 'PageMeasureAddValue');30 $this->System->RegisterPage(['grafy'], 'PageMeasure'); 31 $this->System->RegisterPage(['grafy', 'graf.png'], 'PageGraph'); 32 $this->System->RegisterPage(['grafy', 'add.php'], 'PageMeasureAddValue'); 33 33 $this->System->FormManager->RegisterClass('Measure', array( 34 34 'Title' => 'Měření', … … 50 50 } 51 51 52 function DoStop() 52 function DoStop(): void 53 53 { 54 54 }
Note:
See TracChangeset
for help on using the changeset viewer.