Changeset 887 for trunk/Application/View.php
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/View.php
r874 r887 6 6 { 7 7 var $TimeStart; 8 var$FormatHTML = false;9 var$ShowRuntimeInfo = false;10 var$ClearPage = false;11 var$BasicHTML = false;12 var$ParentClass = '';13 var$ShortTitle;14 var$FullTitle;15 var$Encoding;16 var$Style;8 public bool $FormatHTML = false; 9 public bool $ShowRuntimeInfo = false; 10 public bool $ClearPage = false; 11 public bool $BasicHTML = false; 12 public string $ParentClass = ''; 13 public string $ShortTitle; 14 public string $FullTitle; 15 public string $Encoding; 16 public string $Style; 17 17 18 function __construct( $System)18 function __construct(System $System) 19 19 { 20 20 parent::__construct($System); … … 36 36 } 37 37 38 function SystemMessage( $Title, $Text)38 function SystemMessage(string $Title, string $Text): string 39 39 { 40 40 return '<table align="center"><tr><td><div class="SystemMessage"><h3>'.$Title.'</h3><div>'.$Text.'</div></div></td></tr></table>'; … … 43 43 } 44 44 45 function ShowNavigation( $Page)45 function ShowNavigation(Page $Page): string 46 46 { 47 47 if (array_key_exists('REQUEST_URI', $_SERVER)) … … 71 71 } 72 72 73 function ShowHeader( $Page)73 function ShowHeader(Page $Page): string 74 74 { 75 75 $Title = $Page->FullTitle; … … 109 109 } 110 110 111 function ShowFooter() 111 function ShowFooter(): string 112 112 { 113 113 global $ScriptTimeStart, $Revision, $ReleaseTime; … … 128 128 } 129 129 130 function GetOutput( $Page)130 function GetOutput(Page $Page): string 131 131 { 132 132 $Page->OnSystemMessage = array($this->System->BaseView, 'SystemMessage'); … … 141 141 } 142 142 143 function NewPage( $ClassName)143 function NewPage(string $ClassName): Page 144 144 { 145 145 $Page = new $ClassName(); … … 151 151 152 152 // XML formating function 153 function FormatOutput( $s)153 function FormatOutput(string $s): string 154 154 { 155 155 $out = '';
Note:
See TracChangeset
for help on using the changeset viewer.