Changeset 403 for branches/Modular
- Timestamp:
- Jun 11, 2012, 10:08:38 PM (13 years ago)
- Location:
- branches/Modular
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Common/Model.php
r401 r403 41 41 $this->AddPropertyOneToMany('ItemOwnerModule', 'SystemModule', true); 42 42 $this->AddPropertyDateTime('ItemTimeCreate', true); 43 $this->AddPropertyOneToMany('ItemUserCreate', 'User', true);43 //$this->AddPropertyOneToMany('ItemUserCreate', 'User', true); 44 44 $this->AddPropertyDateTime('ItemTimeModify', true); 45 $this->AddPropertyOneToMany('ItemUserModify', 'User', true);45 //$this->AddPropertyOneToMany('ItemUserModify', 'User', true); 46 46 } 47 47 … … 169 169 function Install() 170 170 { 171 DebugLog('Installing model '.$this->Name.'...'); 171 172 if($this->Installed) return; 172 173 $this->Installed = true; … … 243 244 function UnInstall() 244 245 { 246 DebugLog('Uninstalling model '.$this->Name.'...'); 245 247 foreach($this->Properties as $Property) 246 248 { … … 251 253 $this->Database->query('ALTER TABLE `'.$this->Name.'` DROP FOREIGN KEY `'. 252 254 $this->Name.'_ibfk_'.$Property['Name'].'`'); 253 echo('ss');254 255 } 255 256 } 256 //$this->Database->query('DROP TABLE IF EXISTS `'.$this->Name.'`');257 $this->Database->query('DROP TABLE IF EXISTS `'.$this->Name.'`'); 257 258 $this->Installed = false; 258 259 } -
branches/Modular/Common/Module.php
r401 r403 45 45 { 46 46 DebugLog('Uninstalling module '.$this->Name.'...'); 47 foreach($this->Models as $Index => $Model) 47 $this->LoadModels(); 48 foreach(array_reverse($this->Models, true) as $Index => $Model) 48 49 { 49 50 $this->Models[$Index]->UnInstall(); … … 170 171 $this->ReloadList(); 171 172 $this->LoadModules(false); 172 $this->Modules['System']->Install();173 //foreach($this->Modules as $Index => $Module)174 //{175 //$this->Modules[$Index]->Install();176 //}173 //$this->Modules['System']->Install(); 174 foreach($this->Modules as $Index => $Module) 175 { 176 $this->Modules[$Index]->Install(); 177 } 177 178 } 178 179 … … 180 181 { 181 182 DebugLog('Uninstalling modular system core...'); 182 foreach( $this->Modulesas $Index => $Module)183 foreach(array_reverse($this->Modules, true) as $Index => $Module) 183 184 $this->Modules[$Index]->UnInstall(); 184 185 -
branches/Modular/FileDownload.php
r237 r403 1 1 <?php 2 2 3 include(' global.php');3 include('Common/Global.php'); 4 4 if(array_key_exists('Id', $_GET)) 5 5 { -
branches/Modular/Modules/System/System.php
r398 r403 45 45 $this->Description = 'Base system module'; 46 46 $this->Dependencies = array('User'); 47 $this->SupportedModels = array('System Menu', 'SystemView', 'SystemAction');47 $this->SupportedModels = array('SystemView', 'SystemAction', 'SystemMenu'); 48 48 } 49 49
Note:
See TracChangeset
for help on using the changeset viewer.