Exemple #1
0
 /**
  *
  */
 public function reset()
 {
     $this->xml = new RokCommon_XMLElement('<config/>');
     foreach ($this->sections as $identifier => &$section) {
         $this->logger->debug(rc__('Resetting options section %s.', $identifier));
         $section->reset();
     }
 }
	/**
	 * @param $config_entries
	 */
	protected function registerContainerFiles($config_entries)
	{
		foreach ($config_entries as $config_entry) {
			if ($config_entry->type === self::ROKCOMMON_CONFIG_TYPE_CONTAINER) {
				$filepath = JPATH_SITE . $config_entry->file;
				if (is_file($filepath)) {
					$this->logger->debug(rc__('Loading container config file for %s from %s', $config_entry->extension, $filepath));
					RokCommon_Service::addConfigFile($filepath);
				} else {
					$this->logger->notice(rc__('Unable to find registered container config file %s at %s', $config_entry->extension, $filepath));
				}
			}
		}
	}