Changeset 95 for trunk/Global.php
- Timestamp:
- Dec 6, 2021, 11:33:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Global.php
r92 r95 5 5 include_once('Packages/Common/Common.php'); 6 6 7 function HumanDate( $Time)7 function HumanDate(int $Time): string 8 8 { 9 9 return date('j.n.Y', $Time); 10 10 } 11 11 12 function GetMicrotime() 12 function GetMicrotime(): string 13 13 { 14 14 list($Usec, $Sec) = explode(" ", microtime()); … … 16 16 } 17 17 18 function MakeLink( $Target, $Title)18 function MakeLink(string $Target, string $Title): string 19 19 { 20 20 return '<a href="'.$Target.'">'.$Title.'</a>'; 21 21 } 22 22 23 function Table( $Table)23 function Table(array $Table): string 24 24 { 25 25 $Result = '<table cellspacing="0" class="BasicTable">'; … … 39 39 } 40 40 41 function ShowEditTable( $ClassName, $Values)41 function ShowEditTable(string $ClassName, array $Values): string 42 42 { 43 43 global $Classes, $Types; … … 72 72 } 73 73 74 function ProcessURL() 74 function ProcessURL(): array 75 75 { 76 76 if (array_key_exists('REDIRECT_QUERY_STRING', $_SERVER)) … … 86 86 } 87 87 88 function GetQueryStringArray( $QueryString)88 function GetQueryStringArray(string $QueryString): array 89 89 { 90 90 $Result = array(); … … 102 102 } 103 103 104 function SetQueryStringArray( $QueryStringArray)104 function SetQueryStringArray(array $QueryStringArray): string 105 105 { 106 106 $Parts = array();
Note:
See TracChangeset
for help on using the changeset viewer.