本文整理汇总了PHP中Mage_Core_Model_Config::getModuleConfigurationFiles方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Config::getModuleConfigurationFiles方法的具体用法?PHP Mage_Core_Model_Config::getModuleConfigurationFiles怎么用?PHP Mage_Core_Model_Config::getModuleConfigurationFiles使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Config
的用法示例。
在下文中一共展示了Mage_Core_Model_Config::getModuleConfigurationFiles方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Initialize dependencies
*
* @param Magento_ObjectManager $objectManager
* @param Mage_Core_Model_Config $config
* @param Mage_Core_Model_Translate $translator
*/
public function __construct(Magento_ObjectManager $objectManager, Mage_Core_Model_Config $config, Mage_Core_Model_Translate $translator)
{
$this->_objectManager = $objectManager;
$this->_config = $config;
$this->_translator = $translator;
$this->_configFiles = $this->_config->getModuleConfigurationFiles('validation.xml');
$this->_initializeDefaultTranslator();
}
示例2: getConfiguration
/**
* Load system configuration
*
* @return Mage_Backend_Model_Config_Structure
*/
public function getConfiguration()
{
if ($this->_cache->canUse('config')) {
$cache = $this->_cache->load(self::CACHE_SYSTEM_CONFIGURATION_STRUCTURE);
if ($cache) {
return unserialize($cache);
}
}
$fileNames = $this->_appConfig->getModuleConfigurationFiles('adminhtml' . DIRECTORY_SEPARATOR . 'system.xml');
$config = $this->_appConfig->getModelInstance('Mage_Backend_Model_Config_Structure', array('sourceFiles' => $fileNames));
if ($this->_cache->canUse('config')) {
$this->_cache->save(serialize($config), self::CACHE_SYSTEM_CONFIGURATION_STRUCTURE, array(Mage_Core_Model_Config::CACHE_TAG));
}
return $config;
}
示例3: _getAclResourceFiles
/**
* Retrieve list of acl files from each module
*
* @return array
*/
protected function _getAclResourceFiles()
{
$files = $this->_config->getModuleConfigurationFiles('adminhtml' . DIRECTORY_SEPARATOR . 'acl.xml');
return (array) $files;
}
示例4: getMenuConfigurationFiles
/**
* Return array menu configuration files
*
* @return array
*/
public function getMenuConfigurationFiles()
{
$files = $this->_appConfig->getModuleConfigurationFiles('adminhtml' . DIRECTORY_SEPARATOR . 'menu.xml');
return (array) $files;
}