ILIAS
release_8 Revision v8.19
|
Handles calendar authentication tokens for external calendar subscriptions. More...
Public Member Functions | |
__construct (int $a_user_id, string $a_token='') | |
getSelectionType () | |
getUserId () | |
setSelectionType (int $a_type) | |
setCalendar (int $a_cal) | |
getCalendar () | |
setIcal (string $ical) | |
getIcal () | |
getToken () | |
storeIcal () | |
isIcalExpired () | |
Check if cache is disabled or expired. More... | |
add () | |
Static Public Member Functions | |
static | lookupAuthToken (int $a_user_id, int $a_selection, int $a_calendar=0) |
static | lookupUser (string $a_token) |
Data Fields | |
const | SELECTION_NONE = 0 |
const | SELECTION_PD = 1 |
const | SELECTION_CATEGORY = 2 |
const | SELECTION_CALENDAR = 3 |
Protected Member Functions | |
createToken () | |
read () | |
Protected Attributes | |
ilDBInterface | $db |
Private Attributes | |
int | $user |
string | $token = '' |
int | $selection_type = self::SELECTION_NONE |
int | $calendar = 0 |
string | $ical = '' |
int | $ical_ctime = 0 |
Handles calendar authentication tokens for external calendar subscriptions.
Definition at line 26 of file class.ilCalendarAuthenticationToken.php.
ilCalendarAuthenticationToken::__construct | ( | int | $a_user_id, |
string | $a_token = '' |
||
) |
Definition at line 44 of file class.ilCalendarAuthenticationToken.php.
References $DIC, read(), and ILIAS\Repository\user().
ilCalendarAuthenticationToken::add | ( | ) |
Definition at line 155 of file class.ilCalendarAuthenticationToken.php.
References $query, createToken(), getCalendar(), getSelectionType(), getToken(), and getUserId().
|
protected |
Definition at line 169 of file class.ilCalendarAuthenticationToken.php.
References getSelectionType(), and getUserId().
Referenced by add().
ilCalendarAuthenticationToken::getCalendar | ( | ) |
Definition at line 105 of file class.ilCalendarAuthenticationToken.php.
References $calendar.
Referenced by add().
ilCalendarAuthenticationToken::getIcal | ( | ) |
Definition at line 115 of file class.ilCalendarAuthenticationToken.php.
References $ical.
Referenced by storeIcal().
ilCalendarAuthenticationToken::getSelectionType | ( | ) |
Definition at line 85 of file class.ilCalendarAuthenticationToken.php.
References $selection_type.
Referenced by add(), and createToken().
ilCalendarAuthenticationToken::getToken | ( | ) |
Definition at line 120 of file class.ilCalendarAuthenticationToken.php.
References $token.
Referenced by add(), read(), and storeIcal().
ilCalendarAuthenticationToken::getUserId | ( | ) |
Definition at line 90 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 144 of file class.ilCalendarAuthenticationToken.php.
References ilCalendarSettings\_getInstance().
|
static |
Definition at line 55 of file class.ilCalendarAuthenticationToken.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarSubscriptionGUI\createToken().
|
static |
Definition at line 71 of file class.ilCalendarAuthenticationToken.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarRemoteAccessHandler\initTokenHandler().
|
protected |
Definition at line 175 of file class.ilCalendarAuthenticationToken.php.
References $query, $res, ILIAS\UI\examples\Symbol\Glyph\Calendar\calendar(), ilDBConstants\FETCHMODE_OBJECT, getToken(), getUserId(), and ILIAS\Repository\int().
Referenced by __construct().
ilCalendarAuthenticationToken::setCalendar | ( | int | $a_cal | ) |
Definition at line 100 of file class.ilCalendarAuthenticationToken.php.
References ILIAS\UI\examples\Symbol\Glyph\Calendar\calendar().
ilCalendarAuthenticationToken::setIcal | ( | string | $ical | ) |
Definition at line 110 of file class.ilCalendarAuthenticationToken.php.
References $ical.
ilCalendarAuthenticationToken::setSelectionType | ( | int | $a_type | ) |
Definition at line 95 of file class.ilCalendarAuthenticationToken.php.
ilCalendarAuthenticationToken::storeIcal | ( | ) |
Definition at line 125 of file class.ilCalendarAuthenticationToken.php.
References getIcal(), getToken(), and getUserId().
|
private |
Definition at line 37 of file class.ilCalendarAuthenticationToken.php.
Referenced by getCalendar().
|
protected |
Definition at line 42 of file class.ilCalendarAuthenticationToken.php.
|
private |
Definition at line 39 of file class.ilCalendarAuthenticationToken.php.
|
private |
Definition at line 40 of file class.ilCalendarAuthenticationToken.php.
|
private |
Definition at line 36 of file class.ilCalendarAuthenticationToken.php.
Referenced by getSelectionType().
|
private |
Definition at line 35 of file class.ilCalendarAuthenticationToken.php.
Referenced by getToken().
|
private |
Definition at line 33 of file class.ilCalendarAuthenticationToken.php.
Referenced by getUserId().
const ilCalendarAuthenticationToken::SELECTION_CALENDAR = 3 |
Definition at line 31 of file class.ilCalendarAuthenticationToken.php.
Referenced by ilCalendarSubscriptionGUI\getModalForSubscription(), ilCalendarRemoteAccessHandler\handleRequest(), and ilCalendarSubscriptionGUI\show().
const ilCalendarAuthenticationToken::SELECTION_CATEGORY = 2 |
Definition at line 30 of file class.ilCalendarAuthenticationToken.php.
const ilCalendarAuthenticationToken::SELECTION_NONE = 0 |
Definition at line 28 of file class.ilCalendarAuthenticationToken.php.
const ilCalendarAuthenticationToken::SELECTION_PD = 1 |
Definition at line 29 of file class.ilCalendarAuthenticationToken.php.
Referenced by ilCalendarSubscriptionGUI\getModalForSubscription(), and ilCalendarSubscriptionGUI\show().