Changeset 893 for trunk/Modules/File


Ignore:
Timestamp:
Jan 4, 2021, 9:55:40 PM (4 years ago)
Author:
chronos
Message:
  • Modified: More work on modules models initialization.
File:
1 edited

Legend:

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

    r891 r893  
    1919    $Desc->AddInteger('Size');
    2020    $Desc->AddReference('Directory', 'FileDirectory', true);
    21     $Desc->AddDateTime('Time');   
     21    $Desc->AddDateTime('Time');
    2222    return $Desc;
    2323  }
     
    192192  }
    193193
    194   function DoInstall(): void
    195   {
    196     $this->InstallModel(FileDirectory::GetDesc());
    197     $this->InstallModel(File::GetDesc());
    198   }
    199 
    200   function DoUninstall(): void
    201   {
    202     $this->UninstallModel(File::GetDesc());
    203     $this->UninstallModel(FileDirectory::GetDesc());
     194  function GetModels(): array
     195  {
     196    return array('FileDirectory', 'File');
    204197  }
    205198
Note: See TracChangeset for help on using the changeset viewer.