Changeset 590 for trunk/Common/AppModule.php
- Timestamp:
- Nov 2, 2013, 12:10:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/AppModule.php
r587 r590 64 64 function Install() 65 65 { 66 if($this->Installed) return; 67 $List = array(); 68 $this->Manager->EnumDependenciesCascade($this, $List, array(ModuleCondition::NotInstalled)); 69 $this->Manager->Perform($List, array(ModuleAction::Install), array(ModuleCondition::NotInstalled)); 70 $this->DoInstall(); 66 71 $this->Installed = true; 67 72 } … … 69 74 function Uninstall() 70 75 { 71 $this->Installed = false; 76 if(!$this->Installed) return; 77 $this->Stop(); 78 $this->Installed = false; 79 $List = array(); 80 $this->Manager->EnumSuperiorDependenciesCascade($this, $List, array(ModuleCondition::Installed)); 81 $this->Manager->Perform($List, array(ModuleAction::Uninstall), array(ModuleCondition::Installed)); 82 $this->DoUninstall(); 83 } 84 85 function Reinstall() 86 { 87 $this->Uninstall(); 88 $this->Install(); 72 89 } 73 90 74 91 function Start() 75 92 { 76 if($this->Running) return; 93 if($this->Running) return; 94 if(!$this->Installed) return; 77 95 $List = array(); 78 96 $this->Manager->EnumDependenciesCascade($this, $List, array(ModuleCondition::NotRunning)); … … 119 137 { 120 138 var $Modules; 139 var $ModulesAvail; 121 140 var $System; 122 141 var $OnLoadModules;
Note:
See TracChangeset
for help on using the changeset viewer.