Lines Matching refs:this

17 		$this->_parent = $parent;
18 $this->_hierarchy = $hierarchy;
19 $this->path = ':'.ltrim($path,':');
23 if ($this->path == ':'){
27 if (!$this->_parent){
28 return $this->path;
30 $val = substr($this->path,strlen($this->_parent->path));
35 return $this->_hierarchy;
41 if (($v = $this->getProtected($key)) !== null) {return $v;}
42 return $this->getCurrentNoProt($key);
50 if (($v = @$this->_values[$key]['value']) !== null){ return $v; }
51 if ($this->_parent) { return $this->_parent->getCurrent($key); }
58 if (($v = $this->_hierarchy->getLocal($key)) !== null) {return $v;}
59 return $this->_hierarchy->getDefault($key);
65 if (($v = $this->getProtected($key)) !== null) {return $v;}
66 if ($this->_parent){ return $this->_parent->getCurrent($key); }
71 if (($v = $this->_hierarchy->getLocal($key)) !== null) {return $v;}
72 return $this->_hierarchy->getDefault($key);
80 if (($v = $this->getProtected($key)) !== null) {return null;}
81 if (($v = @$this->_values[$key]['value']) !== null){ return $v; }
89 if (($v = $this->getParentProtected($key)) !== null) {return $v;}
90 if (@$this->_values[$key]['protect']){ return $this->getCurrentNoProt($key); }
94 if ($this->_parent){ // check parent level.
95 return $this->_parent->getProtected($key);
97 return $this->_hierarchy->getProtected($key);
102 return isset($this->_values[$key]['value']);
105 return @$this->_values[$key]['value'];
108 return (isset($this->_values[$key]['value']) && ($this->getParentProtected($key) !== null));
111 return isset($this->_values[$key]['protect']);
115 if ($this->_settings === null)
116 $this->_values = $values;
119 return $this->_values;
124 $v = $this->getValues();
126 $ret[$this->path] = $v;
128 foreach($this->_children as $child){
135 foreach ($this->_hierarchy->getFieldConfig() as $key=>$meta){
136 $ret[$key] = $this->getCurrent($key);
143 return $this->_parent;
147 if (!$this->_settings){
148 foreach ($this->_hierarchy->getFieldConfig() as $key=>$meta){
149 $this->_settings[$key] = new settingswrapper($key,$this,$meta,$this->_values[$key]);
152 return $this->_settings;
155 $set = $this->_getSettings();
162 $par_val = $this->getDefault($key);
164 …$this->_values[$key]['value'] = $set[$key]->_value; // we do need to save value, as it's not defau…
166 unset($this->_values[$key]['value']); // we do need to delete the value, as it's default.
173 $par_val = $this->getParentProtected($key);
176 if ($toset) $this->_values[$key]['protect'] = true; // we only save if a level is protected.
177 else unset($this->_values[$key]['protect']);
179 if (empty($this->_values[$key]))
180 unset($this->_values[$key]);
183 $this->_markChanged(array_keys($data));
188 $set = $this->_getSettings();
195 return sprintf(settingshierarchy::$helper->getLang('settings_for_%s'),$this->path);
209 …$ret .= "<div id='config__manager' data-path='{$this->path}'><fieldset><legend>{$this->_getTitle()…
210 foreach ($this->_getSettings() as $key => $setting){
215 $ret .= "<div class='settingstree_buttons'>{$this->_getButtons()}</div>";
219 $level = new settingslevel_export($this->_hierarchy,$this,$this->path);
225 return $this->path;
228 return !$this->_parent;
233 return $this;
240 if (!($c = @$this->_children[$child])){
241 $this->_children[$child] = new static($this->_hierarchy,$this,$this->path.':'.$child);
242 $c = $this->_children[$child];
252 $this->setValues($values);
260 if (!($c = @$this->_children[$child])){
261 $this->_children[$child] = new static($this->_hierarchy,$this,$this->path.':'.$child);
262 $c = $this->_children[$child];
268 return $this->_children;
275 $this->_title = @$options['title'];
279 …return $this->_title !== null ? $this->_title : settingshierarchy::$helper->getLang('export_option…
288 foreach ($this->_hierarchy->getFieldConfig() as $key=>$meta){
290 $ret[$key] = $this->getCurrent($key);
297 if (!$this->_settings){
298 foreach ($this->_hierarchy->getFieldConfig() as $key=>$meta){
300 $this->_settings[$key] = new settingswrapper_export($key,$this,$meta,$this->_values[$key]);
303 return $this->_settings;