ILIAS  release_7 Revision v7.30-3-g800a261c036
ilCmiXapiAuthToken Class Reference
+ Collaboration diagram for ilCmiXapiAuthToken:

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
 

Detailed Description

Definition at line 15 of file class.ilCmiXapiAuthToken.php.

Member Function Documentation

◆ createToken()

static ilCmiXapiAuthToken::createToken ( )
static

Definition at line 314 of file class.ilCmiXapiAuthToken.php.

315 {
316 return (new \Ramsey\Uuid\UuidFactory())->uuid4()->toString();
317 }

Referenced by fillToken().

+ Here is the caller graph for this function:

◆ delete()

ilCmiXapiAuthToken::delete ( )

Definition at line 279 of file class.ilCmiXapiAuthToken.php.

280 {
281 global $DIC; /* @var \ILIAS\DI\Container $DIC */
282 $ilDB = $DIC->database();
283
284 $query = "
285 DELETE FROM " . self::DB_TABLE_NAME . "
286 WHERE obj_id = %s AND ref_id = %s AND usr_id = %s
287 ";
288
289 $ilDB->manipulateF($query, array('integer', 'integer', 'integer'), array($this->getObjId(), $this->getRefId(), $this->getUsrId()));
290 }
global $DIC
Definition: goto.php:24
$query
global $ilDB

References $DIC, $ilDB, $query, getObjId(), getRefId(), and getUsrId().

+ Here is the call graph for this function:

◆ deleteExpiredTokens()

static ilCmiXapiAuthToken::deleteExpiredTokens ( )
static

Definition at line 292 of file class.ilCmiXapiAuthToken.php.

293 {
294 global $DIC; /* @var \ILIAS\DI\Container $DIC */
295 $ilDB = $DIC->database();
296
297 $query = "DELETE FROM " . self::DB_TABLE_NAME . " WHERE valid_until < CURRENT_TIMESTAMP";
298 $ilDB->manipulate($query);
299 }

References $DIC, $ilDB, and $query.

Referenced by fillToken().

+ Here is the caller graph for this function:

◆ deleteTokenByObjIdAndRefIdAndUsrId()

static ilCmiXapiAuthToken::deleteTokenByObjIdAndRefIdAndUsrId (   $objId,
  $refId,
  $usrId 
)
static

Definition at line 266 of file class.ilCmiXapiAuthToken.php.

267 {
268 global $DIC; /* @var \ILIAS\DI\Container $DIC */
269 $ilDB = $DIC->database();
270
271 $query = "
272 DELETE FROM " . self::DB_TABLE_NAME . "
273 WHERE obj_id = %s AND ref_id = %s AND usr_id = %s
274 ";
275
276 $ilDB->manipulateF($query, array('integer', 'integer', 'integer'), array($objId, $refId, $usrId));
277 }
$objId
Definition: xapitoken.php:39
$refId
Definition: xapitoken.php:40

References $DIC, $ilDB, $objId, $query, and $refId.

◆ deleteTokenByObjIdAndUsrId()

static ilCmiXapiAuthToken::deleteTokenByObjIdAndUsrId (   $objId,
  $usrId 
)
static

Definition at line 253 of file class.ilCmiXapiAuthToken.php.

254 {
255 global $DIC; /* @var \ILIAS\DI\Container $DIC */
256 $ilDB = $DIC->database();
257
258 $query = "
259 DELETE FROM " . self::DB_TABLE_NAME . "
260 WHERE obj_id = %s AND usr_id = %s
261 ";
262
263 $ilDB->manipulateF($query, array('integer', 'integer'), array($objId, $usrId));
264 }

References $DIC, $ilDB, $objId, and $query.

◆ fillToken()

static ilCmiXapiAuthToken::fillToken (   $usrId,
  $refId,
  $objId,
  $lrsTypeId = 0 
)
static

Definition at line 319 of file class.ilCmiXapiAuthToken.php.

320 {
321 //$seconds = $this->getTimeToDelete();
322 $seconds = 86400; // TODO: invalidation interval
323
324 $nowTimeDT = self::selectCurrentTimestamp();
325
326 $nowTime = new ilDateTime($nowTimeDT, IL_CAL_DATETIME);
327
328 $nowTimeTS = $nowTime->get(IL_CAL_UNIX);
329 $newTimeTS = $nowTimeTS + $seconds;
330
331 $newTime = new ilDateTime($newTimeTS, IL_CAL_UNIX);
332
333 //self::deleteTokenByObjIdAndUsrId($object->getId(), $usrId);
334
335 try {
336 $tokenObject = self::getInstanceByObjIdAndRefIdAndUsrId($objId, $refId, $usrId, false);
337 $tokenObject->setValidUntil($newTime->get(IL_CAL_DATETIME));
338 $tokenObject->update();
339
340 $token = $tokenObject->getToken();
341 } catch (ilCmiXapiException $e) {
343 self::insertToken($usrId, $refId, $objId, $lrsTypeId, $token, $newTime->get(IL_CAL_DATETIME));
344 }
345
346 // TODO: move to cronjob ;-)
347 // TODO: check cmi5 sessions of token and if not terminated -> abandoned statement
349
350 return $token;
351 }
const IL_CAL_UNIX
const IL_CAL_DATETIME
static getInstanceByObjIdAndRefIdAndUsrId($objId, $refId, $usrId, $checkValid=true)
static insertToken($usrId, $refId, $objId, $lrsTypeId, $a_token, $a_time)
@classDescription Date and time handling

References Vendor\Package\$e, $objId, $refId, $token, createToken(), deleteExpiredTokens(), getInstanceByObjIdAndRefIdAndUsrId(), IL_CAL_DATETIME, IL_CAL_UNIX, insertToken(), and selectCurrentTimestamp().

Referenced by ilLTIConsumerContentGUI\getLaunchParameters(), ilLTIConsumerContentGUI\getStartButtonTxt11(), and ilCmiXapiLaunchGUI\getValidToken().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCmi5Session()

ilCmiXapiAuthToken::getCmi5Session ( )
Returns
string

Definition at line 167 of file class.ilCmiXapiAuthToken.php.

References $cmi5_session.

Referenced by update().

+ Here is the caller graph for this function:

◆ getCmi5SessionByUsrIdAndObjIdAndRefId()

static ilCmiXapiAuthToken::getCmi5SessionByUsrIdAndObjIdAndRefId ( int  $usrId,
int  $objId,
  $refId = null 
)
static
Parameters
int$usrId
int$objId
int$refId
Returns
string
Exceptions
ilCmiXapiException

Definition at line 483 of file class.ilCmiXapiAuthToken.php.

484 {
485 global $DIC;
486 $ilDB = $DIC->database();
487 if (empty($refId)) {
488 $query = "SELECT cmi5_session FROM " . self::DB_TABLE_NAME . " WHERE usr_id = %s AND obj_id = %s";
489 $result = $ilDB->queryF($query, array('integer', 'integer'), array($usrId, $objId));
490 } else {
491 $query = "SELECT cmi5_session FROM " . self::DB_TABLE_NAME . " WHERE usr_id = %s AND obj_id = %s AND ref_id = %s";
492 $result = $ilDB->queryF($query, array('integer', 'integer', 'integer'), array($usrId, $objId, $refId));
493 }
494
495 $row = $ilDB->fetchAssoc($result);
496
497 if ($row && $row['cmi5_session'] != '') {
498 return $row['cmi5_session'];
499 }
500 throw new ilCmiXapiException('no valid cmi5_session found for: ' . $objId . '/' . $usrId);
501 }
$result

References $DIC, $ilDB, $objId, $query, $refId, and $result.

Referenced by ilObjCmiXapi\getSessionId().

+ Here is the caller graph for this function:

◆ getCmi5SessionData()

ilCmiXapiAuthToken::getCmi5SessionData ( )
Returns
string

Definition at line 183 of file class.ilCmiXapiAuthToken.php.

References $cmi5_session_data.

Referenced by update().

+ Here is the caller graph for this function:

◆ getInstanceByObjIdAndRefIdAndUsrId()

static ilCmiXapiAuthToken::getInstanceByObjIdAndRefIdAndUsrId (   $objId,
  $refId,
  $usrId,
  $checkValid = true 
)
static
Parameters
int$objId
int$refId
int$usrId
Returns
ilCmiXapiAuthToken
Exceptions
ilCmiXapiException

Definition at line 433 of file class.ilCmiXapiAuthToken.php.

434 {
435 global $DIC; /* @var \ILIAS\DI\Container $DIC */
436 $ilDB = $DIC->database();
437
438 $query = "SELECT * FROM " . self::DB_TABLE_NAME . " WHERE obj_id = %s AND ref_id = %s AND usr_id = %s";
439
440 if ($checkValid) {
441 $query .= " AND valid_until > CURRENT_TIMESTAMP";
442 }
443
444 $result = $ilDB->queryF($query, array('integer', 'integer', 'integer'), array($objId, $refId, $usrId));
445
446 $row = $ilDB->fetchAssoc($result);
447
448 if ($row) {
449 $tokenObject = new self();
450 $tokenObject->setToken($row['token']);
451 $tokenObject->setValidUntil($row['valid_until']);
452 $tokenObject->setUsrId($row['usr_id']);
453 $tokenObject->setObjId($row['obj_id']);
454 $tokenObject->setRefId($row['ref_id']);
455 $tokenObject->setLrsTypeId($row['lrs_type_id']);
456 $tokenObject->setCmi5Session($row['cmi5_session']);
457 $tokenObject->setReturnedForCmi5Session($row['returned_for_cmi5_session']);
458 $tokenObject->setCmi5SessionData($row['cmi5_session_data']);
459
460 return $tokenObject;
461 }
462
463 throw new ilCmiXapiException('no valid token found for: ' . $objId . '/' . $usrId);
464 }

References $DIC, $ilDB, $objId, $query, $refId, and $result.

Referenced by fillToken().

+ Here is the caller graph for this function:

◆ getInstanceByObjIdAndUsrId()

static ilCmiXapiAuthToken::getInstanceByObjIdAndUsrId (   $objId,
  $usrId,
  $checkValid = true 
)
static
Parameters
int$objId
int$usrId
Returns
ilCmiXapiAuthToken
Exceptions
ilCmiXapiException

Definition at line 393 of file class.ilCmiXapiAuthToken.php.

394 {
395 global $DIC; /* @var \ILIAS\DI\Container $DIC */
396 $ilDB = $DIC->database();
397
398 $query = "SELECT * FROM " . self::DB_TABLE_NAME . " WHERE obj_id = %s AND usr_id = %s";
399
400 if ($checkValid) {
401 $query .= " AND valid_until > CURRENT_TIMESTAMP";
402 }
403
404 $result = $ilDB->queryF($query, array('integer', 'integer'), array($objId, $usrId));
405
406 $row = $ilDB->fetchAssoc($result);
407
408 if ($row) {
409 $tokenObject = new self();
410 $tokenObject->setToken($row['token']);
411 $tokenObject->setValidUntil($row['valid_until']);
412 $tokenObject->setUsrId($row['usr_id']);
413 $tokenObject->setObjId($row['obj_id']);
414 $tokenObject->setRefId($row['ref_id']);
415 $tokenObject->setLrsTypeId($row['lrs_type_id']);
416 $tokenObject->setCmi5Session($row['cmi5_session']);
417 $tokenObject->setReturnedForCmi5Session($row['returned_for_cmi5_session']);
418 $tokenObject->setCmi5SessionData($row['cmi5_session_data']);
419
420 return $tokenObject;
421 }
422
423 throw new ilCmiXapiException('no valid token found for: ' . $objId . '/' . $usrId);
424 }

References $DIC, $ilDB, $objId, $query, and $result.

◆ getInstanceByToken()

static ilCmiXapiAuthToken::getInstanceByToken (   $token)
static
Parameters
$token
Returns
ilCmiXapiAuthToken
Exceptions
ilCmiXapiException

Definition at line 358 of file class.ilCmiXapiAuthToken.php.

