Authentication backend class for RedDAV.
More...
Authentication backend class for RedDAV.
This class also contains some data which is not necessary for authentication like timezone settings.
http://opensource.org/licenses/mit-license.php The MIT License (MIT)
RedMatrix\RedDAV\RedBasicAuth::getCurrentUser |
( |
| ) |
|
Returns information about the currently logged-in channel.
If nobody is currently logged in, this method should return null.
- See Also
- ::getCurrentUser
- Returns
- string|null
RedMatrix\RedDAV\RedBasicAuth::getTimezone |
( |
| ) |
|
Returns the timezone.
- Returns
- string Return the channel's timezone.
RedMatrix\RedDAV\RedBasicAuth::log |
( |
| ) |
|
RedMatrix\RedDAV\RedBasicAuth::setAuthenticated |
( |
|
$r | ) |
|
|
protected |
RedMatrix\RedDAV\RedBasicAuth::setBrowserPlugin |
( |
|
$browser | ) |
|
RedMatrix\RedDAV\RedBasicAuth::setCurrentUser |
( |
|
$name | ) |
|
Sets the channel_name from the currently logged-in channel.
- Parameters
-
string | $name | The channel's name |
RedMatrix\RedDAV\RedBasicAuth::setTimezone |
( |
|
$timezone | ) |
|
Sets the timezone from the channel in RedBasicAuth.
Set in mod/cloud.php if the channel has a timezone set.
- Parameters
-
string | $timezone | The channel's timezone. |
- Returns
- void
RedMatrix\RedDAV\RedBasicAuth::validateUserPass |
( |
|
$username, |
|
|
|
$password |
|
) |
| |
|
protected |
Validates a username and password.
Guest access is granted with the password "+++".
- See Also
- ::validateUserPass
- Parameters
-
string | $username | |
string | $password | |
- Returns
- bool
RedMatrix\RedDAV\RedBasicAuth::$browser |
RedMatrix\RedDAV\RedBasicAuth::$channel_hash = '' |
RedMatrix\RedDAV\RedBasicAuth::$channel_id = 0 |
RedMatrix\RedDAV\RedBasicAuth::$channel_name = null |
|
protected |
RedMatrix\RedDAV\RedBasicAuth::$observer = '' |
RedMatrix\RedDAV\RedBasicAuth::$owner_id = 0 |
RedMatrix\RedDAV\RedBasicAuth::$owner_nick = '' |
RedMatrix\RedDAV\RedBasicAuth::$timezone = '' |
|
protected |
The documentation for this class was generated from the following file: