|  | The Red Matrix
    | 
Authentication backend class for RedDAV. More...
 
  
 | Public Member Functions | |
| setCurrentUser ($name) | |
| getCurrentUser () | |
| setTimezone ($timezone) | |
| Sets the timezone from the channel in RedBasicAuth.  More... | |
| getTimezone () | |
| Returns the timezone.  More... | |
| setBrowserPlugin ($browser) | |
| Set browser plugin for SabreDAV.  More... | |
| log () | |
| Public Attributes | |
| $channel_id = 0 | |
| $channel_hash = '' | |
| $observer = '' | |
| $browser | |
| $owner_id = 0 | |
| $owner_nick = '' | |
| Protected Member Functions | |
| validateUserPass ($username, $password) | |
| Validates a username and password.  More... | |
| setAuthenticated ($r) | |
| Sets variables and session parameters after successfull authentication.  More... | |
| Protected Attributes | |
| $channel_name = null | |
| $timezone = '' | |
Authentication backend class for RedDAV.
This class also contains some data which is not necessary for authentication like timezone settings.
| RedBasicAuth::getCurrentUser | ( | ) | 
Returns information about the currently logged-in channel.
If nobody is currently logged in, this method should return null.
| RedBasicAuth::getTimezone | ( | ) | 
Returns the timezone.
| RedBasicAuth::log | ( | ) | 
Prints out all RedBasicAuth variables to logger().
| 
 | protected | 
Sets variables and session parameters after successfull authentication.
| array | $r | Array with the values for the authenticated channel. | 
Referenced by validateUserPass().
| RedBasicAuth::setBrowserPlugin | ( | $browser | ) | 
Set browser plugin for SabreDAV.
| DAV\Browser\Plugin | $browser | 
| RedBasicAuth::setCurrentUser | ( | $name | ) | 
Sets the channel_name from the currently logged-in channel.
| string | $name | The channel's name | 
| RedBasicAuth::setTimezone | ( | $timezone | ) | 
Sets the timezone from the channel in RedBasicAuth.
Set in mod/cloud.php if the channel has a timezone set.
| string | $timezone | The channel's timezone. | 
| 
 | protected | 
Validates a username and password.
Guest access is granted with the password "+++".
| string | $username | |
| string | $password | 
| RedBasicAuth::$browser | 
Referenced by setBrowserPlugin().
| RedBasicAuth::$channel_hash = '' | 
| RedBasicAuth::$channel_id = 0 | 
| 
 | protected | 
Referenced by getCurrentUser().
| RedBasicAuth::$observer = '' | 
| RedBasicAuth::$owner_id = 0 | 
| RedBasicAuth::$owner_nick = '' | 
| 
 | protected | 
Referenced by getTimezone(), and setTimezone().