359 {
360 global $DIC; /* @var \ILIAS\DI\Container $DIC */
361
362 $query = "
363 SELECT * FROM " . self::DB_TABLE_NAME . "
364 WHERE token = %s AND valid_until > CURRENT_TIMESTAMP
365 ";
366
367 $res = $DIC->database()->queryF($query, array('text'), array($token));
368
369 while ($row = $DIC->database()->fetchAssoc($res)) {
370 $tokenObject = new self();
371 $tokenObject->setToken($token);
372 $tokenObject->setValidUntil($row['valid_until']);
373 $tokenObject->setUsrId($row['usr_id']);
374 $tokenObject->setObjId($row['obj_id']);
375 $tokenObject->setRefId($row['ref_id']);
376 $tokenObject->setLrsTypeId($row['lrs_type_id']);
377 $tokenObject->setCmi5Session($row['cmi5_session']);
378 $tokenObject->setReturnedForCmi5Session($row['returned_for_cmi5_session']);
379 $tokenObject->setCmi5SessionData($row['cmi5_session_data']);
380
381 return $tokenObject;
382 }
383
384 throw new ilCmiXapiException('no valid token found for: ' . $token);
385 }
foreach($_POST as $key=> $value) $res

References $DIC, $query, $res, and $token.

Referenced by ilCmiXapiLaunchGUI\CMI5preLaunch(), XapiProxy\XapiProxyRequest\handleGetStatementsRequest(), ilLTIConsumerResultService\handleRequest(), and XapiProxy\XapiProxyPolyFill\initLrs().

+ Here is the caller graph for this function:

◆ getLrsTypeId()

ilCmiXapiAuthToken::getLrsTypeId ( )
Returns
mixed

Definition at line 151 of file class.ilCmiXapiAuthToken.php.

References $lrs_type_id.

Referenced by update().

+ Here is the caller graph for this function:

◆ getObjId()

ilCmiXapiAuthToken::getObjId ( )
Returns
int

Definition at line 87 of file class.ilCmiXapiAuthToken.php.

87 : int
88 {
89 return $this->obj_id;
90 }

References $obj_id.

Referenced by delete(), ilCmiXapiUser\getCMI5RegistrationFromAuthToken(), and update().

+ Here is the caller graph for this function:

◆ getRefId()

ilCmiXapiAuthToken::getRefId ( )
Returns
int

Definition at line 71 of file class.ilCmiXapiAuthToken.php.

71 : int
72 {
73 return $this->ref_id;
74 }

References $ref_id.

Referenced by delete(), ilCmiXapiUser\getRegistrationFromAuthToken(), and update().

+ Here is the caller graph for this function:

◆ getReturnedForCmi5Session()

ilCmiXapiAuthToken::getReturnedForCmi5Session ( )
Returns
string

Definition at line 199 of file class.ilCmiXapiAuthToken.php.

References $returned_for_cmi5_session.

Referenced by update().

+ Here is the caller graph for this function:

◆ getToken()

ilCmiXapiAuthToken::getToken ( )
Returns
string

Definition at line 119 of file class.ilCmiXapiAuthToken.php.

119 : string
120 {
121 return $this->token;
122 }

References $token.

Referenced by update().

+ Here is the caller graph for this function:

◆ getUsrId()

ilCmiXapiAuthToken::getUsrId ( )
Returns
int

Definition at line 103 of file class.ilCmiXapiAuthToken.php.

103 : int
104 {
105 return $this->usr_id;
106 }

References $usr_id.

Referenced by delete(), ilCmiXapiUser\getCMI5RegistrationFromAuthToken(), ilCmiXapiUser\getRegistrationFromAuthToken(), and update().

+ Here is the caller graph for this function:

◆ getValidUntil()

ilCmiXapiAuthToken::getValidUntil ( )
Returns
string

Definition at line 135 of file class.ilCmiXapiAuthToken.php.

135 : string
136 {
137 return $this->valid_until;
138 }

References $valid_until.

Referenced by update().

+ Here is the caller graph for this function:

◆ getWacSalt()

static ilCmiXapiAuthToken::getWacSalt ( )
static
Returns
string
Exceptions
ilCmiXapiException

Definition at line 507 of file class.ilCmiXapiAuthToken.php.

508 {
509 include 'data/wacsalt.php';
510
511 if (isset($salt)) {
512 return $salt;
513 }
514
515 throw new ilCmiXapiException('no salt for encryption provided');
516 }

Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().

