Ignore:
Timestamp:
Jan 21, 2016, 3:59:53 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Executable flag from PHP files.
  • Updated: Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/AppModule.php

    r779 r790  
    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.