ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ()
 @access public More...
 
 save ()
 
 create ()
 @access public More...
 
 update ()
 @access public More...
 
 delete ()
 @access 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_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 115 of file class.ilCmiXapiLrsType.php.

116 {
117
118 if ($a_type_id) {
119 $this->type_id = $a_type_id;
120 $this->read();
121 }
122 }

References read().

+ Here is the call graph for this function:

Member Function Documentation

◆ buildBasicAuth()

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

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

714 {
715 return 'Basic ' . base64_encode("{$lrsKey}:{$lrsSecret}");
716 }

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

+ Here is the caller graph for this function:

◆ buildBasicAuthWithoutBasic()

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

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

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

Referenced by getBasicAuthWithoutBasic().

+ Here is the caller graph for this function:

◆ create()

ilCmiXapiLrsType::create ( )

@access public

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

632 {
633 global $DIC; /* @var \ILIAS\DI\Container $DIC */
634 $this->setTypeId($DIC->database()->nextId(self::DB_TABLE_NAME) );
635 $this->update();
636 }
$DIC
Definition: xapitoken.php:46

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

Referenced by save().

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

◆ delete()

ilCmiXapiLrsType::delete ( )

@access public

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

689 {
690 global $DIC; /* @var \ILIAS\DI\Container $DIC */
691
692 $query = "DELETE FROM " . self::DB_TABLE_NAME . " WHERE type_id = %s";
693 $DIC->database()->manipulateF($query, ['integer'], [$this->getTypeId()]);
694
695 return true;
696 }
$query

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

+ Here is the call graph for this function:

◆ getAchieved()

ilCmiXapiLrsType::getAchieved ( )
Returns
bool

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

289 : bool
290 {
291 return $this->achieved;
292 }

References $achieved.

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

+ Here is the caller graph for this function:

◆ getAnswered()

ilCmiXapiLrsType::getAnswered ( )
Returns
bool

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

305 : bool
306 {
307 return $this->answered;
308 }

References $answered.

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

+ Here is the caller graph for this function:

◆ getAvailability()

ilCmiXapiLrsType::getAvailability ( )
Returns
integer availability

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

184 {
185 return $this->availability;
186 }

References $availability.

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

+ Here is the caller graph for this function:

◆ getBasicAuth()

ilCmiXapiLrsType::getBasicAuth ( )

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

709 {
710 return self::buildBasicAuth($this->getLrsKey(), $this->getLrsSecret());
711 }
static buildBasicAuth($lrsKey, $lrsSecret)

References buildBasicAuth(), getLrsKey(), and getLrsSecret().

+ Here is the call graph for this function:

◆ getBasicAuthWithoutBasic()

ilCmiXapiLrsType::getBasicAuthWithoutBasic ( )

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

719 {
721 }
static buildBasicAuthWithoutBasic($lrsKey, $lrsSecret)

References buildBasicAuthWithoutBasic(), getLrsKey(), and getLrsSecret().

+ Here is the call graph for this function:

◆ getCompleted()

ilCmiXapiLrsType::getCompleted ( )
Returns
bool

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

321 : bool
322 {
323 return $this->completed;
324 }

References $completed.

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

+ Here is the caller graph for this function:

◆ getDbTableName()

static ilCmiXapiLrsType::getDbTableName ( )
static

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

19 {
21 }

References DB_TABLE_NAME.

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

+ Here is the caller graph for this function:

◆ getDescription()

ilCmiXapiLrsType::getDescription ( )
Returns
string description

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

168 {
169 return $this->description;
170 }

References $description.

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

+ Here is the caller graph for this function:

◆ getDuration()

ilCmiXapiLrsType::getDuration ( )
Returns
bool

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

465 : bool
466 {
467 return $this->duration;
468 }

References $duration.

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

+ Here is the caller graph for this function:

◆ getExternalLrs()

ilCmiXapiLrsType::getExternalLrs ( )

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

526 {
527 return $this->external_lrs;
528 }

References $external_lrs.

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

+ Here is the caller graph for this function:

◆ getFailed()

ilCmiXapiLrsType::getFailed ( )
Returns
bool

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

337 : bool
338 {
339 return $this->failed;
340 }

References $failed.

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

+ 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().

+ Here is the caller graph for this function:

◆ getHideData()

ilCmiXapiLrsType::getHideData ( )
Returns
bool

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

433 : bool
434 {
435 return $this->hide_data;
436 }

References $hide_data.

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

+ Here is the caller graph for this function:

◆ getInitialized()

ilCmiXapiLrsType::getInitialized ( )
Returns
bool

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

353 : bool
354 {
355 return $this->initialized;
356 }

References $initialized.

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

+ Here is the caller graph for this function:

◆ getLaunchType()

ilCmiXapiLrsType::getLaunchType ( )
Returns
string launch_type

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

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

References $launch_type.

◆ getLrsEndpoint()

ilCmiXapiLrsType::getLrsEndpoint ( )

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

226 {
227 return $this->lrs_endpoint;
228 }

References $lrs_endpoint.

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

+ Here is the caller graph for this function:

◆ getLrsEndpointStatementsAggregationLink()

ilCmiXapiLrsType::getLrsEndpointStatementsAggregationLink ( )

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

704 {
705 return dirname(dirname($this->getLrsEndpoint())) . '/api/' . self::ENDPOINT_AGGREGATE_SUFFIX;
706 }

References ENDPOINT_AGGREGATE_SUFFIX, and getLrsEndpoint().

+ Here is the call graph for this function:

◆ getLrsEndpointStatementsLink()

ilCmiXapiLrsType::getLrsEndpointStatementsLink ( )

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

699 {
700 return $this->getLrsEndpoint() . '/' . self::ENDPOINT_STATEMENTS_SUFFIX;
701 }

References ENDPOINT_STATEMENTS_SUFFIX, and getLrsEndpoint().

+ Here is the call graph for this function:

◆ getLrsKey()

ilCmiXapiLrsType::getLrsKey ( )

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

236 {
237 return $this->lrs_key;
238 }

References $lrs_key.

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

+ Here is the caller graph for this function:

◆ getLrsSecret()

ilCmiXapiLrsType::getLrsSecret ( )

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

246 {
247 return $this->lrs_secret;
248 }

References $lrs_secret.

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

+ Here is the caller graph for this function:

◆ getNoSubstatements()

ilCmiXapiLrsType::getNoSubstatements ( )
Returns
bool

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

481 : bool
482 {
484 }

References $no_substatements.

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

+ Here is the caller graph for this function:

◆ getOnlyMoveon()

ilCmiXapiLrsType::getOnlyMoveon ( )
Returns
bool

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

273 : bool
274 {
275 return $this->only_moveon;
276 }

References $only_moveon.

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

+ Here is the caller graph for this function:

◆ getPassed()

ilCmiXapiLrsType::getPassed ( )
Returns
bool

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

369 : bool
370 {
371 return $this->passed;
372 }

References $passed.

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

+ 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().

+ 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(), and update().

+ Here is the caller graph for this function:

◆ getPrivacyName()

ilCmiXapiLrsType::getPrivacyName ( )

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

266 {
267 return $this->privacy_name;
268 }

References $privacy_name.

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

+ Here is the caller graph for this function:

◆ getProgressed()

ilCmiXapiLrsType::getProgressed ( )
Returns
bool

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

385 : bool
386 {
387 return $this->progressed;
388 }

References $progressed.

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

+ Here is the caller graph for this function:

◆ getRemarks()

ilCmiXapiLrsType::getRemarks ( )
Returns
string remarks

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

550 {
551 return $this->remarks;
552 }

References $remarks.

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

+ Here is the caller graph for this function:

◆ getSatisfied()

ilCmiXapiLrsType::getSatisfied ( )
Returns
bool

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

401 : bool
402 {
403 return $this->satisfied;
404 }

References $satisfied.

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

+ Here is the caller graph for this function:

◆ getTerminated()

ilCmiXapiLrsType::getTerminated ( )
Returns
bool

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

417 : bool
418 {
419 return $this->terminated;
420 }

References $terminated.

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

+ Here is the caller graph for this function:

◆ getTimestamp()

ilCmiXapiLrsType::getTimestamp ( )
Returns
bool

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

449 : bool
450 {
451 return $this->timestamp;
452 }

References $timestamp.

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

+ 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().

+ Here is the caller graph for this function:

◆ getTitle()

ilCmiXapiLrsType::getTitle ( )
Returns
string title

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

