ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCmiXapiLrsType Class Reference
+ Collaboration diagram for ilCmiXapiLrsType:

Public Member Functions

 __construct ($a_type_id=0)
 Constructor. More...
 
 setTypeId ($a_type_id)
 
 getTypeId ()
 
 setTitle ($a_title)
 
 getTitle ()
 
 setDescription ($a_description)
 
 getDescription ()
 
 setAvailability ($a_availability)
 
 getAvailability ()
 
 isAvailable ()
 
 setTimeToDelete ($a_time_to_delete)
 
 getTimeToDelete ()
 
 setLrsEndpoint ($a_endpoint)
 
 getLrsEndpoint ()
 
 setLrsKey ($a_lrs_key)
 
 getLrsKey ()
 
 setLrsSecret ($a_lrs_secret)
 
 getLrsSecret ()
 
 setPrivacyIdent ($a_option)
 
 getPrivacyIdent ()
 
 setPrivacyName ($a_option)
 
 getPrivacyName ()
 
 getOnlyMoveon ()
 
 setOnlyMoveon (bool $only_moveon)
 
 getAchieved ()
 
 setAchieved (bool $achieved)
 
 getAnswered ()
 
 setAnswered (bool $answered)
 
 getCompleted ()
 
 setCompleted (bool $completed)
 
 getFailed ()
 
 setFailed (bool $failed)
 
 getInitialized ()
 
 setInitialized (bool $initialized)
 
 getPassed ()
 
 setPassed (bool $passed)
 
 getProgressed ()
 
 setProgressed (bool $progressed)
 
 getSatisfied ()
 
 setSatisfied (bool $satisfied)
 
 getTerminated ()
 
 setTerminated (bool $terminated)
 
 getHideData ()
 
 setHideData (bool $hide_data)
 
 getTimestamp ()
 
 setTimestamp (bool $timestamp)
 
 getDuration ()
 
 setDuration (bool $duration)
 
 getNoSubstatements ()
 
 setNoSubstatements (bool $no_substatements)
 
 getForcePrivacySettings ()
 
 setForcePrivacySettings ($force_privacy_settings)
 
 setPrivacyCommentDefault ($a_option)
 
 getPrivacyCommentDefault ()
 
 setExternalLrs ($a_option)
 
 getExternalLrs ()
 
 getLaunchType ()
 
 setRemarks ($a_remarks)
 
 getRemarks ()
 
 isBypassProxyEnabled ()
 
 setBypassProxyEnabled (bool $bypassProxyEnabled)
 
 read ()
 public More...
 
 save ()
 
 create ()
 public More...
 
 update ()
 public More...
 
 delete ()
 public More...
 
 getLrsEndpointStatementsLink ()
 
 getLrsEndpointStatementsAggregationLink ()
 
 getBasicAuth ()
 
 getBasicAuthWithoutBasic ()
 

Static Public Member Functions

static getDbTableName ()
 
static buildBasicAuth ($lrsKey, $lrsSecret)
 
static buildBasicAuthWithoutBasic ($lrsKey, $lrsSecret)
 

Data Fields

const DB_TABLE_NAME = 'cmix_lrs_types'
 
const AVAILABILITY_NONE = 0
 
const AVAILABILITY_EXISTING = 1
 
const AVAILABILITY_CREATE = 2
 
const LAUNCH_TYPE_PAGE = "page"
 
const LAUNCH_TYPE_LINK = "link"
 
const LAUNCH_TYPE_EMBED = "embed"
 
const PRIVACY_IDENT_IL_UUID_USER_ID = 0
 
const PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT = 1
 
const PRIVACY_IDENT_IL_UUID_LOGIN = 2
 
const PRIVACY_IDENT_REAL_EMAIL = 3
 
const PRIVACY_IDENT_IL_UUID_RANDOM = 4
 
const PRIVACY_IDENT_IL_UUID_SHA256 = 5
 
const PRIVACY_IDENT_IL_UUID_SHA256URL = 6
 
const PRIVACY_NAME_NONE = 0
 
const PRIVACY_NAME_FIRSTNAME = 1
 
const PRIVACY_NAME_LASTNAME = 2
 
const PRIVACY_NAME_FULLNAME = 3
 
const ENDPOINT_STATEMENTS_SUFFIX = 'statements'
 
const ENDPOINT_AGGREGATE_SUFFIX = 'statements/aggregate'
 

Protected Attributes

 $type_id
 
 $title
 
 $description
 
 $availability = self::AVAILABILITY_CREATE
 
 $lrs_endpoint
 
 $lrs_key
 
 $lrs_secret
 
 $privacy_ident
 
 $privacy_name
 
 $force_privacy_settings
 
 $privacy_comment_default
 
 $external_lrs
 
 $time_to_delete
 
 $launch_type = self::LAUNCH_TYPE_LINK
 
 $remarks
 
 $bypassProxyEnabled = false
 
 $only_moveon = false
 
 $achieved = true
 
 $answered = true
 
 $completed = true
 
 $failed = true
 
 $initialized = true
 
 $passed = true
 
 $progressed = true
 
 $satisfied = true
 
 $terminated = true
 
 $hide_data = false
 
 $timestamp = false
 
 $duration = true
 
 $no_substatements = false
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilCmiXapiLrsType::__construct (   $a_type_id = 0)

Constructor.

Definition at line 116 of file class.ilCmiXapiLrsType.php.

References read().

117  {
118  if ($a_type_id) {
119  $this->type_id = $a_type_id;
120  $this->read();
121  }
122  }
+ Here is the call graph for this function:

Member Function Documentation

◆ buildBasicAuth()

static ilCmiXapiLrsType::buildBasicAuth (   $lrsKey,
  $lrsSecret 
)
static

Definition at line 712 of file class.ilCmiXapiLrsType.php.

Referenced by ilObjLTIConsumerGUI\debug(), ilLTIConsumerScoringGUI\initTableData(), and ilLTIConsumerXapiStatementsGUI\initTableData().

713  {
714  return 'Basic ' . base64_encode("{$lrsKey}:{$lrsSecret}");
715  }
+ Here is the caller graph for this function:

◆ buildBasicAuthWithoutBasic()

static ilCmiXapiLrsType::buildBasicAuthWithoutBasic (   $lrsKey,
  $lrsSecret 
)
static

Definition at line 722 of file class.ilCmiXapiLrsType.php.

723  {
724  return base64_encode("{$lrsKey}:{$lrsSecret}");
725  }

◆ create()

ilCmiXapiLrsType::create ( )

public

Definition at line 630 of file class.ilCmiXapiLrsType.php.

References $DIC, setTypeId(), and update().

Referenced by save().

631  {
632  global $DIC; /* @var \ILIAS\DI\Container $DIC */
633  $this->setTypeId($DIC->database()->nextId(self::DB_TABLE_NAME));
634  $this->update();
635  }
global $DIC
Definition: goto.php:24
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilCmiXapiLrsType::delete ( )

public

Definition at line 687 of file class.ilCmiXapiLrsType.php.

References $DIC, $query, and getTypeId().

688  {
689  global $DIC; /* @var \ILIAS\DI\Container $DIC */
690 
691  $query = "DELETE FROM " . self::DB_TABLE_NAME . " WHERE type_id = %s";
692  $DIC->database()->manipulateF($query, ['integer'], [$this->getTypeId()]);
693 
694  return true;
695  }
global $DIC
Definition: goto.php:24
$query
+ Here is the call graph for this function:

◆ getAchieved()

ilCmiXapiLrsType::getAchieved ( )
Returns
bool

Definition at line 289 of file class.ilCmiXapiLrsType.php.

References $achieved.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

289  : bool
290  {
291  return $this->achieved;
292  }
+ Here is the caller graph for this function:

◆ getAnswered()

ilCmiXapiLrsType::getAnswered ( )
Returns
bool

Definition at line 305 of file class.ilCmiXapiLrsType.php.

References $answered.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

305  : bool
306  {
307  return $this->answered;
308  }
+ Here is the caller graph for this function:

◆ getAvailability()

ilCmiXapiLrsType::getAvailability ( )
Returns
integer availability

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

References $availability.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), isAvailable(), and update().

184  {
185  return $this->availability;
186  }
+ Here is the caller graph for this function:

◆ getBasicAuth()

ilCmiXapiLrsType::getBasicAuth ( )

Definition at line 707 of file class.ilCmiXapiLrsType.php.

References getLrsKey(), and getLrsSecret().

708  {
709  return self::buildBasicAuth($this->getLrsKey(), $this->getLrsSecret());
710  }
+ Here is the call graph for this function:

◆ getBasicAuthWithoutBasic()

ilCmiXapiLrsType::getBasicAuthWithoutBasic ( )

Definition at line 717 of file class.ilCmiXapiLrsType.php.

References getLrsKey(), and getLrsSecret().

718  {
719  return self::buildBasicAuthWithoutBasic($this->getLrsKey(), $this->getLrsSecret());
720  }
+ Here is the call graph for this function:

◆ getCompleted()

ilCmiXapiLrsType::getCompleted ( )
Returns
bool

Definition at line 321 of file class.ilCmiXapiLrsType.php.

References $completed.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

321  : bool
322  {
323  return $this->completed;
324  }
+ Here is the caller graph for this function:

◆ getDbTableName()

static ilCmiXapiLrsType::getDbTableName ( )
static

Definition at line 18 of file class.ilCmiXapiLrsType.php.

Referenced by ilCmiXapiLrsTypeList\getCountTypesForCreate(), ilCmiXapiLrsTypeList\getTypeOptions(), and ilCmiXapiLrsTypeList\getTypesData().

19  {
20  return self::DB_TABLE_NAME;
21  }
+ Here is the caller graph for this function:

◆ getDescription()

ilCmiXapiLrsType::getDescription ( )
Returns
string description

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

References $description.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), and update().

168  {
169  return $this->description;
170  }
+ Here is the caller graph for this function:

◆ getDuration()

ilCmiXapiLrsType::getDuration ( )
Returns
bool

Definition at line 465 of file class.ilCmiXapiLrsType.php.

References $duration.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

465  : bool
466  {
467  return $this->duration;
468  }
+ Here is the caller graph for this function:

◆ getExternalLrs()

ilCmiXapiLrsType::getExternalLrs ( )

Definition at line 525 of file class.ilCmiXapiLrsType.php.

References $external_lrs.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), and update().

526  {
527  return $this->external_lrs;
528  }
+ Here is the caller graph for this function:

◆ getFailed()

ilCmiXapiLrsType::getFailed ( )
Returns
bool

Definition at line 337 of file class.ilCmiXapiLrsType.php.

References $failed.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

337  : bool
338  {
339  return $this->failed;
340  }
+ Here is the caller graph for this function:

◆ getForcePrivacySettings()

ilCmiXapiLrsType::getForcePrivacySettings ( )
Returns
bool

Definition at line 497 of file class.ilCmiXapiLrsType.php.

References $force_privacy_settings.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), and update().

498  {
500  }
+ Here is the caller graph for this function:

◆ getHideData()

ilCmiXapiLrsType::getHideData ( )
Returns
bool

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

References $hide_data.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

433  : bool
434  {
435  return $this->hide_data;
436  }
+ Here is the caller graph for this function:

◆ getInitialized()

ilCmiXapiLrsType::getInitialized ( )
Returns
bool

Definition at line 353 of file class.ilCmiXapiLrsType.php.

References $initialized.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

353  : bool
354  {
355  return $this->initialized;
356  }
+ Here is the caller graph for this function:

◆ getLaunchType()

ilCmiXapiLrsType::getLaunchType ( )
Returns
string launch_type

Definition at line 533 of file class.ilCmiXapiLrsType.php.

References $launch_type.

534  {
535  return $this->launch_type;
536  }

◆ getLrsEndpoint()

ilCmiXapiLrsType::getLrsEndpoint ( )

Definition at line 225 of file class.ilCmiXapiLrsType.php.

References $lrs_endpoint.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), getLrsEndpointStatementsAggregationLink(), getLrsEndpointStatementsLink(), and update().

226  {
227  return $this->lrs_endpoint;
228  }
+ Here is the caller graph for this function:

◆ getLrsEndpointStatementsAggregationLink()

ilCmiXapiLrsType::getLrsEndpointStatementsAggregationLink ( )

Definition at line 702 of file class.ilCmiXapiLrsType.php.

References getLrsEndpoint().

703  {
704  return dirname(dirname($this->getLrsEndpoint())) . '/api/' . self::ENDPOINT_AGGREGATE_SUFFIX;
705  }
+ Here is the call graph for this function:

◆ getLrsEndpointStatementsLink()

ilCmiXapiLrsType::getLrsEndpointStatementsLink ( )

Definition at line 697 of file class.ilCmiXapiLrsType.php.

References getLrsEndpoint().

698  {
699  return $this->getLrsEndpoint() . '/' . self::ENDPOINT_STATEMENTS_SUFFIX;
700  }
+ Here is the call graph for this function:

◆ getLrsKey()

ilCmiXapiLrsType::getLrsKey ( )

Definition at line 235 of file class.ilCmiXapiLrsType.php.

References $lrs_key.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), getBasicAuth(), getBasicAuthWithoutBasic(), and update().

236  {
237  return $this->lrs_key;
238  }
+ Here is the caller graph for this function:

◆ getLrsSecret()

ilCmiXapiLrsType::getLrsSecret ( )

Definition at line 245 of file class.ilCmiXapiLrsType.php.

References $lrs_secret.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), getBasicAuth(), getBasicAuthWithoutBasic(), and update().

246  {
247  return $this->lrs_secret;
248  }
+ Here is the caller graph for this function:

◆ getNoSubstatements()

ilCmiXapiLrsType::getNoSubstatements ( )
Returns
bool

Definition at line 481 of file class.ilCmiXapiLrsType.php.

References $no_substatements.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

481  : bool
482  {
484  }
+ Here is the caller graph for this function:

◆ getOnlyMoveon()

ilCmiXapiLrsType::getOnlyMoveon ( )
Returns
bool

Definition at line 273 of file class.ilCmiXapiLrsType.php.

References $only_moveon.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

273  : bool
274  {
275  return $this->only_moveon;
276  }
+ Here is the caller graph for this function:

◆ getPassed()

ilCmiXapiLrsType::getPassed ( )
Returns
bool

Definition at line 369 of file class.ilCmiXapiLrsType.php.

References $passed.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

369  : bool
370  {
371  return $this->passed;
372  }
+ Here is the caller graph for this function:

◆ getPrivacyCommentDefault()

ilCmiXapiLrsType::getPrivacyCommentDefault ( )

Definition at line 515 of file class.ilCmiXapiLrsType.php.

References $privacy_comment_default.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), and update().

516  {
518  }
+ Here is the caller graph for this function:

◆ getPrivacyIdent()

ilCmiXapiLrsType::getPrivacyIdent ( )

Definition at line 255 of file class.ilCmiXapiLrsType.php.

References $privacy_ident.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

256  {
257  return $this->privacy_ident;
258  }
+ Here is the caller graph for this function:

◆ getPrivacyName()

ilCmiXapiLrsType::getPrivacyName ( )

Definition at line 265 of file class.ilCmiXapiLrsType.php.

References $privacy_name.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

266  {
267  return $this->privacy_name;
268  }
+ Here is the caller graph for this function:

◆ getProgressed()

ilCmiXapiLrsType::getProgressed ( )
Returns
bool

Definition at line 385 of file class.ilCmiXapiLrsType.php.

References $progressed.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

385  : bool
386  {
387  return $this->progressed;
388  }
+ Here is the caller graph for this function:

◆ getRemarks()

ilCmiXapiLrsType::getRemarks ( )
Returns
string remarks

Definition at line 549 of file class.ilCmiXapiLrsType.php.

References $remarks.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), and update().

550  {
551  return $this->remarks;
552  }
+ Here is the caller graph for this function:

◆ getSatisfied()

ilCmiXapiLrsType::getSatisfied ( )
Returns
bool

Definition at line 401 of file class.ilCmiXapiLrsType.php.

References $satisfied.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

401  : bool
402  {
403  return $this->satisfied;
404  }
+ Here is the caller graph for this function:

◆ getTerminated()

ilCmiXapiLrsType::getTerminated ( )
Returns
bool

Definition at line 417 of file class.ilCmiXapiLrsType.php.

References $terminated.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

417  : bool
418  {
419  return $this->terminated;
420  }
+ Here is the caller graph for this function:

◆ getTimestamp()

ilCmiXapiLrsType::getTimestamp ( )
Returns
bool

Definition at line 449 of file class.ilCmiXapiLrsType.php.

References $timestamp.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

449  : bool
450  {
451  return $this->timestamp;
452  }
+ Here is the caller graph for this function:

◆ getTimeToDelete()

ilCmiXapiLrsType::getTimeToDelete ( )
Returns
string time_to_delete

Definition at line 215 of file class.ilCmiXapiLrsType.php.

References $time_to_delete.

Referenced by update().

216  {
217  return $this->time_to_delete;
218  }
+ Here is the caller graph for this function:

◆ getTitle()

ilCmiXapiLrsType::getTitle ( )
Returns
string title

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

References $title.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), and update().

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

◆ getTypeId()

ilCmiXapiLrsType::getTypeId ( )
Returns
int id

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

References $type_id.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), delete(), read(), save(), update(), ilObjCmiXapi\updateByPassProxyFromLrsType(), and ilObjCmiXapi\updatePrivacySettingsFromLrsType().

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

◆ isAvailable()

ilCmiXapiLrsType::isAvailable ( )
Returns
bool

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

References getAvailability().

192  {
193  if ($this->getAvailability() == self::AVAILABILITY_CREATE) {
194  return true;
195  }
196 
197  if ($this->getAvailability() == self::AVAILABILITY_EXISTING) {
198  return true;
199  }
200 
201  return false;
202  }
+ Here is the call graph for this function:

◆ isBypassProxyEnabled()

ilCmiXapiLrsType::isBypassProxyEnabled ( )
Returns
bool

Definition at line 557 of file class.ilCmiXapiLrsType.php.

References $bypassProxyEnabled.

Referenced by ilObjCmiXapiAdministrationGUI\buildLrsTypeForm(), update(), and ilObjCmiXapi\updateByPassProxyFromLrsType().

557  : bool
558  {
560  }
+ Here is the caller graph for this function:

◆ read()

ilCmiXapiLrsType::read ( )

public

Definition at line 573 of file class.ilCmiXapiLrsType.php.

References $ilDB, $ilErr, $query, $res, getTypeId(), setAchieved(), setAnswered(), setAvailability(), setBypassProxyEnabled(), setCompleted(), setDescription(), setDuration(), setExternalLrs(), setFailed(), setForcePrivacySettings(), setHideData(), setInitialized(), setLrsEndpoint(), setLrsKey(), setLrsSecret(), setNoSubstatements(), setOnlyMoveon(), setPassed(), setPrivacyCommentDefault(), setPrivacyIdent(), setPrivacyName(), setProgressed(), setRemarks(), setSatisfied(), setTerminated(), setTimestamp(), setTimeToDelete(), setTitle(), and setTypeId().

Referenced by __construct().

574  {
575  global $ilDB, $ilErr;
576 
577  $query = "SELECT * FROM " . self::DB_TABLE_NAME . " WHERE type_id = %s";
578 
579  $res = $ilDB->queryF($query, ['integer'], [$this->getTypeId()]);
580  $row = $ilDB->fetchObject($res);
581  if ($row) {
582  $this->setTypeId($row->type_id);
583  $this->setTitle($row->title);
584  $this->setDescription($row->description);
585  $this->setAvailability($row->availability);
586  $this->setLrsEndpoint($row->lrs_endpoint);
587  $this->setLrsKey($row->lrs_key);
588  $this->setLrsSecret($row->lrs_secret);
589  $this->setPrivacyIdent($row->privacy_ident);
590  $this->setPrivacyName($row->privacy_name);
591  $this->setForcePrivacySettings((bool) $row->force_privacy_settings);
592  $this->setPrivacyCommentDefault($row->privacy_comment_default);
593  $this->setExternalLrs($row->external_lrs);
594  $this->setTimeToDelete($row->time_to_delete);
595  $this->setRemarks($row->remarks);
596  $this->setBypassProxyEnabled((bool) $row->bypass_proxy);
597  $this->setOnlyMoveon((bool) $row->only_moveon);
598  $this->setAchieved((bool) $row->achieved);
599  $this->setAnswered((bool) $row->answered);
600  $this->setCompleted((bool) $row->completed);
601  $this->setFailed((bool) $row->failed);
602  $this->setInitialized((bool) $row->initialized);
603  $this->setPassed((bool) $row->passed);
604  $this->setProgressed((bool) $row->progressed);
605  $this->setSatisfied((bool) $row->satisfied);
606  $this->setTerminated((bool) $row->c_terminated);
607  $this->setHideData((bool) $row->hide_data);
608  $this->setTimestamp((bool) $row->c_timestamp);
609  $this->setDuration((bool) $row->duration);
610  $this->setNoSubstatements((bool) $row->no_substatements);
611 
612  return true;
613  }
614 
615  return false;
616  }
setSatisfied(bool $satisfied)
setAchieved(bool $achieved)
setProgressed(bool $progressed)
setTimestamp(bool $timestamp)
setAnswered(bool $answered)
setHideData(bool $hide_data)
$ilErr
Definition: raiseError.php:18
setForcePrivacySettings($force_privacy_settings)
setInitialized(bool $initialized)
setOnlyMoveon(bool $only_moveon)
foreach($_POST as $key=> $value) $res
setDuration(bool $duration)
setTimeToDelete($a_time_to_delete)
$query
setAvailability($a_availability)
setNoSubstatements(bool $no_substatements)
global $ilDB
setDescription($a_description)
setCompleted(bool $completed)
setBypassProxyEnabled(bool $bypassProxyEnabled)
setTerminated(bool $terminated)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilCmiXapiLrsType::save ( )

Definition at line 618 of file class.ilCmiXapiLrsType.php.

References create(), getTypeId(), and update().

619  {
620  if ($this->getTypeId()) {
621  $this->update();
622  } else {
623  $this->create();
624  }
625  }
+ Here is the call graph for this function:

◆ setAchieved()

ilCmiXapiLrsType::setAchieved ( bool  $achieved)
Parameters
bool$achieved

Definition at line 297 of file class.ilCmiXapiLrsType.php.

References $achieved.

Referenced by read().

298  {
299  $this->achieved = $achieved;
300  }
+ Here is the caller graph for this function:

◆ setAnswered()

ilCmiXapiLrsType::setAnswered ( bool  $answered)
Parameters
bool$answered

Definition at line 313 of file class.ilCmiXapiLrsType.php.

References $answered.

Referenced by read().

314  {
315  $this->answered = $answered;
316  }
+ Here is the caller graph for this function:

◆ setAvailability()

ilCmiXapiLrsType::setAvailability (   $a_availability)
Parameters
integeravailability

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

Referenced by read().

176  {
177  $this->availability = $a_availability;
178  }
+ Here is the caller graph for this function:

◆ setBypassProxyEnabled()

ilCmiXapiLrsType::setBypassProxyEnabled ( bool  $bypassProxyEnabled)
Parameters
bool$bypassProxyEnabled

Definition at line 565 of file class.ilCmiXapiLrsType.php.

References $bypassProxyEnabled.

Referenced by read().

566  {
567  $this->bypassProxyEnabled = $bypassProxyEnabled;
568  }
+ Here is the caller graph for this function:

◆ setCompleted()

ilCmiXapiLrsType::setCompleted ( bool  $completed)
Parameters
bool$completed

Definition at line 329 of file class.ilCmiXapiLrsType.php.

References $completed.

Referenced by read().

330  {
331  $this->completed = $completed;
332  }
+ Here is the caller graph for this function:

◆ setDescription()

ilCmiXapiLrsType::setDescription (   $a_description)
Parameters
stringdescription

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

Referenced by read().

160  {
161  $this->description = $a_description;
162  }
+ Here is the caller graph for this function:

◆ setDuration()

ilCmiXapiLrsType::setDuration ( bool  $duration)
Parameters
bool$duration

Definition at line 473 of file class.ilCmiXapiLrsType.php.

References $duration.

Referenced by read().

474  {
475  $this->duration = $duration;
476  }
+ Here is the caller graph for this function:

◆ setExternalLrs()

ilCmiXapiLrsType::setExternalLrs (   $a_option)

Definition at line 520 of file class.ilCmiXapiLrsType.php.

Referenced by read().

521  {
522  $this->external_lrs = $a_option;
523  }
+ Here is the caller graph for this function:

◆ setFailed()

ilCmiXapiLrsType::setFailed ( bool  $failed)
Parameters
bool$failed

Definition at line 345 of file class.ilCmiXapiLrsType.php.

References $failed.

Referenced by read().

346  {
347  $this->failed = $failed;
348  }
+ Here is the caller graph for this function:

◆ setForcePrivacySettings()

ilCmiXapiLrsType::setForcePrivacySettings (   $force_privacy_settings)
Parameters
bool$force_privacy_settings

Definition at line 505 of file class.ilCmiXapiLrsType.php.

References $force_privacy_settings.

Referenced by read().

506  {
507  $this->force_privacy_settings = $force_privacy_settings;
508  }
+ Here is the caller graph for this function:

◆ setHideData()

ilCmiXapiLrsType::setHideData ( bool  $hide_data)
Parameters
bool$hide_data

Definition at line 441 of file class.ilCmiXapiLrsType.php.

References $hide_data.

Referenced by read().

442  {
443  $this->hide_data = $hide_data;
444  }
+ Here is the caller graph for this function:

◆ setInitialized()

ilCmiXapiLrsType::setInitialized ( bool  $initialized)
Parameters
bool$initialized

Definition at line 361 of file class.ilCmiXapiLrsType.php.

References $initialized.

Referenced by read().

362  {
363  $this->initialized = $initialized;
364  }
+ Here is the caller graph for this function:

◆ setLrsEndpoint()

ilCmiXapiLrsType::setLrsEndpoint (   $a_endpoint)

Definition at line 220 of file class.ilCmiXapiLrsType.php.

Referenced by read().

221  {
222  $this->lrs_endpoint = $a_endpoint;
223  }
+ Here is the caller graph for this function:

◆ setLrsKey()

ilCmiXapiLrsType::setLrsKey (   $a_lrs_key)

Definition at line 230 of file class.ilCmiXapiLrsType.php.

Referenced by read().

231  {
232  $this->lrs_key = $a_lrs_key;
233  }
+ Here is the caller graph for this function:

◆ setLrsSecret()

ilCmiXapiLrsType::setLrsSecret (   $a_lrs_secret)

Definition at line 240 of file class.ilCmiXapiLrsType.php.

Referenced by read().

241  {
242  $this->lrs_secret = $a_lrs_secret;
243  }
+ Here is the caller graph for this function:

◆ setNoSubstatements()

ilCmiXapiLrsType::setNoSubstatements ( bool  $no_substatements)
Parameters
bool$no_substatements

Definition at line 489 of file class.ilCmiXapiLrsType.php.

References $no_substatements.

Referenced by read().

490  {
491  $this->no_substatements = $no_substatements;
492  }
+ Here is the caller graph for this function:

◆ setOnlyMoveon()

ilCmiXapiLrsType::setOnlyMoveon ( bool  $only_moveon)
Parameters
bool$only_moveon

Definition at line 281 of file class.ilCmiXapiLrsType.php.

References $only_moveon.

Referenced by read().

282  {
283  $this->only_moveon = $only_moveon;
284  }
+ Here is the caller graph for this function:

◆ setPassed()

ilCmiXapiLrsType::setPassed ( bool  $passed)
Parameters
bool$passed

Definition at line 377 of file class.ilCmiXapiLrsType.php.

References $passed.

Referenced by read().

378  {
379  $this->passed = $passed;
380  }
+ Here is the caller graph for this function:

◆ setPrivacyCommentDefault()

ilCmiXapiLrsType::setPrivacyCommentDefault (   $a_option)

Definition at line 510 of file class.ilCmiXapiLrsType.php.

Referenced by read().

511  {
512  $this->privacy_comment_default = $a_option;
513  }
+ Here is the caller graph for this function:

◆ setPrivacyIdent()

ilCmiXapiLrsType::setPrivacyIdent (   $a_option)

Definition at line 250 of file class.ilCmiXapiLrsType.php.

Referenced by read().

251  {
252  $this->privacy_ident = $a_option;
253  }
+ Here is the caller graph for this function:

◆ setPrivacyName()

ilCmiXapiLrsType::setPrivacyName (   $a_option)

Definition at line 260 of file class.ilCmiXapiLrsType.php.

Referenced by read().

261  {
262  $this->privacy_name = $a_option;
263  }
+ Here is the caller graph for this function:

◆ setProgressed()

ilCmiXapiLrsType::setProgressed ( bool  $progressed)
Parameters
bool$progressed

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

References $progressed.

Referenced by read().

394  {
395  $this->progressed = $progressed;
396  }
+ Here is the caller graph for this function:

◆ setRemarks()

ilCmiXapiLrsType::setRemarks (   $a_remarks)
Parameters
stringremarks

Definition at line 541 of file class.ilCmiXapiLrsType.php.

Referenced by read().

542  {
543  $this->remarks = $a_remarks;
544  }
+ Here is the caller graph for this function:

◆ setSatisfied()

ilCmiXapiLrsType::setSatisfied ( bool  $satisfied)
Parameters
bool$satisfied

Definition at line 409 of file class.ilCmiXapiLrsType.php.

References $satisfied.

Referenced by read().

410  {
411  $this->satisfied = $satisfied;
412  }
+ Here is the caller graph for this function:

◆ setTerminated()

ilCmiXapiLrsType::setTerminated ( bool  $terminated)
Parameters
bool$terminated

Definition at line 425 of file class.ilCmiXapiLrsType.php.

References $terminated.

Referenced by read().

426  {
427  $this->terminated = $terminated;
428  }
+ Here is the caller graph for this function:

◆ setTimestamp()

ilCmiXapiLrsType::setTimestamp ( bool  $timestamp)
Parameters
bool$timestamp

Definition at line 457 of file class.ilCmiXapiLrsType.php.

References $timestamp.

Referenced by read().

458  {
459  $this->timestamp = $timestamp;
460  }
+ Here is the caller graph for this function:

◆ setTimeToDelete()

ilCmiXapiLrsType::setTimeToDelete (   $a_time_to_delete)
Parameters
stringtime_to_delete

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

Referenced by read().

208  {
209  $this->time_to_delete = $a_time_to_delete;
210  }
+ Here is the caller graph for this function:

◆ setTitle()

ilCmiXapiLrsType::setTitle (   $a_title)
Parameters
stringtitle

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

Referenced by read().

144  {
145  $this->title = $a_title;
146  }
+ Here is the caller graph for this function:

◆ setTypeId()

ilCmiXapiLrsType::setTypeId (   $a_type_id)
Parameters
intid

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

Referenced by create(), and read().

128  {
129  $this->type_id = $a_type_id;
130  }
+ Here is the caller graph for this function:

◆ update()

ilCmiXapiLrsType::update ( )

public

Definition at line 640 of file class.ilCmiXapiLrsType.php.

References $DIC, getAchieved(), getAnswered(), getAvailability(), getCompleted(), getDescription(), getDuration(), getExternalLrs(), getFailed(), getForcePrivacySettings(), getHideData(), getInitialized(), getLrsEndpoint(), getLrsKey(), getLrsSecret(), getNoSubstatements(), getOnlyMoveon(), getPassed(), getPrivacyCommentDefault(), getPrivacyIdent(), getPrivacyName(), getProgressed(), getRemarks(), getSatisfied(), getTerminated(), getTimestamp(), getTimeToDelete(), getTitle(), getTypeId(), and isBypassProxyEnabled().

Referenced by create(), and save().

641  {
642  global $DIC; /* @var \ILIAS\DI\Container $DIC */
643 
644  $DIC->database()->replace(
645  self::DB_TABLE_NAME,
646  array(
647  'type_id' => array('integer', $this->getTypeId())
648  ),
649  array(
650  'title' => array('text', $this->getTitle()),
651  'description' => array('clob', $this->getDescription()),
652  'availability' => array('integer', $this->getAvailability()),
653  'remarks' => array('clob', $this->getRemarks()),
654  'time_to_delete' => array('integer', $this->getTimeToDelete()),
655  'lrs_endpoint' => array('text', $this->getLrsEndpoint()),
656  'lrs_key' => array('text', $this->getLrsKey()),
657  'lrs_secret' => array('text', $this->getLrsSecret()),
658  'privacy_ident' => array('integer', $this->getPrivacyIdent()),
659  'privacy_name' => array('integer', $this->getPrivacyName()),
660  'force_privacy_settings' => array('integer', (int) $this->getForcePrivacySettings()),
661  'privacy_comment_default' => array('text', $this->getPrivacyCommentDefault()),
662  'external_lrs' => array('integer', $this->getExternalLrs()),
663  'bypass_proxy' => array('integer', (int) $this->isBypassProxyEnabled()),
664  'only_moveon' => array('integer', (int) $this->getOnlyMoveon()),
665  'achieved' => array('integer', (int) $this->getAchieved()),
666  'answered' => array('integer', (int) $this->getAnswered()),
667  'completed' => array('integer', (int) $this->getCompleted()),
668  'failed' => array('integer', (int) $this->getFailed()),
669  'initialized' => array('integer', (int) $this->getInitialized()),
670  'passed' => array('integer', (int) $this->getPassed()),
671  'progressed' => array('integer', (int) $this->getProgressed()),
672  'satisfied' => array('integer', (int) $this->getSatisfied()),
673  'c_terminated' => array('integer', (int) $this->getTerminated()),
674  'hide_data' => array('integer', (int) $this->getHideData()),
675  'c_timestamp' => array('integer', (int) $this->getTimestamp()),
676  'duration' => array('integer', (int) $this->getDuration()),
677  'no_substatements' => array('integer', (int) $this->getNoSubstatements())
678  )
679  );
680 
681  return true;
682  }
global $DIC
Definition: goto.php:24
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $achieved

ilCmiXapiLrsType::$achieved = true
protected

Definition at line 75 of file class.ilCmiXapiLrsType.php.

Referenced by getAchieved(), and setAchieved().

◆ $answered

ilCmiXapiLrsType::$answered = true
protected

Definition at line 78 of file class.ilCmiXapiLrsType.php.

Referenced by getAnswered(), and setAnswered().

◆ $availability

ilCmiXapiLrsType::$availability = self::AVAILABILITY_CREATE
protected

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

Referenced by getAvailability().

◆ $bypassProxyEnabled

ilCmiXapiLrsType::$bypassProxyEnabled = false
protected

Definition at line 69 of file class.ilCmiXapiLrsType.php.

Referenced by isBypassProxyEnabled(), and setBypassProxyEnabled().

◆ $completed

ilCmiXapiLrsType::$completed = true
protected

Definition at line 81 of file class.ilCmiXapiLrsType.php.

Referenced by getCompleted(), and setCompleted().

◆ $description

ilCmiXapiLrsType::$description
protected

Definition at line 50 of file class.ilCmiXapiLrsType.php.

Referenced by getDescription().

◆ $duration

ilCmiXapiLrsType::$duration = true
protected

Definition at line 108 of file class.ilCmiXapiLrsType.php.

Referenced by getDuration(), and setDuration().

◆ $external_lrs

ilCmiXapiLrsType::$external_lrs
protected

Definition at line 59 of file class.ilCmiXapiLrsType.php.

Referenced by getExternalLrs().

◆ $failed

ilCmiXapiLrsType::$failed = true
protected

Definition at line 84 of file class.ilCmiXapiLrsType.php.

Referenced by getFailed(), and setFailed().

◆ $force_privacy_settings

ilCmiXapiLrsType::$force_privacy_settings
protected

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

Referenced by getForcePrivacySettings(), and setForcePrivacySettings().

◆ $hide_data

ilCmiXapiLrsType::$hide_data = false
protected

Definition at line 102 of file class.ilCmiXapiLrsType.php.

Referenced by getHideData(), and setHideData().

◆ $initialized

ilCmiXapiLrsType::$initialized = true
protected

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

Referenced by getInitialized(), and setInitialized().

◆ $launch_type

ilCmiXapiLrsType::$launch_type = self::LAUNCH_TYPE_LINK
protected

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

Referenced by getLaunchType().

◆ $lrs_endpoint

ilCmiXapiLrsType::$lrs_endpoint
protected

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

Referenced by getLrsEndpoint().

◆ $lrs_key

ilCmiXapiLrsType::$lrs_key
protected

Definition at line 53 of file class.ilCmiXapiLrsType.php.

Referenced by getLrsKey().

◆ $lrs_secret

ilCmiXapiLrsType::$lrs_secret
protected

Definition at line 54 of file class.ilCmiXapiLrsType.php.

Referenced by getLrsSecret().

◆ $no_substatements

ilCmiXapiLrsType::$no_substatements = false
protected

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

Referenced by getNoSubstatements(), and setNoSubstatements().

◆ $only_moveon

ilCmiXapiLrsType::$only_moveon = false
protected

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

Referenced by getOnlyMoveon(), and setOnlyMoveon().

◆ $passed

ilCmiXapiLrsType::$passed = true
protected

Definition at line 90 of file class.ilCmiXapiLrsType.php.

Referenced by getPassed(), and setPassed().

◆ $privacy_comment_default

ilCmiXapiLrsType::$privacy_comment_default
protected

Definition at line 58 of file class.ilCmiXapiLrsType.php.

Referenced by getPrivacyCommentDefault().

◆ $privacy_ident

ilCmiXapiLrsType::$privacy_ident
protected

Definition at line 55 of file class.ilCmiXapiLrsType.php.

Referenced by getPrivacyIdent().

◆ $privacy_name

ilCmiXapiLrsType::$privacy_name
protected

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

Referenced by getPrivacyName().

◆ $progressed

ilCmiXapiLrsType::$progressed = true
protected

Definition at line 93 of file class.ilCmiXapiLrsType.php.

Referenced by getProgressed(), and setProgressed().

◆ $remarks

ilCmiXapiLrsType::$remarks
protected

Definition at line 64 of file class.ilCmiXapiLrsType.php.

Referenced by getRemarks().

◆ $satisfied

ilCmiXapiLrsType::$satisfied = true
protected

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

Referenced by getSatisfied(), and setSatisfied().

◆ $terminated

ilCmiXapiLrsType::$terminated = true
protected

Definition at line 99 of file class.ilCmiXapiLrsType.php.

Referenced by getTerminated(), and setTerminated().

◆ $time_to_delete

ilCmiXapiLrsType::$time_to_delete
protected

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

Referenced by getTimeToDelete().

◆ $timestamp

ilCmiXapiLrsType::$timestamp = false
protected

Definition at line 105 of file class.ilCmiXapiLrsType.php.

Referenced by getTimestamp(), and setTimestamp().

◆ $title

ilCmiXapiLrsType::$title
protected

Definition at line 49 of file class.ilCmiXapiLrsType.php.

Referenced by getTitle().

◆ $type_id

ilCmiXapiLrsType::$type_id
protected

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

Referenced by getTypeId().

◆ AVAILABILITY_CREATE

const ilCmiXapiLrsType::AVAILABILITY_CREATE = 2

◆ AVAILABILITY_EXISTING

const ilCmiXapiLrsType::AVAILABILITY_EXISTING = 1

◆ AVAILABILITY_NONE

const ilCmiXapiLrsType::AVAILABILITY_NONE = 0

◆ DB_TABLE_NAME

const ilCmiXapiLrsType::DB_TABLE_NAME = 'cmix_lrs_types'

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

◆ ENDPOINT_AGGREGATE_SUFFIX

const ilCmiXapiLrsType::ENDPOINT_AGGREGATE_SUFFIX = 'statements/aggregate'

Definition at line 45 of file class.ilCmiXapiLrsType.php.

◆ ENDPOINT_STATEMENTS_SUFFIX

const ilCmiXapiLrsType::ENDPOINT_STATEMENTS_SUFFIX = 'statements'

Definition at line 44 of file class.ilCmiXapiLrsType.php.

◆ LAUNCH_TYPE_EMBED

const ilCmiXapiLrsType::LAUNCH_TYPE_EMBED = "embed"

Definition at line 29 of file class.ilCmiXapiLrsType.php.

◆ LAUNCH_TYPE_LINK

const ilCmiXapiLrsType::LAUNCH_TYPE_LINK = "link"

Definition at line 28 of file class.ilCmiXapiLrsType.php.

◆ LAUNCH_TYPE_PAGE

const ilCmiXapiLrsType::LAUNCH_TYPE_PAGE = "page"

Definition at line 27 of file class.ilCmiXapiLrsType.php.

◆ PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT

const ilCmiXapiLrsType::PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT = 1

◆ PRIVACY_IDENT_IL_UUID_LOGIN

const ilCmiXapiLrsType::PRIVACY_IDENT_IL_UUID_LOGIN = 2

◆ PRIVACY_IDENT_IL_UUID_RANDOM

const ilCmiXapiLrsType::PRIVACY_IDENT_IL_UUID_RANDOM = 4

◆ PRIVACY_IDENT_IL_UUID_SHA256

const ilCmiXapiLrsType::PRIVACY_IDENT_IL_UUID_SHA256 = 5

◆ PRIVACY_IDENT_IL_UUID_SHA256URL

const ilCmiXapiLrsType::PRIVACY_IDENT_IL_UUID_SHA256URL = 6

◆ PRIVACY_IDENT_IL_UUID_USER_ID

const ilCmiXapiLrsType::PRIVACY_IDENT_IL_UUID_USER_ID = 0

◆ PRIVACY_IDENT_REAL_EMAIL

const ilCmiXapiLrsType::PRIVACY_IDENT_REAL_EMAIL = 3

◆ PRIVACY_NAME_FIRSTNAME

const ilCmiXapiLrsType::PRIVACY_NAME_FIRSTNAME = 1

◆ PRIVACY_NAME_FULLNAME

const ilCmiXapiLrsType::PRIVACY_NAME_FULLNAME = 3

◆ PRIVACY_NAME_LASTNAME

const ilCmiXapiLrsType::PRIVACY_NAME_LASTNAME = 2

◆ PRIVACY_NAME_NONE

const ilCmiXapiLrsType::PRIVACY_NAME_NONE = 0

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