Lines Matching +full:- +full:- +full:configuration
11 require_once(CONF_SELF.'settings/config.class.php'); // main configuration class and generic setti…
14 class helper_plugin_subconfhelper_config extends configuration {
17 …var $_format = 'php'; // format of the config file, supported formats - php (overridden b…
18 …var $_heading = ''; // heading string written at top of config file - don't include com…
19 var $_loaded = true; // set to true after configuration files are loaded
22 var $locked = false; // configuration is considered locked if it can't be updated
24 // configuration filenames
26 var $_local_files = array(); // updated configuration is written to the first file
36 function configuration( $datafile, $local=array( ), $default=array( ), $protected=array( ) ) { function in helper_plugin_subconfhelper_config
39 $this->_data_file = $datafile;
40 $this->_local_files = $local;
41 $this->_default_files = $default;
42 $this->_protected_files = $protected;
45 msg('No configuration metadata found at - '.htmlspecialchars($datafile),-1);
50 if (isset($config['varname'])) $this->_name = $config['varname'];
51 if (isset($config['format'])) $this->_format = $config['format'];
52 if (isset($config['heading'])) $this->_heading = $config['heading'];
54 $this->locked = $this->_is_locked();
56 #$this->_metadata = array_merge($meta, $this->get_plugintpl_metadata($conf['template']));
57 $this->_metadata = $meta;
62 …#$default = array_merge($this->get_plugintpl_default($conf['template']), $this->_read_config_group…
63 $default = array_merge($this->_read_config_group($this->_default_files));
64 $local = $this->_read_config_group($this->_local_files);
65 $protected = $this->_read_config_group($this->_protected_files);
67 …$keys = array_merge(array_keys($this->_metadata),array_keys($default), array_keys($local), array_k…
71 if (isset($this->_metadata[$key])) {
72 $class = $this->_metadata[$key][0];
75 $this->setting[] = new setting_no_class($key,$param);
78 $param = $this->_metadata[$key];
86 # $this->setting[] = new setting_no_default($key,$param);
89 $this->setting[$key] = new $class($key,$param);
90 $this->setting[$key]->initialize($default[$key],$local[$key],$protected[$key]);
93 $this->_loaded = true;