Changeset 790 for trunk/Packages/Common/AppModule.php
- Timestamp:
- Jan 21, 2016, 3:59:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/AppModule.php
r779 r790 231 231 foreach($Module->Dependencies as $Dependency) 232 232 { 233 if(!array_key_exists($Dependency, $this->Modules)) 234 throw new Exception('Module "'.$Module->Name.'" dependency "'.$Dependency.'" not found'); 233 235 $DepModule = $this->Modules[$Dependency]; 234 236 if(in_array(ModuleCondition::All, $Conditions) or … … 287 289 } 288 290 291 function InstallAll() 292 { 293 $this->Perform($this->Modules, array(ModuleAction::Install)); 294 $this->SaveState(); 295 } 296 289 297 function UninstallAll() 290 298 { 291 299 $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)); 292 312 $this->SaveState(); 293 313 }
Note:
See TracChangeset
for help on using the changeset viewer.