Subversion Repositories oidplus

Rev

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

Rev 567 Rev 569
Line 23... Line 23...
23
 
23
 
24
        protected $content = array();
24
        protected $content = array();
25
 
25
 
26
        // Override abstract functions
26
        // Override abstract functions
27
 
27
 
28
        protected function getValue($name) {
28
        public function getValue($name, $default = NULL) {
29
                return isset($this->content[$name]) ? $this->content[$name] : null;
29
                return isset($this->content[$name]) ? $this->content[$name] : $default;
30
        }
30
        }
31
 
31
 
32
        protected function setValue($name, $value) {
32
        public function setValue($name, $value) {
33
                $this->content[$name] = $value;
33
                $this->content[$name] = $value;
34
        }
34
        }
35
 
35
 
-
 
36
        public function exists($name) {
-
 
37
                return isset($this->content[$name]);
-
 
38
        }
-
 
39
 
-
 
40
        public function delete($name) {
-
 
41
                unset($this->content[$name]);
-
 
42
        }
-
 
43
 
36
        protected function destroySession() {
44
        protected function destroySession() {
37
                // Nothing to do
45
                // Nothing to do
38
        }
46
        }
39
 
47
 
40
}
48
}
41
49