Lines Matching refs:this

43         if (isset($config['intro'])) $this->_intro = $config['intro'];
45 if (isset($config['varname'])) $this->_name = $config['varname'];
46 if (isset($config['format'])) $this->_format = $config['format'];
47 if (isset($config['heading'])) $this->_heading = $config['heading'];
49 if (isset($file['default'])) $this->_default_file = $file['default'];
50 if (isset($file['local'])) $this->_local_file = $file['local'];
51 if (isset($file['protected'])) $this->_protected_file = $file['protected'];
53 if (isset($metameta['key'])) $this->_defkeymeta = $metameta['key'];
54 if (isset($metameta['value'])) $this->_defvalmeta = $metameta['value'];
56 $this->locked = $this->_is_locked();
60 $this->retrieve_settings();
66 if (!$this->_loaded) {
68 $default = $this->_read_config($this->_default_file);
69 $local = $this->_read_config($this->_local_file);
70 $protected = $this->_read_config($this->_protected_file);
72 …$keys = array_merge(array_keys($this->_metadata),array_keys($default), array_keys($local), array_k…
77 if (isset($this->_defvalmeta[0])) {
78 $class = $this->_defvalmeta[0];
79 $defparam = $this->_defvalmeta;
85 if (isset($this->_metadata[$key])) {
86 $class = $this->_metadata[$key][0];
94 $param = $this->_metadata[$key];
104 $this->setting[$key] = new $class($key,$param);
105 $this->setting[$key]->initialize($default[$key],$local[$key],$protected[$key]);
108 $this->_loaded = true;
119 if (isset($this->_defvalmeta[0])) {
120 $class = $this->_defvalmeta[0];
121 $defparam = $this->_defvalmeta;
129 if (isset($this->_metadata[$key])) {
130 $class = $this->_metadata[$key][0];
134 $param = $this->_metadata[$key];
139 $this->setting[$key] = new $class($key,$param);
140 $this->setting[$key]->initialize(null,$value,null);
156 if ($this->_format == 'php') {
159 $pattern = '/\$'.$this->_name.'\[[\'"]([^=]+)[\'"]\] ?= ?(.*?);/';
175 } else if ($this->_format == 'txt') {
188 if ($this->_format == 'php') {
196 } else if ($this->_format == 'txt') {
211 if ($this->_format == 'php') {
212 if ($this->_protected_file) {
213 $out .= "\n@include(".$this->_protected_file.");\n";
216 } else if ($this->_format == 'txt') {
240 if ($this->is_protected()) return false;
242 $value = is_null($this->_local) ? $this->_default : $this->_local;
245 if ($this->_pattern && !preg_match($this->_pattern,$input)) {
246 $this->_error = true;
247 $this->_input = $input;
251 $this->_local = $input;
263 if ($this->is_protected()) {
264 $value = $this->_protected;
267 if ($echo && $this->_error) {
268 $value = $this->_input;
270 $value = is_null($this->_local) ? $this->_default : $this->_local;
274 if (is_null($this->_local)) $defaultstyle = 'style="font-weight:bold;"';
276 $key = htmlspecialchars($this->_key);
291 if ($this->is_protected()) return '';
292 if (is_null($this->_local) || ($this->_default == $this->_local)) return '';
299 $out = '$'.$var."['".$this->_out_key()."'] = '".strtr($this->_local, $tr)."';\n";
303 $out = $this->_key."\t".$this->_local."\n";