ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Public Member Functions | |
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 ($lrs_type_id) | |
getCmi5Session () | |
setCmi5Session ($cmi5_session) | |
getCmi5SessionData () | |
setCmi5SessionData ($cmi5_session_data) | |
getReturnedForCmi5Session () | |
setReturnedForCmi5Session ($returned_for_cmi5_session) | |
update () | |
delete () | |
Static Public Member Functions | |
static | insertToken ($usrId, $refId, $objId, $lrsTypeId, $a_token, $a_time) |
static | deleteTokenByObjIdAndUsrId ($objId, $usrId) |
static | deleteTokenByObjIdAndRefIdAndUsrId ($objId, $refId, $usrId) |
static | deleteExpiredTokens () |
static | selectCurrentTimestamp () |
static | createToken () |
static | fillToken ($usrId, $refId, $objId, $lrsTypeId=0) |
static | getInstanceByToken ($token) |
static | getInstanceByObjIdAndUsrId ($objId, $usrId, $checkValid=true) |
static | getInstanceByObjIdAndRefIdAndUsrId ($objId, $refId, $usrId, $checkValid=true) |
static | getCmi5SessionByUsrIdAndObjIdAndRefId (int $usrId, int $objId, $refId=null) |
static | getWacSalt () |
Data Fields | |
const | DB_TABLE_NAME = 'cmix_token' |
const | OPENSSL_ENCRYPTION_METHOD = 'aes128' |
const | OPENSSL_IV = '1234567890123456' |
Protected Attributes | |
$ref_id | |
$obj_id | |
$usr_id | |
$token | |
$valid_until | |
$lrs_type_id | |
$cmi5_session | |
$cmi5_session_data | |
$returned_for_cmi5_session | |
Definition at line 15 of file class.ilCmiXapiAuthToken.php.
|
static |
Definition at line 315 of file class.ilCmiXapiAuthToken.php.
ilCmiXapiAuthToken::delete | ( | ) |
Definition at line 280 of file class.ilCmiXapiAuthToken.php.
References $DIC, $ilDB, $query, getObjId(), getRefId(), and getUsrId().
|
static |
|
static |
|
static |
|
static |
Definition at line 320 of file class.ilCmiXapiAuthToken.php.
References Vendor\Package\$e, $objId, $refId, $token, IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by ilLTIConsumerEmbeddedContentGUI\getLaunchParameters(), ilCmiXapiLaunchGUI\getValidToken(), and ilObjLTIConsumerGUI\initInfoScreenToolbar().
ilCmiXapiAuthToken::getCmi5Session | ( | ) |
Definition at line 168 of file class.ilCmiXapiAuthToken.php.
References $cmi5_session.
Referenced by update().
|
static |
int | $usrId | |
int | $objId | |
int | $refId |
ilCmiXapiException |
Definition at line 484 of file class.ilCmiXapiAuthToken.php.
References $DIC, $ilDB, $query, $refId, and $result.
Referenced by ilObjCmiXapi\getSessionId().
ilCmiXapiAuthToken::getCmi5SessionData | ( | ) |
Definition at line 184 of file class.ilCmiXapiAuthToken.php.
References $cmi5_session_data.
Referenced by update().
|
static |
int | $objId | |
int | $refId | |
int | $usrId |
ilCmiXapiException |
Definition at line 434 of file class.ilCmiXapiAuthToken.php.
References $DIC, $ilDB, $objId, $query, $refId, and $result.
|
static |
int | $objId | |
int | $usrId |
ilCmiXapiException |
Definition at line 394 of file class.ilCmiXapiAuthToken.php.
References $DIC, $ilDB, $objId, $query, and $result.
|
static |
$token |
ilCmiXapiException |
Definition at line 359 of file class.ilCmiXapiAuthToken.php.
References $DIC, $query, $res, and $token.
Referenced by ilCmiXapiLaunchGUI\CMI5preLaunch(), XapiProxy\XapiProxyRequest\handleGetStatementsRequest(), ilLTIConsumerResultService\handleRequest(), and XapiProxy\XapiProxyPolyFill\initLrs().
ilCmiXapiAuthToken::getLrsTypeId | ( | ) |
Definition at line 152 of file class.ilCmiXapiAuthToken.php.
References $lrs_type_id.
Referenced by update().
ilCmiXapiAuthToken::getObjId | ( | ) |
Definition at line 88 of file class.ilCmiXapiAuthToken.php.
References $obj_id.
Referenced by delete(), ilCmiXapiUser\getCMI5RegistrationFromAuthToken(), and update().
ilCmiXapiAuthToken::getRefId | ( | ) |
Definition at line 72 of file class.ilCmiXapiAuthToken.php.
References $ref_id.
Referenced by delete(), ilCmiXapiUser\getRegistrationFromAuthToken(), and update().
ilCmiXapiAuthToken::getReturnedForCmi5Session | ( | ) |
Definition at line 200 of file class.ilCmiXapiAuthToken.php.
References $returned_for_cmi5_session.
Referenced by update().
ilCmiXapiAuthToken::getToken | ( | ) |
Definition at line 120 of file class.ilCmiXapiAuthToken.php.
References $token.
Referenced by update().
ilCmiXapiAuthToken::getUsrId | ( | ) |
Definition at line 104 of file class.ilCmiXapiAuthToken.php.
References $usr_id.
Referenced by delete(), ilCmiXapiUser\getCMI5RegistrationFromAuthToken(), ilCmiXapiUser\getRegistrationFromAuthToken(), and update().
ilCmiXapiAuthToken::getValidUntil | ( | ) |
Definition at line 136 of file class.ilCmiXapiAuthToken.php.
References $valid_until.
Referenced by update().
|
static |
ilCmiXapiException |
Definition at line 511 of file class.ilCmiXapiAuthToken.php.
Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().
|
static |
|
static |
Definition at line 303 of file class.ilCmiXapiAuthToken.php.
References $DIC, $ilDB, $query, and $result.
Referenced by ilCmiXapiResult\insert(), and ilCmiXapiResult\update().
ilCmiXapiAuthToken::setCmi5Session | ( | $cmi5_session | ) |
string | $cmi5_session |
Definition at line 176 of file class.ilCmiXapiAuthToken.php.
References $cmi5_session.
ilCmiXapiAuthToken::setCmi5SessionData | ( | $cmi5_session_data | ) |
string | $cmi5_session_data |
Definition at line 192 of file class.ilCmiXapiAuthToken.php.
References $cmi5_session_data.
ilCmiXapiAuthToken::setLrsTypeId | ( | $lrs_type_id | ) |
mixed | $lrs_type_id |
Definition at line 160 of file class.ilCmiXapiAuthToken.php.
References $lrs_type_id.
ilCmiXapiAuthToken::setObjId | ( | int | $obj_id | ) |
int | $obj_id |
Definition at line 96 of file class.ilCmiXapiAuthToken.php.
References $obj_id.
ilCmiXapiAuthToken::setRefId | ( | int | $ref_id | ) |
int | $ref_id |
Definition at line 80 of file class.ilCmiXapiAuthToken.php.
References $ref_id.
ilCmiXapiAuthToken::setReturnedForCmi5Session | ( | $returned_for_cmi5_session | ) |
string | $returned_for_cmi5_session |
Definition at line 208 of file class.ilCmiXapiAuthToken.php.
References $returned_for_cmi5_session.
ilCmiXapiAuthToken::setToken | ( | string | $token | ) |
string | $token |
Definition at line 128 of file class.ilCmiXapiAuthToken.php.
References $token.
ilCmiXapiAuthToken::setUsrId | ( | int | $usr_id | ) |
int | $usr_id |
Definition at line 112 of file class.ilCmiXapiAuthToken.php.
References $usr_id.
ilCmiXapiAuthToken::setValidUntil | ( | string | $valid_until | ) |
string | $valid_until |
Definition at line 144 of file class.ilCmiXapiAuthToken.php.
References $valid_until.
ilCmiXapiAuthToken::update | ( | ) |
Definition at line 213 of file class.ilCmiXapiAuthToken.php.
References $DIC, getCmi5Session(), getCmi5SessionData(), getLrsTypeId(), getObjId(), getRefId(), getReturnedForCmi5Session(), getToken(), getUsrId(), and getValidUntil().
|
protected |
Definition at line 57 of file class.ilCmiXapiAuthToken.php.
Referenced by getCmi5Session(), and setCmi5Session().
|
protected |
Definition at line 62 of file class.ilCmiXapiAuthToken.php.
Referenced by getCmi5SessionData(), and setCmi5SessionData().
|
protected |
Definition at line 52 of file class.ilCmiXapiAuthToken.php.
Referenced by getLrsTypeId(), and setLrsTypeId().
|
protected |
Definition at line 32 of file class.ilCmiXapiAuthToken.php.
Referenced by getObjId(), and setObjId().
|
protected |
Definition at line 27 of file class.ilCmiXapiAuthToken.php.
Referenced by getRefId(), and setRefId().
|
protected |
Definition at line 67 of file class.ilCmiXapiAuthToken.php.
Referenced by getReturnedForCmi5Session(), and setReturnedForCmi5Session().
|
protected |
Definition at line 42 of file class.ilCmiXapiAuthToken.php.
Referenced by fillToken(), getInstanceByToken(), getToken(), and setToken().
|
protected |
Definition at line 37 of file class.ilCmiXapiAuthToken.php.
Referenced by getUsrId(), and setUsrId().
|
protected |
Definition at line 47 of file class.ilCmiXapiAuthToken.php.
Referenced by getValidUntil(), and setValidUntil().
const ilCmiXapiAuthToken::DB_TABLE_NAME = 'cmix_token' |
Definition at line 18 of file class.ilCmiXapiAuthToken.php.
const ilCmiXapiAuthToken::OPENSSL_ENCRYPTION_METHOD = 'aes128' |
Definition at line 20 of file class.ilCmiXapiAuthToken.php.
Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().
const ilCmiXapiAuthToken::OPENSSL_IV = '1234567890123456' |
Definition at line 22 of file class.ilCmiXapiAuthToken.php.
Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().