Changeset 912 for trunk/Packages/Common/Database.php
- Timestamp:
- Aug 3, 2021, 11:38:29 AM (3 years ago)
- File:
-
- 1 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");
Note:
See TracChangeset
for help on using the changeset viewer.