+ Here is the caller graph for this function:

◆ insertToken()

static ilCmiXapiAuthToken::insertToken (   $usrId,
  $refId,
  $objId,
  $lrsTypeId,
  $a_token,
  $a_time 
)
static

Definition at line 233 of file class.ilCmiXapiAuthToken.php.

234 {
235 global $DIC; /* @var \ILIAS\DI\Container $DIC */
236 $ilDB = $DIC->database();
237
238 $ilDB->insert(
239 self::DB_TABLE_NAME,
240 array(
241 'token' => array('text', $a_token),
242 'valid_until' => array('timestamp', $a_time),
243 'ref_id' => array('integer', $refId),
244 'obj_id' => array('integer', $objId),
245 'usr_id' => array('integer', $usrId),
246 'lrs_type_id' => array('integer', $lrsTypeId)
247 )
248 );
249 // 'cmi5_session' defaults always to '' by inserting
250 // 'returned_for_cmi5_session' defaults always to '' by inserting
251 }

References $DIC, $ilDB, $objId, and $refId.

Referenced by fillToken().

+ Here is the caller graph for this function:

◆ selectCurrentTimestamp()

static ilCmiXapiAuthToken::selectCurrentTimestamp ( )
static

Definition at line 302 of file class.ilCmiXapiAuthToken.php.

303 {
304 global $DIC; /* @var \ILIAS\DI\Container $DIC */
305 $ilDB = $DIC->database();
306
307 $query = "SELECT CURRENT_TIMESTAMP";
308 $result = $ilDB->query($query);
309 $row = $ilDB->fetchAssoc($result);
310
311 return $row['CURRENT_TIMESTAMP'];
312 }

References $DIC, $ilDB, $query, and $result.

Referenced by fillToken(), ilCmiXapiResult\insert(), and ilCmiXapiResult\update().

+ Here is the caller graph for this function:

◆ setCmi5Session()

ilCmiXapiAuthToken::setCmi5Session (   $cmi5_session)
Parameters
string$cmi5_session

Definition at line 175 of file class.ilCmiXapiAuthToken.php.

176 {
177 $this->cmi5_session = $cmi5_session;
178 }

References $cmi5_session.

◆ setCmi5SessionData()

ilCmiXapiAuthToken::setCmi5SessionData (   $cmi5_session_data)
Parameters
string$cmi5_session_data

Definition at line 191 of file class.ilCmiXapiAuthToken.php.

192 {
193 $this->cmi5_session_data = $cmi5_session_data;
194 }

References $cmi5_session_data.

◆ setLrsTypeId()

ilCmiXapiAuthToken::setLrsTypeId (   $lrs_type_id)
Parameters
mixed$lrs_type_id

Definition at line 159 of file class.ilCmiXapiAuthToken.php.

160 {
161 $this->lrs_type_id = $lrs_type_id;
162 }

References $lrs_type_id.

◆ setObjId()

ilCmiXapiAuthToken::setObjId ( int  $obj_id)
Parameters
int$obj_id

Definition at line 95 of file class.ilCmiXapiAuthToken.php.

96 {
97 $this->obj_id = $obj_id;
98 }

References $obj_id.

◆ setRefId()

ilCmiXapiAuthToken::setRefId ( int  $ref_id)
Parameters
int$ref_id

Definition at line 79 of file class.ilCmiXapiAuthToken.php.

80 {
81 $this->ref_id = $ref_id;
82 }

References $ref_id.

◆ setReturnedForCmi5Session()

ilCmiXapiAuthToken::setReturnedForCmi5Session (   $returned_for_cmi5_session)
Parameters
string$returned_for_cmi5_session

Definition at line 207 of file class.ilCmiXapiAuthToken.php.

208 {
209 $this->returned_for_cmi5_session = $returned_for_cmi5_session;
210 }

References $returned_for_cmi5_session.

◆ setToken()

ilCmiXapiAuthToken::setToken ( string  $token)
Parameters
string$token

Definition at line 127 of file class.ilCmiXapiAuthToken.php.

128 {
129 $this->token = $token;
130 }

References $token.

◆ setUsrId()

