Changeset 893 for trunk/Modules/User


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/User/User.php

    r890 r893  
    2323  }
    2424
    25   function DoInstall(): void
    26   {
    27     $this->InstallModel(User::GetDesc());
    28     $this->InstallModel(UserOnline::GetDesc());
    29     $this->InstallModel(PermissionGroup::GetDesc());
    30     $this->InstallModel(PermissionOperation::GetDesc());
    31     $this->InstallModel(PermissionGroupAssignment::GetDesc());
    32     $this->InstallModel(PermissionUserAssignment::GetDesc());
    33   }
    34 
    35   function DoUninstall(): void
    36   {
    37     $this->UninstallModel(PermissionUserAssignment::GetDesc());   
    38     $this->UninstallModel(PermissionGroupAssignment::GetDesc());
    39     $this->UninstallModel(PermissionOperation::GetDesc());
    40     $this->UninstallModel(PermissionGroup::GetDesc());
    41     $this->UninstallModel(UserOnline::GetDesc());       
    42     $this->UninstallModel(User::GetDesc());
     25  function GetModels(): array
     26  {
     27    return array('User', 'UserOnline', 'PermissionGroup', 'PermissionOperation', 'PermissionGroupAssignment', 'PermissionUserAssignment');
    4328  }
    4429
Note: See TracChangeset for help on using the changeset viewer.