Subversion Repositories oidplus

Rev

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

Rev 566 Rev 567
Line 23... Line 23...
23
 
23
 
24
        protected $content = array();
24
        protected $content = array();
25
 
25
 
26
        // Getter / Setter
26
        // Getter / Setter
27
 
27
 
28
        public abstract function getValue($name);
28
        protected abstract function getValue($name);
29
 
29
 
30
        public abstract function setValue($name, $value);
30
        protected abstract function setValue($name, $value);
31
 
31
 
32
        protected abstract function destroySession();
32
        protected abstract function destroySession();
33
 
33
 
34
        // RA authentication functions
34
        // RA authentication functions
35
 
35
 
Line 70... Line 70...
70
        public function raLogoutAll() {
70
        public function raLogoutAll() {
71
                $this->setValue('oidplus_logged_in', '');
71
                $this->setValue('oidplus_logged_in', '');
72
        }
72
        }
73
 
73
 
74
        public function loggedInRaList() {
74
        public function loggedInRaList() {
75
                if (OIDplus::authUtils()->forceAllLoggedOut()) {
-
 
76
                        return array();
-
 
77
                }
-
 
78
 
-
 
79
                $list = $this->getValue('oidplus_logged_in');
75
                $list = $this->getValue('oidplus_logged_in');
80
                if (is_null($list)) $list = '';
76
                if (is_null($list)) $list = '';
81
 
77
 
82
                $res = array();
78
                $res = array();
83
                foreach (array_unique(explode('|',$list)) as $ra_email) {
79
                foreach (array_unique(explode('|',$list)) as $ra_email) {
Line 108... Line 104...
108
                        $this->destroySession();
104
                        $this->destroySession();
109
                }
105
                }
110
        }
106
        }
111
 
107
 
112
        public function isAdminLoggedIn() {
108
        public function isAdminLoggedIn() {
113
                if (OIDplus::authUtils()->forceAllLoggedOut()) {
-
 
114
                        return false;
-
 
115
                }
-
 
116
                return $this->getValue('oidplus_admin_logged_in') == '1';
109
                return $this->getValue('oidplus_admin_logged_in') == '1';
117
        }
110
        }
118
 
111
 
119
}
112
}