152 {
153 return $this->title;
154 }

References $title.

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

+ Here is the caller graph for this function:

◆ getTypeId()

ilCmiXapiLrsType::getTypeId ( )
Returns
int id

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

136 {
137 return $this->type_id;
138 }

References $type_id.

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

+ Here is the caller graph for this function:

◆ isAvailable()

ilCmiXapiLrsType::isAvailable ( )
Returns
bool

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

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 }

References getAvailability().

+ Here is the call graph for this function:

◆ isBypassProxyEnabled()

ilCmiXapiLrsType::isBypassProxyEnabled ( )
Returns
bool

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

557 : bool
558 {
560 }

References $bypassProxyEnabled.

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

+ Here is the caller graph for this function:

◆ read()

ilCmiXapiLrsType::read ( )

@access public

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

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 {
583 $this->setTypeId($row->type_id);
584 $this->setTitle($row->title);
585 $this->setDescription($row->description);
586 $this->setAvailability($row->availability);
587 $this->setLrsEndpoint($row->lrs_endpoint);
588 $this->setLrsKey($row->lrs_key);
589 $this->setLrsSecret($row->lrs_secret);
590 $this->setPrivacyIdent($row->privacy_ident);
591 $this->setPrivacyName($row->privacy_name);
592 $this->setForcePrivacySettings((bool) $row->force_privacy_settings);
593 $this->setPrivacyCommentDefault($row->privacy_comment_default);
594 $this->setExternalLrs($row->external_lrs);
595 $this->setTimeToDelete($row->time_to_delete);
596 $this->setRemarks($row->remarks);
597 $this->setBypassProxyEnabled((bool) $row->bypass_proxy);
598 $this->setOnlyMoveon((bool)$row->only_moveon);
599 $this->setAchieved((bool)$row->achieved);
600 $this->setAnswered((bool)$row->answered);
601 $this->setCompleted((bool)$row->completed);
602 $this->setFailed((bool)$row->failed);
603 $this->setInitialized((bool)$row->initialized);
604 $this->setPassed((bool)$row->passed);
605 $this->setProgressed((bool)$row->progressed);
606 $this->setSatisfied((bool)$row->satisfied);
607 $this->setTerminated((bool)$row->c_terminated);
608 $this->setHideData((bool)$row->hide_data);
609 $this->setTimestamp((bool)$row->c_timestamp);
610 $this->setDuration((bool)$row->duration);
611 $this->setNoSubstatements((bool)$row->no_substatements);
612
613 return true;
614 }
615
616 return false;
617 }
setSatisfied(bool $satisfied)
setDescription($a_description)
setNoSubstatements(bool $no_substatements)
setTimestamp(bool $timestamp)
setForcePrivacySettings($force_privacy_settings)
setTimeToDelete($a_time_to_delete)
setCompleted(bool $completed)
setAvailability($a_availability)
setAnswered(bool $answered)
setOnlyMoveon(bool $only_moveon)
setBypassProxyEnabled(bool $bypassProxyEnabled)
setHideData(bool $hide_data)
setDuration(bool $duration)
setInitialized(bool $initialized)
setAchieved(bool $achieved)
setProgressed(bool $progressed)
setTerminated(bool $terminated)
$ilErr
Definition: raiseError.php:18
foreach($_POST as $key=> $value) $res
global $ilDB

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().

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

◆ save()

ilCmiXapiLrsType::save ( )

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

620 {
621 if ($this->getTypeId()) {
622 $this->update();
623 } else {
624 $this->create();
625 }
626 }

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

+ 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.

298 {
299 $this->achieved = $achieved;
300 }

References $achieved.

Referenced by read().

+ 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.

314 {
315 $this->answered = $answered;
316 }

References $answered.

Referenced by read().

+ Here is the caller graph for this function:

◆ setAvailability()

ilCmiXapiLrsType::setAvailability (   $a_availability)
Parameters
integeravailability

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

176 {
177 $this->availability = $a_availability;
178 }

Referenced by read().

+ 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.

566 {
567 $this->bypassProxyEnabled = $bypassProxyEnabled;
568 }

References $bypassProxyEnabled.

Referenced by read().

+ 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.

330 {
331 $this->completed = $completed;
332 }

References $completed.

Referenced by read().

+ Here is the caller graph for this function:

◆ setDescription()

ilCmiXapiLrsType::setDescription (   $a_description)
Parameters
stringdescription

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

160 {
161 $this->description = $a_description;
162 }

Referenced by read().

+ 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.

474 {
475 $this->duration = $duration;
476 }

References $duration.

Referenced by read().

+ Here is the caller graph for this function:

◆ setExternalLrs()

ilCmiXapiLrsType::setExternalLrs (   $a_option)

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

521 {
522 $this->external_lrs = $a_option;
523 }

Referenced by read().

+ 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.

346 {
347 $this->failed = $failed;
348 }

References $failed.

Referenced by read().

+ 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.

506 {
507 $this->force_privacy_settings = $force_privacy_settings;
508 }

References $force_privacy_settings.

Referenced by read().

+ 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.

442 {
443 $this->hide_data = $hide_data;
444 }

References $hide_data.

Referenced by read().

+ 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.

362 {
363 $this->initialized = $initialized;
364 }

References $initialized.

Referenced by read().

+ Here is the caller graph for this function:

◆ setLrsEndpoint()

ilCmiXapiLrsType::setLrsEndpoint (   $a_endpoint)

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

221 {
222 $this->lrs_endpoint = $a_endpoint;
223 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setLrsKey()

ilCmiXapiLrsType::setLrsKey (   $a_lrs_key)

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

231 {
232 $this->lrs_key = $a_lrs_key;
233 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setLrsSecret()

ilCmiXapiLrsType::setLrsSecret (   $a_lrs_secret)

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

241 {
242 $this->lrs_secret = $a_lrs_secret;
243 }

Referenced by read().

+ 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.

490 {
491 $this->no_substatements = $no_substatements;
492 }

References $no_substatements.

Referenced by read().

+ 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.

282 {
283 $this->only_moveon = $only_moveon;
284 }

References $only_moveon.

Referenced by read().

+ 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.

378 {
379 $this->passed = $passed;
380 }

References $passed.

Referenced by read().

+ Here is the caller graph for this function:

◆ setPrivacyCommentDefault()

ilCmiXapiLrsType::setPrivacyCommentDefault (   $a_option)

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

511 {
512 $this->privacy_comment_default = $a_option;
513 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setPrivacyIdent()

ilCmiXapiLrsType::setPrivacyIdent (   $a_option)

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

251 {
252 $this->privacy_ident = $a_option;
253 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setPrivacyName()

ilCmiXapiLrsType::setPrivacyName (   $a_option)

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

261 {
262 $this->privacy_name = $a_option;
263 }

Referenced by read().

+ 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.

394 {
395 $this->progressed = $progressed;
396 }

References $progressed.

Referenced by read().

+ Here is the caller graph for this function:

◆ setRemarks()

ilCmiXapiLrsType::setRemarks (   $a_remarks)
Parameters
stringremarks

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

542 {
543 $this->remarks = $a_remarks;
544 }

Referenced by read().

+ 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.

410 {
411 $this->satisfied = $satisfied;
412 }

References $satisfied.

Referenced by read().

+ 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.

426 {
427 $this->terminated = $terminated;
428 }

References $terminated.

Referenced by read().

+ 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.

458 {
459 $this->timestamp = $timestamp;
460 }

References $timestamp.

Referenced by read().

+ 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.

208 {
209 $this->time_to_delete = $a_time_to_delete;
210 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTitle()

ilCmiXapiLrsType::setTitle (   $a_title)
Parameters
stringtitle

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

144 {
145 $this->title = $a_title;
146 }

Referenced by read().

+ 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.

128 {
129 $this->type_id = $a_type_id;
130 }

Referenced by create(), and read().

+ Here is the caller graph for this function:

◆ update()

ilCmiXapiLrsType::update ( )

@access public

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

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

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().

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

Field Documentation

◆ $achieved

bool ilCmiXapiLrsType::$achieved = true
protected

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

Referenced by getAchieved(), and setAchieved().

◆ $answered

bool ilCmiXapiLrsType::$answered = true
protected

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

Referenced by getAnswered(), and setAnswered().

◆ $availability

ilCmiXapiLrsType::$availability = self::AVAILABILITY_CREATE
protected

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

Referenced by getAvailability().

◆ $bypassProxyEnabled

ilCmiXapiLrsType::$bypassProxyEnabled = false
protected

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

Referenced by isBypassProxyEnabled(), and setBypassProxyEnabled().

◆ $completed

bool ilCmiXapiLrsType::$completed = true
protected

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

Referenced by getCompleted(), and setCompleted().

◆ $description

ilCmiXapiLrsType::$description
protected

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

Referenced by getDescription().

◆ $duration

bool ilCmiXapiLrsType::$duration = true
protected

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

Referenced by getDuration(), and setDuration().

◆ $external_lrs

ilCmiXapiLrsType::$external_lrs
protected

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

Referenced by getExternalLrs().

◆ $failed

bool ilCmiXapiLrsType::$failed = true
protected

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

Referenced by getFailed(), and setFailed().

◆ $force_privacy_settings

ilCmiXapiLrsType::$force_privacy_settings
protected

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

Referenced by getForcePrivacySettings(), and setForcePrivacySettings().

◆ $hide_data

bool ilCmiXapiLrsType::$hide_data = false
protected

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

Referenced by getHideData(), and setHideData().

◆ $initialized

bool ilCmiXapiLrsType::$initialized = true
protected

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

Referenced by getInitialized(), and setInitialized().

◆ $launch_type

ilCmiXapiLrsType::$launch_type = self::LAUNCH_TYPE_LINK
protected

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

Referenced by getLaunchType().

◆ $lrs_endpoint

ilCmiXapiLrsType::$lrs_endpoint
protected

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

Referenced by getLrsEndpoint().

◆ $lrs_key

ilCmiXapiLrsType::$lrs_key
protected

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

Referenced by getLrsKey().

◆ $lrs_secret

ilCmiXapiLrsType::$lrs_secret
protected

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

Referenced by getLrsSecret().

◆ $no_substatements

bool ilCmiXapiLrsType::$no_substatements = false
protected

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

Referenced by getNoSubstatements(), and setNoSubstatements().

◆ $only_moveon

bool ilCmiXapiLrsType::$only_moveon = false
protected

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

Referenced by getOnlyMoveon(), and setOnlyMoveon().

◆ $passed

bool ilCmiXapiLrsType::$passed = true
protected

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

Referenced by getPassed(), and setPassed().

◆ $privacy_comment_default

ilCmiXapiLrsType::$privacy_comment_default
protected

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

Referenced by getPrivacyCommentDefault().

◆ $privacy_ident

ilCmiXapiLrsType::$privacy_ident
protected

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

Referenced by getPrivacyIdent().

◆ $privacy_name

ilCmiXapiLrsType::$privacy_name
protected

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

Referenced by getPrivacyName().

◆ $progressed

bool ilCmiXapiLrsType::$progressed = true
protected

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

Referenced by getProgressed(), and setProgressed().

◆ $remarks

ilCmiXapiLrsType::$remarks
protected

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

Referenced by getRemarks().

◆ $satisfied

bool ilCmiXapiLrsType::$satisfied = true
protected

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

Referenced by getSatisfied(), and setSatisfied().

◆ $terminated

bool ilCmiXapiLrsType::$terminated = true
protected

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

Referenced by getTerminated(), and setTerminated().

◆ $time_to_delete

ilCmiXapiLrsType::$time_to_delete
protected

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

Referenced by getTimeToDelete().

◆ $timestamp

bool ilCmiXapiLrsType::$timestamp = false
protected

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

Referenced by getTimestamp(), and setTimestamp().

◆ $title

ilCmiXapiLrsType::$title
protected

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

Referenced by getTitle().

◆ $type_id

ilCmiXapiLrsType::$type_id
protected

Definition at line 46 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.

Referenced by getDbTableName().

◆ ENDPOINT_AGGREGATE_SUFFIX

const ilCmiXapiLrsType::ENDPOINT_AGGREGATE_SUFFIX = 'statements/aggregate'

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

Referenced by getLrsEndpointStatementsAggregationLink().

◆ ENDPOINT_STATEMENTS_SUFFIX

const ilCmiXapiLrsType::ENDPOINT_STATEMENTS_SUFFIX = 'statements'

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

Referenced by getLrsEndpointStatementsLink().

◆ 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_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: