|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 191 of file class.ilCalendarAuthenticationToken.php.
References $ilDB, $query, createToken(), getCalendar(), getSelectionType(), getToken(), and getUserId().
Here is the call graph for this function:
|
protected |
Create a new token.
Definition at line 213 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 116 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 130 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 81 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 140 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 91 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 170 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 $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarSubscriptionGUI\createToken(), and ilCalendarBlockGUI\showCalendarSubscription().
Here is the caller graph for this function:
|
static |
Lookup user by hash.
| object | $a_token |
Definition at line 63 of file class.ilCalendarAuthenticationToken.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAuthContainerCalendarToken\fetchData(), and ilCalendarRemoteAccessHandler\initTokenHandler().
Here is the caller graph for this function:
|
protected |
Read key.
Definition at line 222 of file class.ilCalendarAuthenticationToken.php.
References $ilDB, $query, $res, $row, 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 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.
References $a_type.
| ilCalendarAuthenticationToken::storeIcal | ( | ) |
store ical
Definition at line 149 of file class.ilCalendarAuthenticationToken.php.
References $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\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().