Changeset 29316
- Timestamp:
- 04/29/10 20:26:34 (3 years ago)
- Files:
-
- plugins/pmModuleEnablerPlugin/branches/1.0/README (modified) (2 diffs)
- plugins/pmModuleEnablerPlugin/branches/1.0/lib/model/pmConfiguration.php (modified) (4 diffs)
- plugins/pmModuleEnablerPlugin/branches/1.0/lib/model/pmModule.php (modified) (1 diff)
- plugins/pmModuleEnablerPlugin/branches/1.0/modules/pmconfiguration/actions/actions.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/pmModuleEnablerPlugin/branches/1.0/README
r24106 r29316 33 33 34 34 [yml] 35 # in apps/<app>/ backend/config/settings.yml35 # in apps/<app>/config/settings.yml 36 36 enabled_modules: [default, ..., pmconfiguration, coolModule, anotherCoolModule] 37 37 … … 39 39 40 40 [yml] 41 # in apps/<app>/ backend/config/app.yml41 # in apps/<app>/config/app.yml 42 42 all: 43 43 # ... 44 pm_module_ loader:44 pm_module_enabler: 45 45 always_enabled: [default, pmconfiguration] # this means that default and pmconfiguration modules will be always enabled 46 46 modules_names: plugins/pmModuleEnablerPlugin/branches/1.0/lib/model/pmConfiguration.php
r24106 r29316 24 24 { 25 25 $enabled_modules = sfConfig::get('sf_enabled_modules', array()); 26 $always_enabled = sfConfig::get('app_pm_module_ loader_always_enabled', array());26 $always_enabled = sfConfig::get('app_pm_module_enabler_always_enabled', array()); 27 27 28 28 foreach ($enabled_modules as $enabled_module) … … 47 47 { 48 48 $ret = false; 49 $always_enabled = sfConfig::get('app_pm_module_ loader_always_enabled', array());49 $always_enabled = sfConfig::get('app_pm_module_enabler_always_enabled', array()); 50 50 51 51 if ($module_name == 'pmconfiguration') … … 55 55 else 56 56 { 57 if (!in_array($module_name, sfConfig::get('sf_enabled_modules' )) || in_array($module_name, $always_enabled))57 if (!in_array($module_name, sfConfig::get('sf_enabled_modules', array())) || in_array($module_name, $always_enabled)) 58 58 { 59 59 $ret = true; … … 66 66 { 67 67 $ret = true; 68 69 break; 68 70 } 69 71 } plugins/pmModuleEnablerPlugin/branches/1.0/lib/model/pmModule.php
r25044 r29316 5 5 public function __toString() 6 6 { 7 $modules_names = sfConfig::get('app_pm_module_ loader_modules_names', array());7 $modules_names = sfConfig::get('app_pm_module_enabler_modules_names', array()); 8 8 9 9 return array_key_exists($this->getName(), $modules_names)?$modules_names[$this->getName()]:$this->getName(); plugins/pmModuleEnablerPlugin/branches/1.0/modules/pmconfiguration/actions/actions.class.php
r25046 r29316 45 45 $enabled_ids = $request->getParameter('pm_configuration[enabled_ids]'); 46 46 47 $all_dependencies = sfConfig::get('app_pm_module_ loader_dependencies', array());47 $all_dependencies = sfConfig::get('app_pm_module_enabler_dependencies', array()); 48 48 49 49 foreach ($pm_configuration->getpmModules() as $pm_module)