Subversion Repositories oidplus

Rev

Rev 511 | Rev 571 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 511 Rev 569
Line 29... Line 29...
29
        public function getValue($name, $default=null) {
29
        public function getValue($name, $default=null) {
30
                return $this->exists($name) ? $this->data[$name] : $default;
30
                return $this->exists($name) ? $this->data[$name] : $default;
31
        }
31
        }
32
 
32
 
33
        public function setValue($name, $value) {
33
        public function setValue($name, $value) {
34
                // Note: The set value is only at run time level!
34
                // Note: The value is only set at run time level!
35
                // This function will NOT change the userdata/baseconfig/config.inc.php file!
35
                // This function will NOT change the userdata/baseconfig/config.inc.php file!
36
                $this->data[$name] = $value;
36
                $this->data[$name] = $value;
37
        }
37
        }
38
 
38
 
39
        public function delete($name) {
39
        public function delete($name) {
-
 
40
                // Note: The value is only deleted at run time level!
-
 
41
                // This function will NOT change the userdata/baseconfig/config.inc.php file!
40
                unset($this->data[$name]);
42
                unset($this->data[$name]);
41
        }
43
        }
42
 
44
 
43
        public function exists($name) {
45
        public function exists($name) {
44
                return isset($this->data[$name]);
46
                return isset($this->data[$name]);
45
        }
47
        }
46
 
48
 
47
        public function deleteAll() {
-
 
48
                $this->data = array();
-
 
49
        }
-
 
50
 
-
 
51
}
49
}