本文整理汇总了PHP中Mage_Core_Model_Config::loadModules方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Config::loadModules方法的具体用法?PHP Mage_Core_Model_Config::loadModules怎么用?PHP Mage_Core_Model_Config::loadModules使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Config
的用法示例。
在下文中一共展示了Mage_Core_Model_Config::loadModules方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Class constructor
*/
public function __construct()
{
$this->_config = new Mage_Core_Model_Config(new Magento_ObjectManager_Zend());
$this->_config->loadBase();
$this->_config->loadModules();
$this->_initCommonDependencies();
}
示例2: loadModules
public function loadModules()
{
$res = parent::loadModules();
$this->loadModulesConfiguration('xtest.default.xml', $this);
$this->loadModulesConfiguration('xtest.xml', $this);
return $res;
}
示例3: _initModules
/**
* Initialize active modules configuration and data
*
* @return Mage_Core_Model_App
*/
protected function _initModules()
{
if (!$this->_config->loadModulesCache()) {
$this->_config->loadModules();
if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) {
Varien_Profiler::start('mage::app::init::apply_db_schema_updates');
Mage_Core_Model_Resource_Setup::applyAllUpdates();
Varien_Profiler::stop('mage::app::init::apply_db_schema_updates');
}
$this->_config->loadDb();
$this->_config->saveCache();
}
return $this;
}
示例4: loadModules
/**
* (non-PHPdoc)
* @see Mage_Core_Model_Config::loadModules()
*/
public function loadModules()
{
parent::loadModules();
$this->_loadTestConfig();
$this->_loadTestCacheConfig();
return $this;
}
示例5: _initModules
/**
* Initialize active modules configuration and data
*
* @return Mage_Core_Model_App
*/
protected function _initModules()
{
// If cache locking is enabled then use that
if ((bool) (string) $this->_config->getNode(self::XML_PATH_CACHE_LOCK_ENABLE) === true) {
return $this->_initModulesWithLocking();
}
if (!$this->_config->loadModulesCache()) {
$this->_config->loadModules();
if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) {
Varien_Profiler::start('mage::app::init::apply_db_schema_updates');
Mage_Core_Model_Resource_Setup::applyAllUpdates();
Varien_Profiler::stop('mage::app::init::apply_db_schema_updates');
}
$this->_config->loadDb();
$this->_config->saveCache();
}
return $this;
}
示例6: _initModules
/**
* Initialize active modules configuration and data
*
* @return Mage_Core_Model_App
*/
protected function _initModules()
{
if (get_class($this->_config) === 'Made_Cache_Model_Config') {
$backend = Mage::app()->getCacheInstance()->getFrontend()->getBackend();
if (get_class($backend) === 'Made_Cache_Redis_Backend') {
return $this->_initModulesSafe();
}
}
if (!$this->_config->loadModulesCache()) {
$this->_config->loadModules();
if ($this->_config->isLocalConfigLoaded() && !$this->_shouldSkipProcessModulesUpdates()) {
Varien_Profiler::start('mage::app::init::apply_db_schema_updates');
Mage_Core_Model_Resource_Setup::applyAllUpdates();
Varien_Profiler::stop('mage::app::init::apply_db_schema_updates');
}
$this->_config->loadDb();
$this->_config->saveCache();
}
return $this;
}