ILIAS
Release_4_2_x_branch Revision 61807
|
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 |
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 33 of file class.ilCalendarAuthenticationToken.php.
References read().
ilCalendarAuthenticationToken::add | ( | ) |
Add token.
Definition at line 188 of file class.ilCalendarAuthenticationToken.php.
References $ilDB, $query, createToken(), getCalendar(), getSelectionType(), getToken(), and getUserId().
|
protected |
Create a new token.
Definition at line 210 of file class.ilCalendarAuthenticationToken.php.
References getSelectionType(), and getUserId().
Referenced by add().
ilCalendarAuthenticationToken::getCalendar | ( | ) |
Definition at line 115 of file class.ilCalendarAuthenticationToken.php.
References $calendar.
Referenced by add().
ilCalendarAuthenticationToken::getIcal | ( | ) |
get stored ical
Definition at line 129 of file class.ilCalendarAuthenticationToken.php.
References $ical.
Referenced by storeIcal().
ilCalendarAuthenticationToken::getSelectionType | ( | ) |
get selection type for key
Definition at line 80 of file class.ilCalendarAuthenticationToken.php.
References $selection_type.
Referenced by add(), and createToken().
ilCalendarAuthenticationToken::getToken | ( | ) |
get token
Definition at line 139 of file class.ilCalendarAuthenticationToken.php.
References $token.
Referenced by add(), and storeIcal().
ilCalendarAuthenticationToken::getUserId | ( | ) |
Get current user.
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 169 of file class.ilCalendarAuthenticationToken.php.
References ilCalendarSettings\_getInstance().
|
static |
Definition at line 41 of file class.ilCalendarAuthenticationToken.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilCalendarBlockGUI\showCalendarSubscription().
|
static |
Lookup user by hash.
object | $a_token |
Definition at line 62 of file class.ilCalendarAuthenticationToken.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilAuthContainerCalendarToken\fetchData(), and ilCalendarRemoteAccessHandler\initTokenHandler().
|
protected |
Read key.
Definition at line 219 of file class.ilCalendarAuthenticationToken.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and getUserId().
Referenced by __construct().
ilCalendarAuthenticationToken::setCalendar | ( | $a_cal | ) |
set calendar id
object | $a_cal |
Definition at line 110 of file class.ilCalendarAuthenticationToken.php.
ilCalendarAuthenticationToken::setIcal | ( | $ical | ) |
Definition at line 120 of file class.ilCalendarAuthenticationToken.php.
References $ical.
ilCalendarAuthenticationToken::setSelectionType | ( | $a_type | ) |
set selection type
int | $a_type |
Definition at line 100 of file class.ilCalendarAuthenticationToken.php.
Referenced by ilCalendarBlockGUI\showCalendarSubscription().
ilCalendarAuthenticationToken::storeIcal | ( | ) |
store ical
Definition at line 148 of file class.ilCalendarAuthenticationToken.php.
References $ilDB, getIcal(), getToken(), and getUserId().
|
private |
Definition at line 22 of file class.ilCalendarAuthenticationToken.php.
Referenced by getCalendar().
|
private |
Definition at line 24 of file class.ilCalendarAuthenticationToken.php.
|
private |
Definition at line 25 of file class.ilCalendarAuthenticationToken.php.
|
private |
Definition at line 21 of file class.ilCalendarAuthenticationToken.php.
Referenced by getSelectionType().
|
private |
Definition at line 20 of file class.ilCalendarAuthenticationToken.php.
Referenced by getToken().
|
private |
Definition at line 18 of file class.ilCalendarAuthenticationToken.php.
Referenced by getUserId().
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().