Changeset 912 for trunk/Packages/Common


Ignore:
Timestamp:
Aug 3, 2021, 11:38:29 AM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
Location:
trunk/Packages/Common
Files:
5 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");
  • trunk/Packages/Common/Modules/ModuleManager.php

    r900 r912  
    404404  {
    405405    parent::__construct($System);
    406     $this->FullTitle = T('Modules');
    407     $this->ShortTitle = T('Modules');
     406    $this->Title = T('Modules');
    408407    $this->ParentClass = 'PageSetup';
    409408    $this->YesNo = array(false => T('No'), true => T('Yes'));
  • trunk/Packages/Common/Modules/Setup.php

    r903 r912  
    7575  {
    7676    parent::__construct($System);
    77     $this->FullTitle = T('Application setup');
    78     $this->ShortTitle = T('Application setup');
     77    $this->Title = T('Application setup');
    7978    //$this->ParentClass = 'PageSetupRedirect';
    8079    $this->ConfigDir = dirname(dirname(dirname(__FILE__))).'/Config';
  • trunk/Packages/Common/Page.php

    r888 r912  
    33class Page extends View
    44{
    5   public string $FullTitle;
    6   public string $ShortTitle;
     5  public string $Title;
     6  public string $Description;
    77  public string $ParentClass;
    8   public bool $ClearPage;
     8  public bool $RawPage;
    99  public $OnSystemMessage;
    1010  public string $Load;
     
    1414  {
    1515    parent::__construct($System);
    16     $this->ClearPage = false;
     16    $this->RawPage = false;
    1717    $this->OnSystemMessage = array();
    18     $this->FullTitle = "";
    19     $this->ShortTitle = "";
     18    $this->Title = "";
     19    $this->Description = "";
    2020    $this->ParentClass = "";
    2121  }
  • trunk/Packages/Common/System.php

    r899 r912  
    134134    return $Target;
    135135  }
     136
     137  function AbsoluteLink(string $Target): string
     138  {
     139    return $Target;
     140  }
    136141}
Note: See TracChangeset for help on using the changeset viewer.