Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (3 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Search/Search.php

    r894 r899  
    4747}
    4848
    49 class ModuleSearch extends AppModule
     49class ModuleSearch extends Module
    5050{
    5151  public array $Items;
     
    5858    $this->Version = '1.0';
    5959    $this->Creator = 'Chronos';
    60     $this->License = 'GNU/GPL';
     60    $this->License = 'GNU/GPLv3';
    6161    $this->Description = 'Allow search through registered content objects';
    62     $this->Dependencies = array();
     62
    6363    $this->MaxItemCount = 10;
    6464    $this->Items = array();
     
    7575  }
    7676
    77   static function Cast(AppModule $AppModule): ModuleSearch
     77  static function Cast(Module $Module): ModuleSearch
    7878  {
    79     if ($AppModule instanceof ModuleSearch)
     79    if ($Module instanceof ModuleSearch)
    8080    {
    81       return $AppModule;
     81      return $Module;
    8282    }
    83     throw new Exception('Expected ModuleSearch type but got '.gettype($AppModule));
     83    throw new Exception('Expected ModuleSearch type but got '.gettype($Module));
    8484  }
    8585}
Note: See TracChangeset for help on using the changeset viewer.