Changeset 912 for trunk/Packages/Common
- Timestamp:
- Aug 3, 2021, 11:38:29 AM (3 years ago)
- Location:
- trunk/Packages/Common
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Database.php
r901 r912 60 60 } 61 61 62 function Connect(string $Host, string $User, string $Password, string $Database) 62 function Connect(string $Host, string $User, string $Password, string $Database): void 63 63 { 64 64 if ($this->Type == 'mysql') $ConnectionString = 'mysql:host='.$Host.';dbname='.$Database; … … 75 75 } 76 76 77 function Disconnect() 77 function Disconnect(): void 78 78 { 79 79 unset($this->PDO); … … 166 166 } 167 167 168 function update(string $Table, string $Condition, array $Data) 168 function update(string $Table, string $Condition, array $Data): void 169 169 { 170 170 $this->query($this->GetUpdate($Table, $Condition, $Data)); … … 187 187 } 188 188 189 function replace(string $Table, array $Data) 189 function replace(string $Table, array $Data): void 190 190 { 191 191 $Name = ''; … … 208 208 } 209 209 210 function charset(string $Charset) 210 function charset(string $Charset): void 211 211 { 212 212 $this->query('SET NAMES "'.$Charset.'"'); … … 223 223 } 224 224 225 public function __sleep() 225 public function __sleep(): array 226 226 { 227 227 return array('LastQuery'); 228 228 } 229 229 230 public function __wakeup() 231 { 232 } 233 234 public function Transaction(array $Queries) 230 public function __wakeup(): void 231 { 232 } 233 234 public function Transaction(array $Queries): void 235 235 { 236 236 //echo('|'."\n"); -
trunk/Packages/Common/Modules/ModuleManager.php
r900 r912 404 404 { 405 405 parent::__construct($System); 406 $this->FullTitle = T('Modules'); 407 $this->ShortTitle = T('Modules'); 406 $this->Title = T('Modules'); 408 407 $this->ParentClass = 'PageSetup'; 409 408 $this->YesNo = array(false => T('No'), true => T('Yes')); -
trunk/Packages/Common/Modules/Setup.php
r903 r912 75 75 { 76 76 parent::__construct($System); 77 $this->FullTitle = T('Application setup'); 78 $this->ShortTitle = T('Application setup'); 77 $this->Title = T('Application setup'); 79 78 //$this->ParentClass = 'PageSetupRedirect'; 80 79 $this->ConfigDir = dirname(dirname(dirname(__FILE__))).'/Config'; -
trunk/Packages/Common/Page.php
r888 r912 3 3 class Page extends View 4 4 { 5 public string $ FullTitle;6 public string $ ShortTitle;5 public string $Title; 6 public string $Description; 7 7 public string $ParentClass; 8 public bool $ ClearPage;8 public bool $RawPage; 9 9 public $OnSystemMessage; 10 10 public string $Load; … … 14 14 { 15 15 parent::__construct($System); 16 $this-> ClearPage = false;16 $this->RawPage = false; 17 17 $this->OnSystemMessage = array(); 18 $this-> FullTitle = "";19 $this-> ShortTitle= "";18 $this->Title = ""; 19 $this->Description = ""; 20 20 $this->ParentClass = ""; 21 21 } -
trunk/Packages/Common/System.php
r899 r912 134 134 return $Target; 135 135 } 136 137 function AbsoluteLink(string $Target): string 138 { 139 return $Target; 140 } 136 141 }
Note:
See TracChangeset
for help on using the changeset viewer.