Changeset 5 for Common/AppModule.php


Ignore:
Timestamp:
Jan 10, 2016, 12:16:44 AM (8 years ago)
Author:
chronos
Message:
  • Added: Logging support to Database class.
  • Modified: Page class use just $Title field instead two Short and Long titles.
  • Modified: Page class use RawPage instead ClearPage field.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/AppModule.php

    r4 r5  
    231231    foreach($Module->Dependencies as $Dependency)
    232232    {
     233      if(!array_key_exists($Dependency, $this->Modules))
     234        throw new Exception('Module "'.$Module->Name.'" dependency "'.$Dependency.'" not found');
    233235      $DepModule = $this->Modules[$Dependency];
    234236      if(in_array(ModuleCondition::All, $Conditions) or
     
    287289  }
    288290
     291  function InstallAll()
     292  {
     293    $this->Perform($this->Modules, array(ModuleAction::Install));
     294    $this->SaveState();
     295  }
     296
    289297  function UninstallAll()
    290298  {
    291299    $this->Perform($this->Modules, array(ModuleAction::Uninstall));
     300    $this->SaveState();
     301  }
     302
     303  function EnableAll()
     304  {
     305    $this->Perform($this->Modules, array(ModuleAction::Enable));
     306    $this->SaveState();
     307  }
     308
     309  function DisableAll()
     310  {
     311    $this->Perform($this->Modules, array(ModuleAction::Disable));
    292312    $this->SaveState();
    293313  }
Note: See TracChangeset for help on using the changeset viewer.