ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Public Member Functions | |
__construct () | |
getRefId () | |
setRefId (int $ref_id) | |
getObjId () | |
setObjId (int $obj_id) | |
getUsrId () | |
setUsrId (int $usr_id) | |
getToken () | |
setToken (string $token) | |
getValidUntil () | |
setValidUntil (string $valid_until) | |
getLrsTypeId () | |
setLrsTypeId (int $lrs_type_id) | |
getCmi5Session () | |
setCmi5Session (string $cmi5_session) | |
getCmi5SessionData () | |
setCmi5SessionData (string $cmi5_session_data) | |
getReturnedForCmi5Session () | |
setReturnedForCmi5Session (string $returned_for_cmi5_session) | |
update () | |
delete () | |
Static Public Member Functions | |
static | insertToken ($usrId, $refId, $objId, $lrsTypeId, $a_token, $a_time) |
static | deleteTokenByObjIdAndUsrId (int $objId, int $usrId) |
static | deleteTokenByObjIdAndRefIdAndUsrId (int $objId, int $refId, int $usrId) |
static | deleteExpiredTokens () |
static | selectCurrentTimestamp () |
static | createToken () |
static | fillToken (int $usrId, int $refId, int $objId, int $lrsTypeId=0) |
static | getInstanceByToken (string $token) |
static | getInstanceByObjIdAndUsrId (int $objId, int $usrId, bool $checkValid=true) |
static | getInstanceByObjIdAndRefIdAndUsrId (int $objId, int $refId, int $usrId, bool $checkValid=true) |
static | getCmi5SessionByUsrIdAndObjIdAndRefId (int $usrId, int $objId, ?int $refId=null) |
static | getWacSalt () |
Data Fields | |
const | DB_TABLE_NAME = 'cmix_token' |
const | OPENSSL_ENCRYPTION_METHOD = 'aes128' |
const | OPENSSL_IV = '1234567890123456' |
Protected Attributes | |
int | $ref_id |
int | $obj_id |
int | $usr_id |
string | $token |
string | $valid_until |
int | $lrs_type_id |
string | $cmi5_session = null |
string | $cmi5_session_data |
string | $returned_for_cmi5_session = null |
ilDBInterface | $db |
Definition at line 30 of file class.ilCmiXapiAuthToken.php.
ilCmiXapiAuthToken::__construct | ( | ) |
|
static |
Definition at line 249 of file class.ilCmiXapiAuthToken.php.
ilCmiXapiAuthToken::delete | ( | ) |
Definition at line 217 of file class.ilCmiXapiAuthToken.php.
References $DIC, getObjId(), getRefId(), and getUsrId().
|
static |
|
static |
Definition at line 205 of file class.ilCmiXapiAuthToken.php.
References $DIC.
|
static |
|
static |
Definition at line 254 of file class.ilCmiXapiAuthToken.php.
References Vendor\Package\$e, $token, IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by ilLTIConsumerContentGUI\getLaunchParameters(), ilLTIConsumerContentGUI\getStartButtonTxt11(), ilLTIConsumerContentGUI\getStartButtonTxt13(), and ilCmiXapiLaunchGUI\getValidToken().
ilCmiXapiAuthToken::getCmi5Session | ( | ) |
Definition at line 124 of file class.ilCmiXapiAuthToken.php.
References $cmi5_session.
Referenced by update().
|
static |
ilCmiXapiException |
Definition at line 393 of file class.ilCmiXapiAuthToken.php.
Referenced by ilObjCmiXapi\getSessionId().
ilCmiXapiAuthToken::getCmi5SessionData | ( | ) |
Definition at line 134 of file class.ilCmiXapiAuthToken.php.
References $cmi5_session_data.
Referenced by update().
|
static |
ilCmiXapiException |
Definition at line 358 of file class.ilCmiXapiAuthToken.php.
References $DIC.
|
static |
ilCmiXapiException |
Definition at line 323 of file class.ilCmiXapiAuthToken.php.
References $DIC.
|
static |
ilCmiXapiException |
Definition at line 291 of file class.ilCmiXapiAuthToken.php.
Referenced by ilCmiXapiLaunchGUI\CMI5preLaunch(), XapiProxy\XapiProxyRequest\handleGetStatementsRequest(), ilLTIConsumerResultService\handleRequest(), and XapiProxy\XapiProxyPolyFill\initLrs().
ilCmiXapiAuthToken::getLrsTypeId | ( | ) |
Definition at line 114 of file class.ilCmiXapiAuthToken.php.
References $lrs_type_id.
Referenced by update().
ilCmiXapiAuthToken::getObjId | ( | ) |
Definition at line 74 of file class.ilCmiXapiAuthToken.php.
References $obj_id.
Referenced by delete(), ilCmiXapiUser\getCMI5RegistrationFromAuthToken(), and update().
ilCmiXapiAuthToken::getRefId | ( | ) |
Definition at line 64 of file class.ilCmiXapiAuthToken.php.
References $ref_id.
Referenced by delete(), ilCmiXapiUser\getRegistrationFromAuthToken(), and update().
ilCmiXapiAuthToken::getReturnedForCmi5Session | ( | ) |
Definition at line 144 of file class.ilCmiXapiAuthToken.php.
References $returned_for_cmi5_session.
Referenced by update().
ilCmiXapiAuthToken::getToken | ( | ) |
Definition at line 94 of file class.ilCmiXapiAuthToken.php.
References $token.
Referenced by update().
ilCmiXapiAuthToken::getUsrId | ( | ) |
Definition at line 84 of file class.ilCmiXapiAuthToken.php.
References $usr_id.
Referenced by delete(), ilCmiXapiUser\getCMI5RegistrationFromAuthToken(), ilCmiXapiUser\getRegistrationFromAuthToken(), and update().
ilCmiXapiAuthToken::getValidUntil | ( | ) |
Definition at line 104 of file class.ilCmiXapiAuthToken.php.
References $valid_until.
Referenced by update().
|
static |
ilCmiXapiException |
Definition at line 416 of file class.ilCmiXapiAuthToken.php.
Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().
|
static |
|
static |
Definition at line 238 of file class.ilCmiXapiAuthToken.php.
References $DIC.
Referenced by ilCmiXapiResult\insert(), and ilCmiXapiResult\update().
ilCmiXapiAuthToken::setCmi5Session | ( | string | $cmi5_session | ) |
ilCmiXapiAuthToken::setCmi5SessionData | ( | string | $cmi5_session_data | ) |
Definition at line 139 of file class.ilCmiXapiAuthToken.php.
References $cmi5_session_data.
ilCmiXapiAuthToken::setLrsTypeId | ( | int | $lrs_type_id | ) |
ilCmiXapiAuthToken::setObjId | ( | int | $obj_id | ) |
ilCmiXapiAuthToken::setRefId | ( | int | $ref_id | ) |
ilCmiXapiAuthToken::setReturnedForCmi5Session | ( | string | $returned_for_cmi5_session | ) |
Definition at line 149 of file class.ilCmiXapiAuthToken.php.
References $returned_for_cmi5_session.
ilCmiXapiAuthToken::setToken | ( | string | $token | ) |
ilCmiXapiAuthToken::setUsrId | ( | int | $usr_id | ) |
ilCmiXapiAuthToken::setValidUntil | ( | string | $valid_until | ) |
ilCmiXapiAuthToken::update | ( | ) |
Definition at line 154 of file class.ilCmiXapiAuthToken.php.
References getCmi5Session(), getCmi5SessionData(), getLrsTypeId(), getObjId(), getRefId(), getReturnedForCmi5Session(), getToken(), getUsrId(), and getValidUntil().
|
protected |
Definition at line 50 of file class.ilCmiXapiAuthToken.php.
Referenced by getCmi5Session(), and setCmi5Session().
|
protected |
Definition at line 52 of file class.ilCmiXapiAuthToken.php.
Referenced by getCmi5SessionData(), and setCmi5SessionData().
|
protected |
Definition at line 56 of file class.ilCmiXapiAuthToken.php.
|
protected |
Definition at line 48 of file class.ilCmiXapiAuthToken.php.
Referenced by getLrsTypeId(), and setLrsTypeId().
|
protected |
Definition at line 40 of file class.ilCmiXapiAuthToken.php.
Referenced by getObjId(), and setObjId().
|
protected |
Definition at line 38 of file class.ilCmiXapiAuthToken.php.
Referenced by getRefId(), and setRefId().
|
protected |
Definition at line 54 of file class.ilCmiXapiAuthToken.php.
Referenced by getReturnedForCmi5Session(), and setReturnedForCmi5Session().
|
protected |
Definition at line 44 of file class.ilCmiXapiAuthToken.php.
Referenced by fillToken(), getToken(), and setToken().
|
protected |
Definition at line 42 of file class.ilCmiXapiAuthToken.php.
Referenced by getUsrId(), and setUsrId().
|
protected |
Definition at line 46 of file class.ilCmiXapiAuthToken.php.
Referenced by getValidUntil(), and setValidUntil().
const ilCmiXapiAuthToken::DB_TABLE_NAME = 'cmix_token' |
Definition at line 32 of file class.ilCmiXapiAuthToken.php.
const ilCmiXapiAuthToken::OPENSSL_ENCRYPTION_METHOD = 'aes128' |
Definition at line 34 of file class.ilCmiXapiAuthToken.php.
Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().
const ilCmiXapiAuthToken::OPENSSL_IV = '1234567890123456' |
Definition at line 36 of file class.ilCmiXapiAuthToken.php.
Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().