ilCmiXapiAuthToken::setUsrId ( int  $usr_id)
Parameters
int$usr_id

Definition at line 111 of file class.ilCmiXapiAuthToken.php.

112 {
113 $this->usr_id = $usr_id;
114 }

References $usr_id.

◆ setValidUntil()

ilCmiXapiAuthToken::setValidUntil ( string  $valid_until)
Parameters
string$valid_until

Definition at line 143 of file class.ilCmiXapiAuthToken.php.

144 {
145 $this->valid_until = $valid_until;
146 }

References $valid_until.

◆ update()

ilCmiXapiAuthToken::update ( )

Definition at line 212 of file class.ilCmiXapiAuthToken.php.

213 {
214 global $DIC; /* @var \ILIAS\DI\Container $DIC */
215 $DIC->database()->update(
216 self::DB_TABLE_NAME,
217 [
218 'valid_until' => array('timestamp', $this->getValidUntil()),
219 'ref_id' => array('integer', $this->getRefId()),
220 'obj_id' => array('integer', $this->getObjId()),
221 'usr_id' => array('integer', $this->getUsrId()),
222 'lrs_type_id' => array('integer', $this->getLrsTypeId()),
223 'cmi5_session' => array('text', $this->getCmi5Session()),
224 'returned_for_cmi5_session' => array('text', $this->getReturnedForCmi5Session()),
225 'cmi5_session_data' => array('clob', $this->getCmi5SessionData())
226 ],
227 [
228 'token' => array('text', $this->getToken()),
229 ]
230 );
231 }

References $DIC, getCmi5Session(), getCmi5SessionData(), getLrsTypeId(), getObjId(), getRefId(), getReturnedForCmi5Session(), getToken(), getUsrId(), and getValidUntil().

+ Here is the call graph for this function:

Field Documentation

◆ $cmi5_session

ilCmiXapiAuthToken::$cmi5_session
protected

Definition at line 56 of file class.ilCmiXapiAuthToken.php.

Referenced by getCmi5Session(), and setCmi5Session().

◆ $cmi5_session_data

ilCmiXapiAuthToken::$cmi5_session_data
protected

Definition at line 61 of file class.ilCmiXapiAuthToken.php.

Referenced by getCmi5SessionData(), and setCmi5SessionData().

◆ $lrs_type_id

ilCmiXapiAuthToken::$lrs_type_id
protected

Definition at line 51 of file class.ilCmiXapiAuthToken.php.

Referenced by getLrsTypeId(), and setLrsTypeId().

◆ $obj_id

ilCmiXapiAuthToken::$obj_id
protected

Definition at line 31 of file class.ilCmiXapiAuthToken.php.

Referenced by getObjId(), and setObjId().

◆ $ref_id

ilCmiXapiAuthToken::$ref_id
protected

Definition at line 26 of file class.ilCmiXapiAuthToken.php.

Referenced by getRefId(), and setRefId().

◆ $returned_for_cmi5_session

ilCmiXapiAuthToken::$returned_for_cmi5_session
protected

◆ $token

ilCmiXapiAuthToken::$token
protected

Definition at line 41 of file class.ilCmiXapiAuthToken.php.

Referenced by fillToken(), getInstanceByToken(), getToken(), and setToken().

◆ $usr_id

ilCmiXapiAuthToken::$usr_id
protected

Definition at line 36 of file class.ilCmiXapiAuthToken.php.

Referenced by getUsrId(), and setUsrId().

◆ $valid_until

ilCmiXapiAuthToken::$valid_until
protected

Definition at line 46 of file class.ilCmiXapiAuthToken.php.

Referenced by getValidUntil(), and setValidUntil().

◆ DB_TABLE_NAME

const ilCmiXapiAuthToken::DB_TABLE_NAME = 'cmix_token'

Definition at line 17 of file class.ilCmiXapiAuthToken.php.

◆ OPENSSL_ENCRYPTION_METHOD

const ilCmiXapiAuthToken::OPENSSL_ENCRYPTION_METHOD = 'aes128'

◆ OPENSSL_IV

const ilCmiXapiAuthToken::OPENSSL_IV = '1234567890123456'

The documentation for this class was generated from the following file: