ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 315 of file class.ilCmiXapiAuthToken.php.

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

◆ delete()

ilCmiXapiAuthToken::delete ( )

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

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

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

◆ deleteExpiredTokens()

static ilCmiXapiAuthToken::deleteExpiredTokens ( )
static

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

References $DIC, $ilDB, and $query.

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

◆ deleteTokenByObjIdAndRefIdAndUsrId()

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

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

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

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

◆ deleteTokenByObjIdAndUsrId()

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

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

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

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

◆ fillToken()

static ilCmiXapiAuthToken::fillToken (   $usrId,
  $refId,
  $objId,
  $lrsTypeId = 0 
)
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().

321  {
322  //$seconds = $this->getTimeToDelete();
323  $seconds = 86400; // TODO: invalidation interval
324 
325  $nowTimeDT = self::selectCurrentTimestamp();
326 
327  $nowTime = new ilDateTime($nowTimeDT, IL_CAL_DATETIME);
328 
329  $nowTimeTS = $nowTime->get(IL_CAL_UNIX);
330  $newTimeTS = $nowTimeTS + $seconds;
331 
332  $newTime = new ilDateTime($newTimeTS, IL_CAL_UNIX);
333 
334  //self::deleteTokenByObjIdAndUsrId($object->getId(), $usrId);
335 
336  try {
337  $tokenObject = self::getInstanceByObjIdAndRefIdAndUsrId($objId, $refId, $usrId, false);
338  $tokenObject->setValidUntil($newTime->get(IL_CAL_DATETIME));
339  $tokenObject->update();
340 
341  $token = $tokenObject->getToken();
342  } catch (ilCmiXapiException $e) {
343  $token = self::createToken();
344  self::insertToken($usrId, $refId, $objId, $lrsTypeId, $token, $newTime->get(IL_CAL_DATETIME));
345  }
346 
347  // TODO: move to cronjob ;-)
348  // TODO: check cmi5 sessions of token and if not terminated -> abandoned statement
349  self::deleteExpiredTokens();
350 
351  return $token;
352  }
const IL_CAL_DATETIME
$objId
Definition: xapitoken.php:41
$refId
Definition: xapitoken.php:42
const IL_CAL_UNIX
+ Here is the caller graph for this function:

◆ getCmi5Session()

ilCmiXapiAuthToken::getCmi5Session ( )
Returns
string

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

References $cmi5_session.

Referenced by update().

169  {
170  return $this->cmi5_session;
171  }
+ 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 484 of file class.ilCmiXapiAuthToken.php.

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

Referenced by ilObjCmiXapi\getSessionId().

485  {
486  global $DIC;
487  $ilDB = $DIC->database();
488  if (empty($refId)) {
489  $query = "SELECT cmi5_session FROM " . self::DB_TABLE_NAME . " WHERE usr_id = %s AND obj_id = %s";
490  $result = $ilDB->queryF($query, array('integer', 'integer'), array($usrId, $objId));
491  }
492  else
493  {
494  $query = "SELECT cmi5_session FROM " . self::DB_TABLE_NAME . " WHERE usr_id = %s AND obj_id = %s AND ref_id = %s";
495  $result = $ilDB->queryF($query, array('integer', 'integer', 'integer'), array($usrId, $objId, $refId));
496  }
497 
498  $row = $ilDB->fetchAssoc($result);
499 
500  if ($row && $row['cmi5_session'] != '')
501  {
502  return $row['cmi5_session'];
503  }
504  throw new ilCmiXapiException('no valid cmi5_session found for: ' . $objId . '/' . $usrId);
505  }
$result
$objId
Definition: xapitoken.php:41
$refId
Definition: xapitoken.php:42
$query
global $ilDB
$DIC
Definition: xapitoken.php:46
+ Here is the caller graph for this function:

◆ getCmi5SessionData()

ilCmiXapiAuthToken::getCmi5SessionData ( )
Returns
string

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

References $cmi5_session_data.

Referenced by update().

185  {
187  }
+ 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 434 of file class.ilCmiXapiAuthToken.php.

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

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

◆ getInstanceByObjIdAndUsrId()

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

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

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

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

◆ getInstanceByToken()

static ilCmiXapiAuthToken::getInstanceByToken (   $token)
static
Parameters
$token
Returns
ilCmiXapiAuthToken
Exceptions
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().

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

◆ getLrsTypeId()

ilCmiXapiAuthToken::getLrsTypeId ( )
Returns
mixed

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

References $lrs_type_id.

Referenced by update().

153  {
154  return $this->lrs_type_id;
155  }
+ Here is the caller graph for this function:

◆ getObjId()

ilCmiXapiAuthToken::getObjId ( )
Returns
int

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

References $obj_id.

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

88  : int
89  {
90  return $this->obj_id;
91  }
+ Here is the caller graph for this function:

◆ getRefId()

ilCmiXapiAuthToken::getRefId ( )
Returns
int

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

References $ref_id.

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

72  : int
73  {
74  return $this->ref_id;
75  }
+ Here is the caller graph for this function:

◆ getReturnedForCmi5Session()

ilCmiXapiAuthToken::getReturnedForCmi5Session ( )
Returns
string

Definition at line 200 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 120 of file class.ilCmiXapiAuthToken.php.

References $token.

Referenced by update().

120  : string
121  {
122  return $this->token;
123  }
+ Here is the caller graph for this function:

◆ getUsrId()

ilCmiXapiAuthToken::getUsrId ( )
Returns
int

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

References $usr_id.

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

104  : int
105  {
106  return $this->usr_id;
107  }
+ Here is the caller graph for this function:

◆ getValidUntil()

ilCmiXapiAuthToken::getValidUntil ( )
Returns
string

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

References $valid_until.

Referenced by update().

136  : string
137  {
138  return $this->valid_until;
139  }
+ Here is the caller graph for this function:

◆ getWacSalt()

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

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

Referenced by ilCmiXapiLaunchGUI\buildAuthTokenFetchParam().

512  {
513  include 'data/wacsalt.php';
514 
515  if (isset($salt)) {
516  return $salt;
517  }
518 
519  throw new ilCmiXapiException('no salt for encryption provided');
520  }
+ Here is the caller graph for this function:

◆ insertToken()

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

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

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

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

◆ selectCurrentTimestamp()

static ilCmiXapiAuthToken::selectCurrentTimestamp ( )
static

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

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

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

304  {
305  global $DIC; /* @var \ILIAS\DI\Container $DIC */
306  $ilDB = $DIC->database();
307 
308  $query = "SELECT CURRENT_TIMESTAMP";
309  $result = $ilDB->query($query);
310  $row = $ilDB->fetchAssoc($result);
311 
312  return $row['CURRENT_TIMESTAMP'];
313  }
$result
$query
global $ilDB
$DIC
Definition: xapitoken.php:46
+ Here is the caller graph for this function:

◆ setCmi5Session()

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

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

References $cmi5_session.

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

◆ setCmi5SessionData()

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

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

References $cmi5_session_data.

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

◆ setLrsTypeId()

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

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

References $lrs_type_id.

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

◆ setObjId()

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

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

References $obj_id.

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

◆ setRefId()

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

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

References $ref_id.

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

◆ setReturnedForCmi5Session()

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

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

References $returned_for_cmi5_session.

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

◆ setToken()

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

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

References $token.

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

◆ setUsrId()

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

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

References $usr_id.

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

◆ setValidUntil()

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

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

References $valid_until.

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

◆ update()

ilCmiXapiAuthToken::update ( )

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

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

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

Field Documentation

◆ $cmi5_session

ilCmiXapiAuthToken::$cmi5_session
protected

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

Referenced by getCmi5Session(), and setCmi5Session().

◆ $cmi5_session_data

ilCmiXapiAuthToken::$cmi5_session_data
protected

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

Referenced by getCmi5SessionData(), and setCmi5SessionData().

◆ $lrs_type_id

ilCmiXapiAuthToken::$lrs_type_id
protected

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

Referenced by getLrsTypeId(), and setLrsTypeId().

◆ $obj_id

ilCmiXapiAuthToken::$obj_id
protected

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

Referenced by getObjId(), and setObjId().

◆ $ref_id

ilCmiXapiAuthToken::$ref_id
protected

Definition at line 27 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 42 of file class.ilCmiXapiAuthToken.php.

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

◆ $usr_id

ilCmiXapiAuthToken::$usr_id
protected

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

Referenced by getUsrId(), and setUsrId().

◆ $valid_until

ilCmiXapiAuthToken::$valid_until
protected

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

Referenced by getValidUntil(), and setValidUntil().

◆ DB_TABLE_NAME

const ilCmiXapiAuthToken::DB_TABLE_NAME = 'cmix_token'

Definition at line 18 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: