ILIAS
Release_4_4_x_branch Revision 61816
|
Handles calendar authentication tokens for external calendar subscriptions. More...
Public Member Functions | |
__construct ($a_user_id, $a_token= '') | |
Constructor. | |
getSelectionType () | |
get selection type for key | |
getUserId () | |
Get current user. | |
setSelectionType ($a_type) | |
set selection type | |
setCalendar ($a_cal) | |
set calendar id | |
getCalendar () | |
setIcal ($ical) | |
getIcal () | |
get stored ical | |
getToken () | |
get token | |
storeIcal () | |
store ical | |
isIcalExpired () | |
Check if cache is disabled or expired. | |
add () | |
Add token. |
Static Public Member Functions | |
static | lookupAuthToken ($a_user_id, $a_selection, $a_calendar=0) |
static | lookupUser ($a_token) |
Lookup user by hash. |
Data Fields | |
const | SELECTION_NONE = 0 |
const | SELECTION_PD = 1 |
const | SELECTION_CATEGORY = 2 |
const | SELECTION_CALENDAR = 3 |
Protected Member Functions | |
createToken () | |
Create a new token. | |
read () | |
Read key. |
Private Attributes | |
$user = null | |
$token = '' | |
$selection_type = 0 | |
$calendar = 0 | |
$ical = null | |
$ical_ctime = null |
Handles calendar authentication tokens for external calendar subscriptions.
Definition at line 12 of file class.ilCalendarAuthenticationToken.php.
ilCalendarAuthenticationToken::__construct | ( | $a_user_id, | |
$a_token = '' |
|||
) |
Constructor.
int | $a_user_id | |
string | $a_hash |
Definition at line 34 of file class.ilCalendarAuthenticationToken.php.
References read().
ilCalendarAuthenticationToken::add | ( | ) |
Add token.
Definition at line 191 of file class.ilCalendarAuthenticationToken.php.
References $query, createToken(), getCalendar(), getSelectionType(), getToken(), and getUserId().
|
protected |
Create a new token.
Definition at line 213 of file class.ilCalendarAuthenticationToken.php.
References getSelectionType(), and getUserId().
Referenced by add().
ilCalendarAuthenticationToken::getCalendar | ( | ) |
Definition at line 116 of file class.ilCalendarAuthenticationToken.php.
References $calendar.
Referenced by add().
ilCalendarAuthenticationToken::getIcal | ( | ) |
get stored ical
Definition at line 130 of file class.ilCalendarAuthenticationToken.php.
References $ical.
Referenced by storeIcal().
ilCalendarAuthenticationToken::getSelectionType | ( | ) |
get selection type for key
Definition at line 81 of file class.ilCalendarAuthenticationToken.php.
References $selection_type.
Referenced by add(), and createToken().
ilCalendarAuthenticationToken::getToken | ( | ) |
get token
Definition at line 140 of file class.ilCalendarAuthenticationToken.php.
References $token.
Referenced by add(), read(), and storeIcal().
ilCalendarAuthenticationToken::getUserId | ( | ) |
Get current user.
Definition at line 91 of file class.ilCalendarAuthenticationToken.php.
References $user.
Referenced by add(), createToken(), read(), and storeIcal().
ilCalendarAuthenticationToken::isIcalExpired | ( | ) |
Check if cache is disabled or expired.
Definition at line 170 of file class.ilCalendarAuthenticationToken.php.
References ilCalendarSettings\_getInstance().
|
static |
Definition at line 42 of file class.ilCalendarAuthenticationToken.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilCalendarSubscriptionGUI\createToken(), and ilCalendarBlockGUI\showCalendarSubscription().
|
static |
Lookup user by hash.
object | $a_token |
Definition at line 63 of file class.ilCalendarAuthenticationToken.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAuthContainerCalendarToken\fetchData(), and ilCalendarRemoteAccessHandler\initTokenHandler().
|
protected |
Read key.
Definition at line 222 of file class.ilCalendarAuthenticationToken.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, getToken(), and getUserId().
Referenced by __construct().
ilCalendarAuthenticationToken::setCalendar | ( | $a_cal | ) |
set calendar id
object | $a_cal |
Definition at line 111 of file class.ilCalendarAuthenticationToken.php.
ilCalendarAuthenticationToken::setIcal | ( | $ical | ) |
Definition at line 121 of file class.ilCalendarAuthenticationToken.php.
References $ical.
ilCalendarAuthenticationToken::setSelectionType | ( | $a_type | ) |
set selection type
int | $a_type |
Definition at line 101 of file class.ilCalendarAuthenticationToken.php.
Referenced by ilCalendarBlockGUI\showCalendarSubscription().
ilCalendarAuthenticationToken::storeIcal | ( | ) |
store ical
Definition at line 149 of file class.ilCalendarAuthenticationToken.php.
References getIcal(), getToken(), and getUserId().
|
private |
Definition at line 23 of file class.ilCalendarAuthenticationToken.php.
Referenced by getCalendar().
|
private |
Definition at line 25 of file class.ilCalendarAuthenticationToken.php.
|
private |
Definition at line 26 of file class.ilCalendarAuthenticationToken.php.
|
private |
Definition at line 22 of file class.ilCalendarAuthenticationToken.php.
Referenced by getSelectionType().
|
private |
Definition at line 21 of file class.ilCalendarAuthenticationToken.php.
Referenced by getToken().
|
private |
Definition at line 19 of file class.ilCalendarAuthenticationToken.php.
Referenced by getUserId().
const ilCalendarAuthenticationToken::SELECTION_CALENDAR = 3 |
Definition at line 17 of file class.ilCalendarAuthenticationToken.php.
Referenced by ilCalendarSubscriptionGUI\createToken(), and ilCalendarRemoteAccessHandler\handleRequest().
const ilCalendarAuthenticationToken::SELECTION_CATEGORY = 2 |
Definition at line 16 of file class.ilCalendarAuthenticationToken.php.
Referenced by ilCalendarBlockGUI\showCalendarSubscription().
const ilCalendarAuthenticationToken::SELECTION_NONE = 0 |
Definition at line 14 of file class.ilCalendarAuthenticationToken.php.
const ilCalendarAuthenticationToken::SELECTION_PD = 1 |
Definition at line 15 of file class.ilCalendarAuthenticationToken.php.
Referenced by ilCalendarBlockGUI\showCalendarSubscription().