Changeset 5 for Common/AppModule.php
- Timestamp:
- Jan 10, 2016, 12:16:44 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/AppModule.php
r4 r5 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.