65 $principal =
new Principal(
'username',
'unauthenticated');
68 foreach( $principal AS $k => $v ) {
72 $this->username = $principal->username();
73 $this->user_no = $principal->user_no();
74 $this->principal_id = $principal->principal_id();
75 $this->email = $principal->email();
76 $this->fullname = $principal->fullname;
77 $this->dav_name = $principal->dav_name();
78 $this->principal = $principal;
80 if ( function_exists(
"awl_set_locale") && isset($this->locale) && $this->locale !=
"" ) {
81 awl_set_locale($this->locale);
84 $this->groups = ( isset($c->public_groups) ? $c->public_groups : array() );
85 $this->roles = array(
'Public' =>
true );
86 $this->logged_in =
false;
99 dbg_error_log(
'session',
'Checking whether "Public" is allowed to "%s"', $whatever);
100 return ( isset($this->roles[$whatever]) && $this->roles[$whatever] );