|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Handles calendar authentication tokens for external calendar subscriptions. More...
Collaboration diagram for ilCalendarAuthenticationToken:Public Member Functions | |
| __construct ($a_user_id, $a_token='') | |
| Constructor. More... | |
| getSelectionType () | |
| get selection type for key More... | |
| getUserId () | |
| Get current user. More... | |
| setSelectionType ($a_type) | |
| set selection type More... | |
| setCalendar ($a_cal) | |
| set calendar id More... | |
| getCalendar () | |
| setIcal ($ical) | |
| getIcal () | |
| get stored ical More... | |
| getToken () | |
| get token More... | |
| storeIcal () | |
| store ical More... | |
| isIcalExpired () | |
| Check if cache is disabled or expired. More... | |
| add () | |
| Add token. More... | |
Static Public Member Functions | |
| static | lookupAuthToken ($a_user_id, $a_selection, $a_calendar=0) |
| static | lookupUser ($a_token) |
| Lookup user by hash. More... | |
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. More... | |
| read () | |
| Read key. More... | |
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(), and user().
Here is the call graph for this function:| ilCalendarAuthenticationToken::add | ( | ) |
Add token.
Definition at line 193 of file class.ilCalendarAuthenticationToken.php.
References $DIC, $ilDB, $query, createToken(), getCalendar(), getSelectionType(), getToken(), and getUserId().
Here is the call graph for this function:
|
protected |
Create a new token.
Definition at line 217 of file class.ilCalendarAuthenticationToken.php.
References getSelectionType(), and getUserId().
Referenced by add().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarAuthenticationToken::getCalendar | ( | ) |
Definition at line 118 of file class.ilCalendarAuthenticationToken.php.
References $calendar.
Referenced by add().
Here is the caller graph for this function:| ilCalendarAuthenticationToken::getIcal | ( | ) |
get stored ical
Definition at line 132 of file class.ilCalendarAuthenticationToken.php.
References $ical.
Referenced by storeIcal().
Here is the caller graph for this function:| ilCalendarAuthenticationToken::getSelectionType | ( | ) |
get selection type for key
Definition at line 83 of file class.ilCalendarAuthenticationToken.php.
References $selection_type.
Referenced by add(), and createToken().
Here is the caller graph for this function:| ilCalendarAuthenticationToken::getToken | ( | ) |
get token
Definition at line 142 of file class.ilCalendarAuthenticationToken.php.
References $token.
Referenced by add(), read(), and storeIcal().
Here is the caller graph for this function:| ilCalendarAuthenticationToken::getUserId | ( | ) |
Get current user.
Definition at line 93 of file class.ilCalendarAuthenticationToken.php.
References $user.
Referenced by add(), createToken(), read(), and storeIcal().
Here is the caller graph for this function:| ilCalendarAuthenticationToken::isIcalExpired | ( | ) |
Check if cache is disabled or expired.
Definition at line 174 of file class.ilCalendarAuthenticationToken.php.
References ilCalendarSettings\_getInstance().
Here is the call graph for this function:
|
static |
Definition at line 42 of file class.ilCalendarAuthenticationToken.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarSubscriptionGUI\createToken().
Here is the caller graph for this function:
|
static |
Lookup user by hash.
| object | $a_token |
Definition at line 64 of file class.ilCalendarAuthenticationToken.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarRemoteAccessHandler\initTokenHandler().
Here is the caller graph for this function:
|
protected |
Read key.
Definition at line 227 of file class.ilCalendarAuthenticationToken.php.
References $DIC, $ilDB, $query, $res, calendar(), ilDBConstants\FETCHMODE_OBJECT, getToken(), and getUserId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarAuthenticationToken::setCalendar | ( | $a_cal | ) |
set calendar id
| object | $a_cal |
Definition at line 113 of file class.ilCalendarAuthenticationToken.php.
References calendar().
Here is the call graph for this function:| ilCalendarAuthenticationToken::setIcal | ( | $ical | ) |
Definition at line 123 of file class.ilCalendarAuthenticationToken.php.
References $ical.
| ilCalendarAuthenticationToken::setSelectionType | ( | $a_type | ) |
set selection type
| int | $a_type |
Definition at line 103 of file class.ilCalendarAuthenticationToken.php.
| ilCalendarAuthenticationToken::storeIcal | ( | ) |
store ical
Definition at line 151 of file class.ilCalendarAuthenticationToken.php.
References $DIC, $ilDB, getIcal(), getToken(), and getUserId().
Here is the call graph for this function:
|
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\getModalForSubscription(), ilCalendarRemoteAccessHandler\handleRequest(), and ilCalendarSubscriptionGUI\show().
| const ilCalendarAuthenticationToken::SELECTION_CATEGORY = 2 |
Definition at line 16 of file class.ilCalendarAuthenticationToken.php.
| 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 ilCalendarSubscriptionGUI\getModalForSubscription(), and ilCalendarSubscriptionGUI\show().