Ignore:
Timestamp:
Aug 3, 2021, 11:38:29 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Database.php

    r901 r912  
    6060  }
    6161
    62   function Connect(string $Host, string $User, string $Password, string $Database)
     62  function Connect(string $Host, string $User, string $Password, string $Database): void
    6363  {
    6464    if ($this->Type == 'mysql') $ConnectionString = 'mysql:host='.$Host.';dbname='.$Database;
     
    7575  }
    7676
    77   function Disconnect()
     77  function Disconnect(): void
    7878  {
    7979    unset($this->PDO);
     
    166166  }
    167167
    168   function update(string $Table, string $Condition, array $Data)
     168  function update(string $Table, string $Condition, array $Data): void
    169169  {
    170170    $this->query($this->GetUpdate($Table, $Condition, $Data));
     
    187187  }
    188188
    189   function replace(string $Table, array $Data)
     189  function replace(string $Table, array $Data): void
    190190  {
    191191    $Name = '';
     
    208208  }
    209209
    210   function charset(string $Charset)
     210  function charset(string $Charset): void
    211211  {
    212212    $this->query('SET NAMES "'.$Charset.'"');
     
    223223  }
    224224
    225   public function __sleep()
     225  public function __sleep(): array
    226226  {
    227227    return array('LastQuery');
    228228  }
    229229
    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
    235235  {
    236236    //echo('|'."\n");
Note: See TracChangeset for help on using the changeset viewer.