ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilObjCmiXapi Class Reference
+ Inheritance diagram for ilObjCmiXapi:
+ Collaboration diagram for ilObjCmiXapi:

Public Member Functions

 __construct (int $a_id=0, bool $a_reference=true)
 ilObjCmiXapi constructor. More...
 
 getLrsTypeId ()
 
 setLrsTypeId (int $lrsTypeId)
 
 getLrsType ()
 
 setLrsType (\ilCmiXapiLrsType $lrsType)
 
 initLrsType ()
 
 getContentType ()
 
 setContentType (string $contentType)
 
 isMixedContentType ()
 
 getSourceType ()
 
 isSourceTypeRemote ()
 
 isSourceTypeExternal ()
 
 setSourceType (string $sourceType)
 
 getActivityId ()
 
 setActivityId (string $activityId)
 
 getPublisherId ()
 
 setPublisherId (string $publisherId)
 
 getInstructions ()
 
 setInstructions (string $instructions)
 
 getLaunchUrl ()
 
 setLaunchUrl (string $launchUrl)
 
 getLaunchParameters ()
 
 setLaunchParameters (string $launchParameters)
 
 getMoveOn ()
 Attention: this is the original imported moveOn for using in LaunchData and LaunchStatement use getLMSMoveOn! More...
 
 setMoveOn (string $moveOn)
 Attention: this is the original moveOn from course import should only be set on import! More...
 
 getLPMode ()
 only for internal LMS usage More...
 
 getLMSMoveOn ()
 for CMI5 statements | state moveOn values More...
 
 getEntitlementKey ()
 
 setEntitlementKey (string $entitlementKey)
 
 isAuthFetchUrlEnabled ()
 
 setAuthFetchUrlEnabled (bool $authFetchUrlEnabled)
 
 getLaunchMethod ()
 
 setLaunchMethod (string $launchMethod)
 
 getLaunchMode ()
 
 setLaunchMode (string $launchMode)
 
 isSwitchToReviewEnabled ()
 
 getSwitchToReviewEnabled ()
 
 setSwitchToReviewEnabled (bool $switchToReviewEnabled)
 
 getMasteryScore ()
 
 setMasteryScore (float $masteryScore)
 
 getMasteryScorePercent ()
 
 setMasteryScorePercent (float $masteryScorePercent)
 
 isKeepLpStatusEnabled ()
 
 setKeepLpStatusEnabled (bool $keepLpStatusEnabled)
 
 getPrivacyIdent ()
 
 setPrivacyIdent (int $userIdent)
 
 getPrivacyName ()
 
 setPrivacyName (int $userName)
 
 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)
 
 getDeleteData ()
 
 setDeleteData (int $deleteData)
 
 getUserPrivacyComment ()
 
 setUserPrivacyComment (string $userPrivacyComment)
 
 isStatementsReportEnabled ()
 
 setStatementsReportEnabled (bool $statementsReportEnabled)
 
 getXmlManifest ()
 
 setXmlManifest (string $xmlManifest)
 
 getVersion ()
 
 setVersion (int $version)
 
 isBypassProxyEnabled ()
 
 setBypassProxyEnabled (bool $bypassProxyEnabled)
 
 getEnrichData ()
 
 setEnrichData (bool $enrichData)
 
 save ()
 
 setHighscoreEnabled (bool $a_enabled)
 Sets if the highscore feature should be enabled. More...
 
 getHighscoreEnabled ()
 Gets the setting which determines if the highscore feature is enabled. More...
 
 setHighscoreAchievedTS (bool $a_achieved_ts)
 Sets if the date and time of the scores achievement should be displayed. More...
 
 getHighscoreAchievedTS ()
 Returns if date and time of the scores achievement should be displayed. More...
 
 setHighscorePercentage (bool $a_percentage)
 Sets if the percentages of the scores pass should be shown. More...
 
 getHighscorePercentage ()
 Gets if the percentage column should be shown. More...
 
 setHighscoreWTime (bool $a_wtime)
 Sets if the workingtime of the scores should be shown. More...
 
 getHighscoreWTime ()
 Gets if the column with the workingtime should be shown. More...
 
 setHighscoreOwnTable (bool $a_own_table)
 Sets if the table with the own ranking should be shown. More...
 
 getHighscoreOwnTable ()
 Gets if the own rankings table should be shown. More...
 
 setHighscoreTopTable (bool $a_top_table)
 Sets if the top-rankings table should be shown. More...
 
 getHighscoreTopTable ()
 Gets, if the top-rankings table should be shown. More...
 
 setHighscoreTopNum (int $a_top_num)
 Sets the number of entries which are to be shown in the top-rankings table. More...
 
 getHighscoreTopNum (?int $a_retval=10)
 Gets the number of entries which are to be shown in the top-rankings table. More...
 
 getHighscoreMode ()
 
 setHighscoreMode (int $mode)
 
 getDataSetMapping ()
 
 getCurrentCmixUser ()
 
 getSessionId (?ilCmiXapiUser $cmixUser=null)
 
 getLaunchData (string $exitText, ?ilCmiXapiUser $cmixUser=null)
 LMS.LaunchData. More...
 
 getLaunchedContextTemplate (?ilCmiXapiUser $cmixUser=null)
 
 getStatement (string $verb, ?ilCmiXapiUser $cmixUser=null)
 blueprint statement More...
 
 getStatementActor (?ilCmiXapiUser $cmixUser=null)
 statement actor More...
 
 getStatementExtensions (?ilCmiXapiUser $cmixUser=null)
 Minimal extensions. More...
 
 getStatementContextActivities ()
 Minimal statementActivities. More...
 
 getStatementObject ()
 
 getLaunchedStatement (?ilCmiXapiUser $cmixUser=null)
 
 getAbandonedStatement (?string $sessionId, ?string $duration, ?ilCmiXapiUser $cmixUser=null)
 
 getSatisfiedStatement (?ilCmiXapiUser $cmixUser=null)
 
 getLastStatement (string $sess)
 get latest statement from session More...
 
 getLastStatementPipline (string $sess)
 
 isActivationLimited ()
 
 setActivationLimited (bool $activationLimited)
 
 getActivationStartingTime ()
 
 setActivationStartingTime (?int $activationStartingTime=null)
 
 getActivationEndingTime ()
 
 setActivationEndingTime (?int $activationEndingTime=null)
 
 getActivationVisibility ()
 
 setActivationVisibility (bool $activationVisibility)
 
- Public Member Functions inherited from ilObject2
 __construct (int $a_id=0, bool $a_reference=true)
 Constructor. More...
 
 read ()
 
 create (bool $a_clone_mode=false)
 
 update ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 cloneObject (int $target_id, int $copy_id=0, bool $omit_tree=false)
 
- Public Member Functions inherited from ilObject
 getObjectProperties ()
 
 flushObjectProperties ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 processAutoRating ()
 
 read ()
 
 getId ()
 
 setId (int $id)
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 getType ()
 
 setType (string $type)
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 
 getUntranslatedTitle ()
 Get untranslated object title WebDAV needs to access the untranslated title of an object. More...
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 
 setImportId (string $import_id)
 
 setOfflineStatus (bool $status)
 
 getOfflineStatus ()
 
 supportsOfflineHandling ()
 
 getOwner ()
 
 getOwnerName ()
 get full name of object owner More...
 
 setOwner (int $usr_id)
 
 getCreateDate ()
 Get create date in YYYY-MM-DD HH-MM-SS format. More...
 
 getLastUpdateDate ()
 Get last update date in YYYY-MM-DD HH-MM-SS format. More...
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 MDUpdateListener (string $element)
 Metadata update listener. More...
 
 createMetaData ()
 
 updateMetaData ()
 
 deleteMetaData ()
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 setPermissions (int $parent_ref_id)
 
 setParentRolePermissions (int $parent_ref_id)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More...
 
 applyDidacticTemplate (int $tpl_id)
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies. More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 selfOrParentWithRatingEnabled ()
 
 getPossibleSubObjects (bool $filter=true)
 get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static getInstance (int $a_id=0, bool $a_reference=true)
 
static updatePrivacySettingsFromLrsType (ilCmiXapiLrsType $lrsType)
 
static updateByPassProxyFromLrsType (ilCmiXapiLrsType $lrsType)
 
static getObjectsHavingBypassProxyEnabledAndRegisteredUsers ()
 
static guidv4 (?string $data=null)
 
static iliasUrl ()
 
static log ()
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId (string $import_id)
 Get (latest) object id for an import id. More...
 
static _lookupImportId (int $obj_id)
 
static _lookupOwnerName (int $owner_id)
 Lookup owner name for owner id. More...
 
static _getIdForImportId (string $import_id)
 
static _getAllReferences (int $id)
 get all reference ids for object ID More...
 
static _lookupTitle (int $obj_id)
 
static lookupOfflineStatus (int $obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner (int $obj_id)
 Lookup owner user ID for object ID. More...
 
static _getIdsForTitle (string $title, string $type='', bool $partial_match=false)
 
static _lookupDescription (int $obj_id)
 
static _lookupLastUpdate (int $obj_id, bool $formatted=false)
 
static _getLastUpdateOfObjects (array $obj_ids)
 
static _lookupObjId (int $ref_id)
 
static _setDeletedDate (int $ref_id, int $deleted_by)
 
static setDeletedDates (array $ref_ids, int $user_id)
 
static _resetDeletedDate (int $ref_id)
 
static _lookupDeletedDate (int $ref_id)
 
static _writeTitle (int $obj_id, string $title)
 write title to db (static) More...
 
static _writeDescription (int $obj_id, string $desc)
 write description to db (static) More...
 
static _writeImportId (int $obj_id, string $import_id)
 write import id to db (static) More...
 
static _lookupType (int $id, bool $reference=false)
 
static _isInTrash (int $ref_id)
 
static _hasUntrashedReference (int $obj_id)
 checks whether an object has at least one reference that is not in trash More...
 
static _lookupObjectId (int $ref_id)
 
static _getObjectsDataForType (string $type, bool $omit_trash=false)
 get all objects of a certain type More...
 
static _exists (int $id, bool $reference=false, ?string $type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType (string $obj_type="", ?int $owner=null)
 
static _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true)
 Prepare copy wizard object selection. More...
 
static getIconForType (string $type)
 
static _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies (int $obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $obj_ids)
 
static getAllOwnedRepositoryObjects (int $user_id)
 
static fixMissingTitles ($type, array &$obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate (int $obj_id)
 
static _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null)
 

Data Fields

const PLUGIN = false
 
const DB_TABLE_NAME = 'cmix_settings'
 
const DB_USERS_TABLE_NAME = 'cmix_users'
 
const DB_RESULTS_TABLE_NAME = 'cmix_results'
 
const CONT_TYPE_GENERIC = 'generic'
 
const CONT_TYPE_CMI5 = 'cmi5'
 
const SRC_TYPE_REMOTE = 'remoteSource'
 
const SRC_TYPE_LOCAL = 'localSource'
 
const SRC_TYPE_EXTERNAL = 'externalSource'
 
const ANONYMOUS_HOMEPAGE = 'https://example.org'
 
const LAUNCH_METHOD_OWN_WIN = 'ownWin'
 
const LAUNCH_METHOD_NEW_WIN = 'newWin'
 
const LAUNCH_METHOD_IFRAME = 'iframe'
 
const LAUNCH_MODE_NORMAL = 'Normal'
 
const LAUNCH_MODE_BROWSE = 'Browse'
 
const LAUNCH_MODE_REVIEW = 'Review'
 
const LMS_MASTERY_SCORE = 0.7
 
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 HIGHSCORE_SHOW_ALL_TABLES = 1
 
const HIGHSCORE_SHOW_TOP_TABLE = 2
 
const HIGHSCORE_SHOW_OWN_TABLE = 3
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Protected Member Functions

 initType ()
 
 doRead ()
 
 load ()
 
 doUpdate ()
 
 loadRepositoryActivationSettings ()
 
 saveRepositoryActivationSettings ()
 
 doCloneObject (ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=null)
 
 doDelete ()
 
- Protected Member Functions inherited from ilObject2
 initType ()
 
 doRead ()
 
 doCreate (bool $clone_mode=false)
 
 beforeCreate ()
 If overwritten this method should return true, there is currently no "abort" handling for cases where "false" is returned. More...
 
 doUpdate ()
 
 beforeUpdate ()
 
 doDelete ()
 
 beforeDelete ()
 
 doCloneObject (ilObject2 $new_obj, int $a_target_id, ?int $a_copy_id=null)
 
 beforeCloneObject ()
 
- Protected Member Functions inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Protected Attributes

bool $activationLimited = null
 repository object activation settings (handled by ilObject) More...
 
int $activationStartingTime = null
 
int $activationEndingTime = null
 
bool $activationVisibility = null
 
int $lrsTypeId
 
ilCmiXapiLrsType $lrsType
 
string $contentType
 
string $sourceType
 
string $activityId
 
string $publisherId
 
string $instructions
 
string $launchUrl
 
string $launchParameters
 
string $moveOn
 
string $entitlementKey
 
bool $authFetchUrlEnabled = false
 
bool $anonymousHomePage = false
 
string $launchMethod
 
string $launchMode
 
bool $switchToReviewEnabled = false
 
float $masteryScore
 
bool $keepLpStatusEnabled = false
 
int $userIdent
 
int $userName
 
string $userPrivacyComment = ""
 
bool $statementsReportEnabled = false
 
string $xmlManifest = ""
 
int $version
 
bool $bypassProxyEnabled = false
 
bool $only_moveon = false
 
bool $achieved = true
 
bool $answered = true
 
bool $completed = true
 
bool $failed = true
 
bool $initialized = true
 
bool $passed = true
 
bool $progressed = true
 
bool $satisfied = true
 
bool $terminated = true
 
bool $hide_data = false
 
bool $timestamp = false
 
bool $duration = true
 
bool $no_substatements = false
 
int $deleteData = 0
 
bool $enrichData = false
 
ilCmiXapiUser $currentCmixUser = null
 
bool $_highscore_enabled = false
 HIGHSCORE. More...
 
int $anonymity = 0
 
bool $_highscore_achieved_ts = true
 
bool $_highscore_percentage = true
 
bool $_highscore_wtime = true
 
bool $_highscore_own_table = true
 
bool $_highscore_top_table = true
 
int $_highscore_top_num = 10
 
- Protected Attributes inherited from ilObject
ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Private Attributes

ilDBInterface $database
 

Detailed Description

Definition at line 30 of file class.ilObjCmiXapi.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjCmiXapi::__construct ( int  $a_id = 0,
bool  $a_reference = true 
)

ilObjCmiXapi constructor.

Reimplemented from ilObject2.

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

160 {
161 global $DIC;
162 $this->database = $DIC->database();
163
164 $this->lrsTypeId = 0;
165
166 $this->contentType = self::CONT_TYPE_GENERIC;
167 $this->sourceType = self::SRC_TYPE_REMOTE;
168
169 $this->activityId = '';
170
171 $this->publisherId = '';
172
173 $this->instructions = '';
174
175 $this->launchUrl = '';
176 $this->launchParameters = '';
177 $this->moveOn = '';
178 $this->entitlementKey = '';
179
180 $this->authFetchUrlEnabled = false;
181
182 $this->launchMethod = self::LAUNCH_METHOD_NEW_WIN;
183 $this->launchMode = self::LAUNCH_MODE_NORMAL;
184
185 $this->switchToReviewEnabled = true;
186
187 $this->masteryScore = self::LMS_MASTERY_SCORE;
188 $this->keepLpStatusEnabled = true;
189
190 $this->userIdent = self::PRIVACY_IDENT_IL_UUID_USER_ID;
191 $this->userName = self::PRIVACY_NAME_NONE;
192 $this->userPrivacyComment = '';
193
194 $this->currentCmixUser = null;
195
196 $this->statementsReportEnabled = false;
197
198 $this->xmlManifest = '';
199 $this->version = 0;
200
201 $this->bypassProxyEnabled = false;
202
203 parent::__construct($a_id, $a_reference);
204 }
const PRIVACY_IDENT_IL_UUID_USER_ID
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), CONT_TYPE_GENERIC, ILIAS\Repository\database(), LAUNCH_METHOD_NEW_WIN, LAUNCH_MODE_NORMAL, LMS_MASTERY_SCORE, PRIVACY_IDENT_IL_UUID_USER_ID, PRIVACY_NAME_NONE, and SRC_TYPE_REMOTE.

+ Here is the call graph for this function:

Member Function Documentation

◆ doCloneObject()

ilObjCmiXapi::doCloneObject ( ilObject2  $new_obj,
int  $a_target_id,
?int  $a_copy_id = null 
)
protected
Exceptions

ILIAS\Filesystem\Exception\DirectoryNotFoundException

Exceptions

ILIAS\Filesystem\Exception\FileNotFoundException

Exceptions

ILIAS\Filesystem\Exception\IOException

Reimplemented from ilObject2.

Definition at line 1263 of file class.ilObjCmiXapi.php.

1263 : void
1264 {
1265 assert($new_obj instanceof ilObjCmiXapi);
1266
1267 $this->cloneMetaData($new_obj);
1268
1269 $new_obj->setLrsTypeId($this->getLrsTypeId());
1270 $new_obj->setContentType($this->getContentType());
1271 $new_obj->setSourceType($this->getSourceType());
1272 $new_obj->setActivityId($this->getActivityId());
1273 $new_obj->setPublisherId($this->getPublisherId());
1274 $new_obj->setInstructions($this->getInstructions());
1275 $new_obj->setLaunchUrl($this->getLaunchUrl());
1276 $new_obj->setLaunchParameters($this->getLaunchParameters());
1277 $new_obj->setMoveOn($this->getMoveOn());
1278 $new_obj->setEntitlementKey($this->getEntitlementKey());
1279 $new_obj->setAuthFetchUrlEnabled($this->isAuthFetchUrlEnabled());
1280 $new_obj->setLaunchMethod($this->getLaunchMethod());
1281 $new_obj->setLaunchMode($this->getLaunchMode());
1282 $new_obj->setSwitchToReviewEnabled($this->isSwitchToReviewEnabled());
1283 $new_obj->setMasteryScore($this->getMasteryScore());
1284 $new_obj->setKeepLpStatusEnabled($this->isKeepLpStatusEnabled());
1285 $new_obj->setPrivacyIdent($this->getPrivacyIdent());
1286 $new_obj->setPrivacyName($this->getPrivacyName());
1287 $new_obj->setUserPrivacyComment($this->getUserPrivacyComment());
1288 $new_obj->setStatementsReportEnabled($this->isStatementsReportEnabled());
1289 $new_obj->setXmlManifest($this->getXmlManifest());
1290 $new_obj->setVersion($this->getVersion());
1291 $new_obj->setHighscoreEnabled($this->getHighscoreEnabled());
1292 $new_obj->setHighscoreAchievedTS($this->getHighscoreAchievedTS());
1293 $new_obj->setHighscorePercentage($this->getHighscorePercentage());
1294 $new_obj->setHighscoreWTime($this->getHighscoreWTime());
1295 $new_obj->setHighscoreOwnTable($this->getHighscoreOwnTable());
1296 $new_obj->setHighscoreTopTable($this->getHighscoreTopTable());
1297 $new_obj->setHighscoreTopNum($this->getHighscoreTopNum());
1298 $new_obj->setBypassProxyEnabled($this->isBypassProxyEnabled());
1299 $new_obj->setOnlyMoveon($this->getOnlyMoveon());
1300 $new_obj->setAchieved($this->getAchieved());
1301 $new_obj->setAnswered($this->getAnswered());
1302 $new_obj->setCompleted($this->getCompleted());
1303 $new_obj->setFailed($this->getFailed());
1304 $new_obj->setInitialized($this->getInitialized());
1305 $new_obj->setPassed($this->getPassed());
1306 $new_obj->setProgressed($this->getProgressed());
1307 $new_obj->setSatisfied($this->getSatisfied());
1308 $new_obj->setTerminated($this->getTerminated());
1309 $new_obj->setHideData($this->getHideData());
1310 $new_obj->setTimestamp($this->getTimestamp());
1311 $new_obj->setDuration($this->getDuration());
1312 $new_obj->setNoSubstatements($this->getNoSubstatements());
1313 $new_obj->setDeleteData($this->getDeleteData());
1314 $new_obj->setEnrichData($this->getEnrichData());
1315 $new_obj->update();
1316
1317 if ($this->getSourceType() == self::SRC_TYPE_LOCAL) {
1318 $dirUtil = new ilCmiXapiContentUploadImporter($new_obj);
1319 $dirUtil->ensureCreatedObjectDirectory();
1320 $newDir = implode(DIRECTORY_SEPARATOR, [ilFileUtils::getWebspaceDir(), $dirUtil->getWebDataDirRelativeObjectDirectory()]);
1321 $dirUtil = new ilCmiXapiContentUploadImporter($this);
1322 $thisDir = implode(DIRECTORY_SEPARATOR, [ilFileUtils::getWebspaceDir(), $dirUtil->getWebDataDirRelativeObjectDirectory()]);
1323 ilFileUtils::rCopy($thisDir, $newDir);
1324 }
1325 }
static getWebspaceDir(string $mode="filesystem")
get webspace directory
static rCopy(string $a_sdir, string $a_tdir, bool $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
getHighscoreWTime()
Gets if the column with the workingtime should be shown.
getHighscoreTopNum(?int $a_retval=10)
Gets the number of entries which are to be shown in the top-rankings table.
getHighscorePercentage()
Gets if the percentage column should be shown.
getHighscoreAchievedTS()
Returns if date and time of the scores achievement should be displayed.
getHighscoreTopTable()
Gets, if the top-rankings table should be shown.
getMoveOn()
Attention: this is the original imported moveOn for using in LaunchData and LaunchStatement use getLM...
getHighscoreOwnTable()
Gets if the own rankings table should be shown.
getHighscoreEnabled()
Gets the setting which determines if the highscore feature is enabled.
cloneMetaData(ilObject $target_obj)
Copy meta data.

References ilObject2\cloneMetaData(), getAchieved(), getActivityId(), getAnswered(), getCompleted(), getContentType(), getDeleteData(), getDuration(), getEnrichData(), getEntitlementKey(), getFailed(), getHideData(), getHighscoreAchievedTS(), getHighscoreEnabled(), getHighscoreOwnTable(), getHighscorePercentage(), getHighscoreTopNum(), getHighscoreTopTable(), getHighscoreWTime(), getInitialized(), getInstructions(), getLaunchMethod(), getLaunchMode(), getLaunchParameters(), getLaunchUrl(), getLrsTypeId(), getMasteryScore(), getMoveOn(), getNoSubstatements(), getOnlyMoveon(), getPassed(), getPrivacyIdent(), getPrivacyName(), getProgressed(), getPublisherId(), getSatisfied(), getSourceType(), getTerminated(), getTimestamp(), getUserPrivacyComment(), getVersion(), ilFileUtils\getWebspaceDir(), getXmlManifest(), isAuthFetchUrlEnabled(), isBypassProxyEnabled(), isKeepLpStatusEnabled(), isStatementsReportEnabled(), isSwitchToReviewEnabled(), ilFileUtils\rCopy(), and ilObject2\update().

+ Here is the call graph for this function:

◆ doDelete()

ilObjCmiXapi::doDelete ( )
protected

Reimplemented from ilObject2.

Definition at line 1327 of file class.ilObjCmiXapi.php.

1327 : void
1328 {
1329 // delete file data entry
1330 $query = "DELETE FROM " . self::DB_TABLE_NAME . " WHERE obj_id = " . $this->database->quote($this->getId(), 'integer');
1331 $this->database->manipulate($query);
1332 ilHistory::_removeEntriesForObject($this->getId());
1333
1334 // delete entire directory and its content
1335 $dirUtil = new ilCmiXapiContentUploadImporter($this);
1336 $thisDir = implode(DIRECTORY_SEPARATOR, [ilFileUtils::getWebspaceDir(), $dirUtil->getWebDataDirRelativeObjectDirectory()]);
1337 if (is_dir($thisDir)) {
1338 ilFileUtils::delDir($thisDir);
1339 }
1340
1341 // delete meta data
1342 $this->deleteMetaData();
1343
1344 //delete results
1345 $query = "DELETE FROM " . self::DB_RESULTS_TABLE_NAME .
1346 " WHERE obj_id = " . $this->database->quote($this->getId(), 'integer');
1347 $this->database->manipulate($query);
1348
1349 // TODO check xapidel
1350 }
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively

References ILIAS\Repository\database(), ilFileUtils\delDir(), ilObject\deleteMetaData(), ilObject\getId(), and ilFileUtils\getWebspaceDir().

+ Here is the call graph for this function:

◆ doRead()

ilObjCmiXapi::doRead ( )
protected

Reimplemented from ilObject2.

Definition at line 704 of file class.ilObjCmiXapi.php.

704 : void
705 {
706 $this->load();
707 }

References load().

Referenced by getDataSetMapping().

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

◆ doUpdate()

ilObjCmiXapi::doUpdate ( )
protected

Reimplemented from ilObject2.

Definition at line 782 of file class.ilObjCmiXapi.php.

782 : void
783 {
784 $this->save();
785 }

References save().

+ Here is the call graph for this function:

◆ getAbandonedStatement()

ilObjCmiXapi::getAbandonedStatement ( ?string  $sessionId,
?string  $duration,
?ilCmiXapiUser  $cmixUser = null 
)
Returns
array<string, mixed>
Exceptions
Exception

Definition at line 1676 of file class.ilObjCmiXapi.php.

1676 : array
1677 {
1678 if (null === $cmixUser) {
1679 $cmixUser = $this->getCurrentCmixUser();
1680 }
1681 $statement = $this->getStatement('abandoned', $cmixUser);
1682 // overwrite session with abandoned oldSession
1683 $statement['context']['extensions']['https://w3id.org/xapi/cmi5/context/extensions/sessionid'] = $sessionId;
1684 $statement['result'] = array(
1685 'duration' => $duration
1686 );
1687 return $statement;
1688 }
getStatement(string $verb, ?ilCmiXapiUser $cmixUser=null)
blueprint statement

References $duration, getCurrentCmixUser(), and getStatement().

+ Here is the call graph for this function:

◆ getAchieved()

ilObjCmiXapi::getAchieved ( )

Definition at line 504 of file class.ilObjCmiXapi.php.

504 : bool
505 {
506 return $this->achieved;
507 }

References $achieved.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getActivationEndingTime()

ilObjCmiXapi::getActivationEndingTime ( )

Definition at line 1846 of file class.ilObjCmiXapi.php.

1846 : ?int
1847 {
1849 }

References $activationEndingTime.

Referenced by saveRepositoryActivationSettings().

+ Here is the caller graph for this function:

◆ getActivationStartingTime()

ilObjCmiXapi::getActivationStartingTime ( )

Definition at line 1836 of file class.ilObjCmiXapi.php.

1836 : ?int
1837 {
1839 }

References $activationStartingTime.

Referenced by saveRepositoryActivationSettings().

+ Here is the caller graph for this function:

◆ getActivationVisibility()

ilObjCmiXapi::getActivationVisibility ( )

Definition at line 1856 of file class.ilObjCmiXapi.php.

1856 : ?bool
1857 {
1859 }

References $activationVisibility.

Referenced by saveRepositoryActivationSettings().

+ Here is the caller graph for this function:

◆ getActivityId()

ilObjCmiXapi::getActivityId ( )

Definition at line 284 of file class.ilObjCmiXapi.php.

284 : string
285 {
286 return $this->activityId;
287 }

References $activityId.

Referenced by doCloneObject(), getDataSetMapping(), getLastStatementPipline(), getStatementContextActivities(), getStatementExtensions(), getStatementObject(), and save().

+ Here is the caller graph for this function:

◆ getAnswered()

ilObjCmiXapi::getAnswered ( )

Definition at line 514 of file class.ilObjCmiXapi.php.

514 : bool
515 {
516 return $this->answered;
517 }

References $answered.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getCompleted()

ilObjCmiXapi::getCompleted ( )

Definition at line 524 of file class.ilObjCmiXapi.php.

524 : bool
525 {
526 return $this->completed;
527 }

References $completed.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getContentType()

ilObjCmiXapi::getContentType ( )

Definition at line 242 of file class.ilObjCmiXapi.php.

242 : string
243 {
244 return $this->contentType;
245 }

References $contentType.

Referenced by doCloneObject(), getDataSetMapping(), getLastStatementPipline(), getStatementActor(), isMixedContentType(), and save().

+ Here is the caller graph for this function:

◆ getCurrentCmixUser()

ilObjCmiXapi::getCurrentCmixUser ( )

Definition at line 1388 of file class.ilObjCmiXapi.php.

1389 {
1390 global $DIC;
1391 if (null === $this->currentCmixUser) {
1392 $this->currentCmixUser = new ilCmiXapiUser($this->getId(), $DIC->user()->getId(), $this->getPrivacyIdent());
1393 }
1395 }
ilCmiXapiUser $currentCmixUser

References $currentCmixUser, $DIC, and ilObject\getId().

Referenced by getAbandonedStatement(), getLaunchData(), getLaunchedContextTemplate(), getLaunchedStatement(), getSatisfiedStatement(), getSessionId(), getStatement(), getStatementActor(), and getStatementExtensions().

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

◆ getDataSetMapping()

ilObjCmiXapi::getDataSetMapping ( )
Returns
array<string, float>|array<string, int>|array<string, string>

Definition at line 1202 of file class.ilObjCmiXapi.php.

1202 : array
1203 {
1204 if (null === ($lrsTypeId = $this->getLrsTypeId())) {
1205 $this->doRead();
1206 }
1207 return [
1208 'obj_id' => $this->getId(),
1209 'lrs_type_id' => $this->getLrsTypeId(),
1210 'content_type' => $this->getContentType(),
1211 'source_type' => $this->getSourceType(),
1212 'activity_id' => $this->getActivityId(),
1213 'publisher_id' => $this->getPublisherId(),
1214 'instructions' => $this->getInstructions(),
1215 'launch_url' => $this->getLaunchUrl(),
1216 'launch_parameters' => $this->getLaunchParameters(),
1217 'moveon' => $this->getMoveOn(),
1218 'entitlement_key' => $this->getEntitlementKey(),
1219 'auth_fetch_url' => (int) $this->isAuthFetchUrlEnabled(),
1220 'launch_method' => $this->getLaunchMethod(),
1221 'launch_mode' => $this->getLaunchMode(),
1222 'switch_to_review' => (int) $this->isSwitchToReviewEnabled(),
1223 'mastery_score' => $this->getMasteryScore(),
1224 'keep_lp' => (int) $this->isKeepLpStatusEnabled(),
1225 'privacy_ident' => $this->getPrivacyIdent(),
1226 'privacy_name' => $this->getPrivacyName(),
1227 'usr_privacy_comment' => $this->getUserPrivacyComment(),
1228 'show_statements' => (int) $this->isStatementsReportEnabled(),
1229 'xml_manifest' => $this->getXmlManifest(),
1230 'version' => $this->getVersion(),
1231 'highscore_enabled' => (int) $this->getHighscoreEnabled(),
1232 'highscore_achieved_ts' => (int) $this->getHighscoreAchievedTS(),
1233 'highscore_percentage' => (int) $this->getHighscorePercentage(),
1234 'highscore_wtime' => (int) $this->getHighscoreWTime(),
1235 'highscore_own_table' => (int) $this->getHighscoreOwnTable(),
1236 'highscore_top_table' => (int) $this->getHighscoreTopTable(),
1237 'highscore_top_num' => $this->getHighscoreTopNum(),
1238 'only_moveon' => (int) $this->getOnlyMoveon(),
1239 'achieved' => (int) $this->getAchieved(),
1240 'answered' => (int) $this->getAnswered(),
1241 'completed' => (int) $this->getCompleted(),
1242 'failed' => (int) $this->getFailed(),
1243 'initialized' => (int) $this->getInitialized(),
1244 'passed' => (int) $this->getPassed(),
1245 'progressed' => (int) $this->getProgressed(),
1246 'satisfied' => (int) $this->getSatisfied(),
1247 'c_terminated' => (int) $this->getTerminated(),
1248 'hide_data' => (int) $this->getHideData(),
1249 'c_timestamp' => (int) $this->getTimestamp(),
1250 'duration' => (int) $this->getDuration(),
1251 'no_substatements' => (int) $this->getNoSubstatements(),
1252 'delete_data' => (int) $this->getDeleteData(),
1253 'enrich_data' => (int) $this->getEnrichData()
1254 //'bypass_proxy' => (int) $this->isBypassProxyEnabled()
1255 ];
1256 }

References $lrsTypeId, doRead(), getAchieved(), getActivityId(), getAnswered(), getCompleted(), getContentType(), getDeleteData(), getDuration(), getEnrichData(), getEntitlementKey(), getFailed(), getHideData(), getHighscoreAchievedTS(), getHighscoreEnabled(), getHighscoreOwnTable(), getHighscorePercentage(), getHighscoreTopNum(), getHighscoreTopTable(), getHighscoreWTime(), ilObject\getId(), getInitialized(), getInstructions(), getLaunchMethod(), getLaunchMode(), getLaunchParameters(), getLaunchUrl(), getLrsTypeId(), getMasteryScore(), getMoveOn(), getNoSubstatements(), getOnlyMoveon(), getPassed(), getPrivacyIdent(), getPrivacyName(), getProgressed(), getPublisherId(), getSatisfied(), getSourceType(), getTerminated(), getTimestamp(), getUserPrivacyComment(), getVersion(), getXmlManifest(), ILIAS\Repository\int(), isAuthFetchUrlEnabled(), isKeepLpStatusEnabled(), isStatementsReportEnabled(), and isSwitchToReviewEnabled().

+ Here is the call graph for this function:

◆ getDeleteData()

ilObjCmiXapi::getDeleteData ( )

Definition at line 634 of file class.ilObjCmiXapi.php.

634 : int
635 {
636 return $this->deleteData;
637 }

References $deleteData.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getDuration()

ilObjCmiXapi::getDuration ( )

Definition at line 614 of file class.ilObjCmiXapi.php.

614 : bool
615 {
616 return $this->duration;
617 }

References $duration.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getEnrichData()

ilObjCmiXapi::getEnrichData ( )

Definition at line 694 of file class.ilObjCmiXapi.php.

694 : bool
695 {
696 return $this->enrichData;
697 }

References $enrichData.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getEntitlementKey()

ilObjCmiXapi::getEntitlementKey ( )

Definition at line 389 of file class.ilObjCmiXapi.php.

389 : string
390 {
392 }

References $entitlementKey.

Referenced by doCloneObject(), getDataSetMapping(), getLaunchData(), and save().

+ Here is the caller graph for this function:

◆ getFailed()

ilObjCmiXapi::getFailed ( )

Definition at line 534 of file class.ilObjCmiXapi.php.

534 : bool
535 {
536 return $this->failed;
537 }

References $failed.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getHideData()

ilObjCmiXapi::getHideData ( )

Definition at line 594 of file class.ilObjCmiXapi.php.

594 : bool
595 {
596 return $this->hide_data;
597 }

References $hide_data.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getHighscoreAchievedTS()

ilObjCmiXapi::getHighscoreAchievedTS ( )

Returns if date and time of the scores achievement should be displayed.

Returns
bool True, if column should be shown.

Definition at line 1060 of file class.ilObjCmiXapi.php.

1060 : bool
1061 {
1063 }

References $_highscore_achieved_ts.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getHighscoreEnabled()

ilObjCmiXapi::getHighscoreEnabled ( )

Gets the setting which determines if the highscore feature is enabled.

Returns
bool True, if highscore is enabled.

Definition at line 1043 of file class.ilObjCmiXapi.php.

1043 : bool
1044 {
1046 }
bool $_highscore_enabled
HIGHSCORE.

References $_highscore_enabled.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getHighscoreMode()

ilObjCmiXapi::getHighscoreMode ( )

Definition at line 1160 of file class.ilObjCmiXapi.php.

1160 : int
1161 {
1162 switch (true) {
1163 case $this->getHighscoreOwnTable() && $this->getHighscoreTopTable():
1165
1166 case $this->getHighscoreTopTable():
1168
1169 case $this->getHighscoreOwnTable():
1170 default:
1172 }
1173 }
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References getHighscoreOwnTable(), getHighscoreTopTable(), HIGHSCORE_SHOW_ALL_TABLES, HIGHSCORE_SHOW_OWN_TABLE, and HIGHSCORE_SHOW_TOP_TABLE.

+ Here is the call graph for this function:

◆ getHighscoreOwnTable()

ilObjCmiXapi::getHighscoreOwnTable ( )

Gets if the own rankings table should be shown.

Returns
bool True, if the own rankings table should be shown.

Definition at line 1112 of file class.ilObjCmiXapi.php.

1112 : bool
1113 {
1115 }

References $_highscore_own_table.

Referenced by doCloneObject(), getDataSetMapping(), getHighscoreMode(), and save().

+ Here is the caller graph for this function:

◆ getHighscorePercentage()

ilObjCmiXapi::getHighscorePercentage ( )

Gets if the percentage column should be shown.

Returns
bool True, if percentage column should be shown.

Definition at line 1077 of file class.ilObjCmiXapi.php.

1077 : bool
1078 {
1080 }

References $_highscore_percentage.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getHighscoreTopNum()

ilObjCmiXapi::getHighscoreTopNum ( ?int  $a_retval = 10)

Gets the number of entries which are to be shown in the top-rankings table.

Default: 10 entries

Parameters
int | null$a_retvalOptional return value if nothing is set, defaults to 10.
Returns
integer Number of entries to be shown in the top-rankings table.

Definition at line 1150 of file class.ilObjCmiXapi.php.

1150 : ?int
1151 {
1152 $retval = $a_retval;
1153 if ($this->_highscore_top_num != 0) {
1154 $retval = $this->_highscore_top_num;
1155 }
1156
1157 return $retval;
1158 }

References $_highscore_top_num.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getHighscoreTopTable()

ilObjCmiXapi::getHighscoreTopTable ( )

Gets, if the top-rankings table should be shown.

Returns
bool True, if top-rankings table should be shown.

Definition at line 1129 of file class.ilObjCmiXapi.php.

1129 : bool
1130 {
1132 }

References $_highscore_top_table.

Referenced by doCloneObject(), getDataSetMapping(), getHighscoreMode(), and save().

+ Here is the caller graph for this function:

◆ getHighscoreWTime()

ilObjCmiXapi::getHighscoreWTime ( )

Gets if the column with the workingtime should be shown.

Returns
bool True, if the workingtime column should be shown.

Definition at line 1094 of file class.ilObjCmiXapi.php.

1094 : bool
1095 {
1097 }

References $_highscore_wtime.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getInitialized()

ilObjCmiXapi::getInitialized ( )

Definition at line 544 of file class.ilObjCmiXapi.php.

544 : bool
545 {
546 return $this->initialized;
547 }

References $initialized.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getInstance()

static ilObjCmiXapi::getInstance ( int  $a_id = 0,
bool  $a_reference = true 
)
static

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

208 {
209 return new self($a_id, $a_reference);
210 }

Referenced by ilCmiXapiStatementsReport\__construct(), ilCmiXapiAbstractReportLinkBuilder\getObj(), XapiProxy\XapiProxyRequest\handleGetStatementsRequest(), and ilCmiXapiHighscoreReport\initTableData().

+ Here is the caller graph for this function:

◆ getInstructions()

ilObjCmiXapi::getInstructions ( )

Definition at line 304 of file class.ilObjCmiXapi.php.

304 : string
305 {
306 return $this->instructions;
307 }

References $instructions.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getLastStatement()

ilObjCmiXapi::getLastStatement ( string  $sess)

get latest statement from session

Returns
mixed|null

Definition at line 1713 of file class.ilObjCmiXapi.php.

1713 : mixed
1714 {
1715 global $DIC;
1716
1717 $lrsType = $this->getLrsType();
1718
1720 $defaultBasicAuth = $lrsType->getBasicAuth();
1721 $defaultHeaders = [
1722 'X-Experience-API-Version' => '1.0.3',
1723 'Authorization' => $defaultBasicAuth,
1724 'Cache-Control' => 'no-cache, no-store, must-revalidate'
1725 ];
1726
1727 $pipeline = json_encode($this->getLastStatementPipline($sess));
1728 $defaultLastStatementUrl = $defaultLrs . "?pipeline=" . urlencode($pipeline);
1729
1730 $headers = [];
1731 foreach ($defaultHeaders as $key => $value) {
1732 $headers[] = "$key: $value";
1733 }
1734
1735 $ch = curl_init($defaultLastStatementUrl);
1736 curl_setopt_array($ch, [
1737 CURLOPT_RETURNTRANSFER => true,
1738 CURLOPT_HTTPHEADER => $headers,
1739 CURLOPT_CONNECTTIMEOUT => 10,
1740 CURLOPT_TIMEOUT => 30,
1741 CURLOPT_SSL_VERIFYPEER => true,
1742 CURLOPT_FOLLOWLOCATION => true,
1743 ]);
1744
1745 $body = curl_exec($ch);
1746 $error = curl_error($ch);
1747 $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
1748 curl_close($ch);
1749
1750 if ($error) {
1751 $this->log()->error("cURL error: " . $error);
1752 return null;
1753 }
1754
1755 if ($httpCode < 200 || $httpCode >= 300) {
1756 $this->log()->error("Unexpected HTTP status: {$httpCode}");
1757 return null;
1758 }
1759
1760 $decoded = json_decode($body, true);
1761 if (json_last_error() !== JSON_ERROR_NONE) {
1762 $this->log()->error("JSON decode error: " . json_last_error_msg());
1763 return null;
1764 }
1765
1766 return $decoded;
1767 }
ilCmiXapiLrsType $lrsType
getLastStatementPipline(string $sess)
ilErrorHandling $error

References $DIC, ilObject\$error, $lrsType, ilCmiXapiLrsType\getBasicAuth(), getLastStatementPipline(), ilCmiXapiLrsType\getLrsEndpointStatementsAggregationLink(), getLrsType(), and log().

+ Here is the call graph for this function:

◆ getLastStatementPipline()

ilObjCmiXapi::getLastStatementPipline ( string  $sess)
Returns
array<int, mixed[]>

Definition at line 1772 of file class.ilObjCmiXapi.php.

1772 : array
1773 {
1774 global $DIC;
1775 $pipeline = array();
1776
1777 // filter activityId
1778 $match = array();
1779 $match['statement.object.objectType'] = 'Activity';
1780 $match['statement.actor.objectType'] = 'Agent';
1781
1782 $activityId = array();
1783
1784 if ($this->getContentType() == ilObjCmiXapi::CONT_TYPE_CMI5 && !$this->isMixedContentType()) {
1785 // https://github.com/AICC/CMI-5_Spec_Current/blob/quartz/cmi5_spec.md#963-extensions
1786 $activityId['statement.context.extensions.https://ilias&46;de/cmi5/activityid'] = $this->getActivityId();
1787 } else {
1788 $activityQuery = [
1789 '$regex' => '^' . preg_quote($this->getActivityId()) . ''
1790 ];
1791 $activityId['$or'] = [];
1792 $activityId['$or'][] = ['statement.object.id' => $activityQuery];
1793 $activityId['$or'][] = ['statement.context.contextActivities.parent.id' => $activityQuery];
1794 }
1795
1796 $sessionId = array();
1797 $sessionId['statement.context.extensions.https://w3id&46;org/xapi/cmi5/context/extensions/sessionid'] = $sess;
1798 $match['$and'] = array();
1799 $match['$and'][] = $activityId;
1800 $match['$and'][] = $sessionId;
1801 $sort = array('statement.timestamp' => -1);
1802 $project = array('statement.timestamp' => 1, 'statement.verb.id' => 1);
1803 $pipeline[] = array('$match' => $match);
1804 $pipeline[] = array('$sort' => $sort);
1805 $pipeline[] = array('$limit' => 1);
1806 $pipeline[] = array('$project' => $project);
1807
1808 return $pipeline;
1809 }

References $activityId, $DIC, CONT_TYPE_CMI5, getActivityId(), getContentType(), and isMixedContentType().

Referenced by getLastStatement().

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

◆ getLaunchData()

ilObjCmiXapi::getLaunchData ( string  $exitText,
?ilCmiXapiUser  $cmixUser = null 
)

LMS.LaunchData.

Returns
array<string, mixed>

Definition at line 1412 of file class.ilObjCmiXapi.php.

1412 : array
1413 {
1414 if (null === $cmixUser) {
1415 $cmixUser = $this->getCurrentCmixUser();
1416 }
1417 // ToDo
1418 $moveOn = $this->getLMSMoveOn();
1419 if (!$moveOn || $moveOn == '') {
1420 $moveOn = 'Completed';
1421 }
1422 $launchMode = $this->getLaunchMode();
1423 // only check switch if self::LAUNCH_MODE_NORMAL
1424 if ($launchMode == self::LAUNCH_MODE_NORMAL) {
1425 if ($cmixUser->getSatisfied() && $this->isSwitchToReviewEnabled()) {
1427 }
1428 }
1429 $ctxTemplate = [
1430 "contextTemplate" => $this->getLaunchedContextTemplate($cmixUser),
1431 "launchMode" => ucfirst($launchMode),
1432 "launchMethod" => "OwnWindow",
1433 "moveOn" => $moveOn
1434 ];
1435 $lmsLaunchMethod = $this->getLaunchMethod();
1436 if ($lmsLaunchMethod === "ownWin") {
1437 $href = ilLink::_getStaticLink(
1438 $this->getRefId(),
1439 $this->getType()
1440 );
1441 $ctxTemplate['returnURL'] = $href;
1442 } else {
1443 $ctxTemplate['returnURL'] = ILIAS_HTTP_PATH . "/xapiexit.php?text=" . rawurlencode($exitText);
1444 }
1445 if (!empty($this->getMasteryScore())) {
1446 $ctxTemplate['masteryScore'] = $this->getMasteryScore();
1447 }
1448 if (!empty($this->getLaunchParameters())) {
1449 $ctxTemplate['launchParameters'] = $this->getLaunchParameters();
1450 }
1451 if (!empty($this->getEntitlementKey())) {
1452 $ctxTemplate['entitlementKey'] = array("courseStructure" => $this->getEntitlementKey());
1453 }
1454 return $ctxTemplate;
1455 }
getLaunchedContextTemplate(?ilCmiXapiUser $cmixUser=null)
getLMSMoveOn()
for CMI5 statements | state moveOn values

References $launchMode, $moveOn, ilLink\_getStaticLink(), getCurrentCmixUser(), getEntitlementKey(), getLaunchedContextTemplate(), getLaunchMethod(), getLaunchMode(), getLaunchParameters(), getLMSMoveOn(), getMasteryScore(), ilObject\getRefId(), ilObject\getType(), and LAUNCH_MODE_REVIEW.

+ Here is the call graph for this function:

◆ getLaunchedContextTemplate()

ilObjCmiXapi::getLaunchedContextTemplate ( ?ilCmiXapiUser  $cmixUser = null)
Returns
array<string, mixed>

Definition at line 1460 of file class.ilObjCmiXapi.php.

1460 : array
1461 {
1462 if (null === $cmixUser) {
1463 $cmixUser = $this->getCurrentCmixUser();
1464 }
1465 $launchMode = $this->getLaunchMode();
1466 // only check switch if self::LAUNCH_MODE_NORMAL
1467 if ($launchMode == self::LAUNCH_MODE_NORMAL) {
1468 if ($cmixUser->getSatisfied() && $this->isSwitchToReviewEnabled()) {
1470 }
1471 }
1472 $extensions = $this->getStatementExtensions($cmixUser);
1473 $extensions['https://w3id.org/xapi/cmi5/context/extensions/launchmode'] = $launchMode;
1474 if (!empty($this->getLMSMoveOn())) {
1475 $extensions['https://w3id.org/xapi/cmi5/context/extensions/moveon'] = $this->getLMSMoveOn();
1476 }
1477 if (!empty($this->getLaunchParameters())) {
1478 $extensions['https://w3id.org/xapi/cmi5/context/extensions/launchparameters'] = $this->getLaunchParameters();
1479 }
1480 if (!empty($this->getMasteryScore())) {
1481 $extensions['https://w3id.org/xapi/cmi5/context/extensions/masteryscore'] = $this->getMasteryScore();
1482 }
1483 return array(
1484 "contextActivities" => $this->getStatementContextActivities(),
1485 "extensions" => $extensions
1486 );
1487 }
getStatementExtensions(?ilCmiXapiUser $cmixUser=null)
Minimal extensions.
getStatementContextActivities()
Minimal statementActivities.

References $launchMode, getCurrentCmixUser(), getLaunchMode(), getLaunchParameters(), getLMSMoveOn(), getMasteryScore(), getStatementContextActivities(), getStatementExtensions(), and LAUNCH_MODE_REVIEW.

Referenced by getLaunchData().

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

◆ getLaunchedStatement()

ilObjCmiXapi::getLaunchedStatement ( ?ilCmiXapiUser  $cmixUser = null)
Returns
array<string, mixed>
Exceptions
Exception

Definition at line 1645 of file class.ilObjCmiXapi.php.

1645 : array
1646 {
1647 if (null === $cmixUser) {
1648 $cmixUser = $this->getCurrentCmixUser();
1649 }
1650 $launchMode = $this->getLaunchMode();
1651 // only check switch if self::LAUNCH_MODE_NORMAL
1652 if ($launchMode == self::LAUNCH_MODE_NORMAL) {
1653 if ($cmixUser->getSatisfied() && $this->isSwitchToReviewEnabled()) {
1655 }
1656 }
1657
1658 $statement = $this->getStatement('launched', $cmixUser);
1659 $statement['context']['extensions']['https://w3id.org/xapi/cmi5/context/extensions/launchmode'] = $launchMode;
1660 if (!empty($this->getLMSMoveOn())) {
1661 $statement['context']['extensions']['https://w3id.org/xapi/cmi5/context/extensions/moveon'] = $this->getLMSMoveOn();
1662 }
1663 if (!empty($this->getLaunchParameters())) {
1664 $statement['context']['extensions']['https://w3id.org/xapi/cmi5/context/extensions/launchparameters'] = $this->getLaunchParameters();
1665 }
1666 if (!empty($this->getMasteryScore())) {
1667 $statement['context']['extensions']['https://w3id.org/xapi/cmi5/context/extensions/masteryscore'] = $this->getMasteryScore();
1668 }
1669 return $statement;
1670 }

References $launchMode, getCurrentCmixUser(), getLaunchMode(), getLaunchParameters(), getLMSMoveOn(), getMasteryScore(), getStatement(), and LAUNCH_MODE_REVIEW.

+ Here is the call graph for this function:

◆ getLaunchMethod()

ilObjCmiXapi::getLaunchMethod ( )

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

409 : string
410 {
411 return $this->launchMethod;
412 }

References $launchMethod.

Referenced by doCloneObject(), getDataSetMapping(), getLaunchData(), and save().

+ Here is the caller graph for this function:

◆ getLaunchMode()

ilObjCmiXapi::getLaunchMode ( )

Definition at line 419 of file class.ilObjCmiXapi.php.

419 : string
420 {
421 return ucfirst($this->launchMode);
422 }

Referenced by doCloneObject(), getDataSetMapping(), getLaunchData(), getLaunchedContextTemplate(), getLaunchedStatement(), and save().

+ Here is the caller graph for this function:

◆ getLaunchParameters()

ilObjCmiXapi::getLaunchParameters ( )

Definition at line 324 of file class.ilObjCmiXapi.php.

324 : string
325 {
327 }

References $launchParameters.

Referenced by doCloneObject(), getDataSetMapping(), getLaunchData(), getLaunchedContextTemplate(), getLaunchedStatement(), and save().

+ Here is the caller graph for this function:

◆ getLaunchUrl()

ilObjCmiXapi::getLaunchUrl ( )

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

314 : string
315 {
316 return $this->launchUrl;
317 }

References $launchUrl.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getLMSMoveOn()

ilObjCmiXapi::getLMSMoveOn ( )

for CMI5 statements | state moveOn values

Returns
string ilCmiXapiLP::const

Definition at line 366 of file class.ilObjCmiXapi.php.

366 : string
367 {
369 switch ($this->getLPMode()) {
372 break;
376 break;
380 break;
384 break;
385 }
386 return $moveOn;
387 }
const MOVEON_COMPLETED_OR_PASSED
const MOVEON_NOT_APPLICABLE
const LP_MODE_CMIX_COMPL_OR_PASSED_WITH_FAILED
getLPMode()
only for internal LMS usage

References $moveOn, getLPMode(), ilLPObjSettings\LP_MODE_CMIX_COMPL_OR_PASSED_WITH_FAILED, ilLPObjSettings\LP_MODE_CMIX_COMPL_WITH_FAILED, ilLPObjSettings\LP_MODE_CMIX_COMPLETED, ilLPObjSettings\LP_MODE_CMIX_COMPLETED_OR_PASSED, ilLPObjSettings\LP_MODE_CMIX_PASSED, ilLPObjSettings\LP_MODE_CMIX_PASSED_WITH_FAILED, ilLPObjSettings\LP_MODE_DEACTIVATED, ilCmiXapiLP\MOVEON_COMPLETED, ilCmiXapiLP\MOVEON_COMPLETED_OR_PASSED, ilCmiXapiLP\MOVEON_NOT_APPLICABLE, and ilCmiXapiLP\MOVEON_PASSED.

Referenced by getLaunchData(), getLaunchedContextTemplate(), and getLaunchedStatement().

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

◆ getLPMode()

ilObjCmiXapi::getLPMode ( )

only for internal LMS usage

Returns
int ilLPObjSettings::const

Definition at line 356 of file class.ilObjCmiXapi.php.

356 : int
357 {
358 $olp = ilObjectLP::getInstance($this->getId());
359 return $olp->getCurrentMode();
360 }
static getInstance(int $obj_id)

References ilObject\getId(), and ilObjectLP\getInstance().

Referenced by getLMSMoveOn().

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

◆ getLrsType()

ilObjCmiXapi::getLrsType ( )

Definition at line 227 of file class.ilObjCmiXapi.php.

References $lrsType.

Referenced by ilXapiCompliantStatementsReportLinkBuilder\__construct(), and getLastStatement().

+ Here is the caller graph for this function:

◆ getLrsTypeId()

ilObjCmiXapi::getLrsTypeId ( )

Definition at line 217 of file class.ilObjCmiXapi.php.

217 : ?int
218 {
219 return $this->lrsTypeId;
220 }

References $lrsTypeId.

Referenced by doCloneObject(), getDataSetMapping(), initLrsType(), and save().

+ Here is the caller graph for this function:

◆ getMasteryScore()

ilObjCmiXapi::getMasteryScore ( )

Definition at line 444 of file class.ilObjCmiXapi.php.

444 : float
445 {
446 return $this->masteryScore;
447 }

References $masteryScore.

Referenced by doCloneObject(), getDataSetMapping(), getLaunchData(), getLaunchedContextTemplate(), getLaunchedStatement(), and save().

+ Here is the caller graph for this function:

◆ getMasteryScorePercent()

ilObjCmiXapi::getMasteryScorePercent ( )

Definition at line 454 of file class.ilObjCmiXapi.php.

454 : float
455 {
456 return $this->masteryScore * 100;
457 }

◆ getMoveOn()

ilObjCmiXapi::getMoveOn ( )

Attention: this is the original imported moveOn for using in LaunchData and LaunchStatement use getLMSMoveOn!

Definition at line 338 of file class.ilObjCmiXapi.php.

338 : string
339 {
340 return $this->moveOn;
341 }

References $moveOn.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getNoSubstatements()

ilObjCmiXapi::getNoSubstatements ( )

Definition at line 624 of file class.ilObjCmiXapi.php.

624 : bool
625 {
627 }

References $no_substatements.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getObjectsHavingBypassProxyEnabledAndRegisteredUsers()

static ilObjCmiXapi::getObjectsHavingBypassProxyEnabledAndRegisteredUsers ( )
static
Returns
mixed[]

Definition at line 985 of file class.ilObjCmiXapi.php.

985 : array
986 {
987 global $DIC; /* @var \ILIAS\DI\Container $DIC */
988 // not possible: Move Global Access to Constructor
989 $query = "
990 SELECT DISTINCT s.obj_id FROM " . self::DB_TABLE_NAME . " s
991 INNER JOIN " . self::DB_USERS_TABLE_NAME . " u ON u.obj_id = s.obj_id
992 WHERE bypass_proxy = %s
993 ";
994
995 $res = $DIC->database()->queryF($query, array('integer'), array(1));
996
997 $objects = array();
998
999 while ($row = $DIC->database()->fetchAssoc($res)) {
1000 $objects[] = (int) $row['obj_id'];
1001 }
1002
1003 return $objects;
1004 }
$res
Definition: ltiservices.php:69

References $DIC, $res, and ILIAS\Repository\int().

Referenced by ilXapiResultsCronjob\getObjectsToBeReported().

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

◆ getOnlyMoveon()

ilObjCmiXapi::getOnlyMoveon ( )

Definition at line 494 of file class.ilObjCmiXapi.php.

494 : bool
495 {
496 return $this->only_moveon;
497 }

References $only_moveon.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getPassed()

ilObjCmiXapi::getPassed ( )

Definition at line 554 of file class.ilObjCmiXapi.php.

554 : bool
555 {
556 return $this->passed;
557 }

References $passed.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getPrivacyIdent()

ilObjCmiXapi::getPrivacyIdent ( )

Definition at line 474 of file class.ilObjCmiXapi.php.

474 : int
475 {
476 return $this->userIdent;
477 }

References $userIdent.

Referenced by ilCmiXapiRegistrationGUI\__construct(), doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getPrivacyName()

ilObjCmiXapi::getPrivacyName ( )

Definition at line 484 of file class.ilObjCmiXapi.php.

484 : int
485 {
486 return $this->userName;
487 }

References $userName.

Referenced by doCloneObject(), getDataSetMapping(), getStatementActor(), and save().

+ Here is the caller graph for this function:

◆ getProgressed()

ilObjCmiXapi::getProgressed ( )

Definition at line 564 of file class.ilObjCmiXapi.php.

564 : bool
565 {
566 return $this->progressed;
567 }

References $progressed.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getPublisherId()

ilObjCmiXapi::getPublisherId ( )

Definition at line 294 of file class.ilObjCmiXapi.php.

294 : string
295 {
296 return $this->publisherId;
297 }

References $publisherId.

Referenced by doCloneObject(), getDataSetMapping(), getStatementContextActivities(), isMixedContentType(), and save().

+ Here is the caller graph for this function:

◆ getSatisfied()

ilObjCmiXapi::getSatisfied ( )

Definition at line 574 of file class.ilObjCmiXapi.php.

574 : bool
575 {
576 return $this->satisfied;
577 }

References $satisfied.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getSatisfiedStatement()

ilObjCmiXapi::getSatisfiedStatement ( ?ilCmiXapiUser  $cmixUser = null)
Returns
array<string, mixed>
Exceptions
Exception

Definition at line 1694 of file class.ilObjCmiXapi.php.

1694 : array
1695 {
1696 if (null === $cmixUser) {
1697 $cmixUser = $this->getCurrentCmixUser();
1698 }
1699 $statement = $this->getStatement('satisfied', $cmixUser);
1700 // add type, see https://aicc.github.io/CMI-5_Spec_Current/samples/scenarios/16-not_applicable-no_launch/#satisfied-statement
1701 // see also: https://github.com/AICC/CMI-5_Spec_Current/blob/quartz/cmi5_spec.md#verbs_satisfied
1702 $type = "https://w3id.org/xapi/cmi5/activitytype/course";
1703 $statement['object']['definition']['type'] = $type;
1704 $statement['context']['contextActivities']['grouping'][0]['definition']['type'] = $type;
1705 return $statement;
1706 }
string $type

References ilObject\$type, getCurrentCmixUser(), and getStatement().

+ Here is the call graph for this function:

◆ getSessionId()

ilObjCmiXapi::getSessionId ( ?ilCmiXapiUser  $cmixUser = null)
Exceptions
ilCmiXapiException

Definition at line 1400 of file class.ilObjCmiXapi.php.

1400 : string
1401 {
1402 if (null === $cmixUser) {
1403 $cmixUser = $this->getCurrentCmixUser();
1404 }
1405 return ilCmiXapiAuthToken::getCmi5SessionByUsrIdAndObjIdAndRefId($cmixUser->getUsrId(), $this->getId(), $this->getRefId());
1406 }
static getCmi5SessionByUsrIdAndObjIdAndRefId(int $usrId, int $objId, ?int $refId=null)

References ilCmiXapiAuthToken\getCmi5SessionByUsrIdAndObjIdAndRefId(), and getCurrentCmixUser().

Referenced by getStatementExtensions().

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

◆ getSourceType()

ilObjCmiXapi::getSourceType ( )

Definition at line 264 of file class.ilObjCmiXapi.php.

264 : string
265 {
266 return $this->sourceType;
267 }

References $sourceType.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getStatement()

ilObjCmiXapi::getStatement ( string  $verb,
?ilCmiXapiUser  $cmixUser = null 
)

blueprint statement

Returns
array<string, mixed>
Exceptions
Exception

Definition at line 1494 of file class.ilObjCmiXapi.php.

1494 : array
1495 {
1496 if (null === $cmixUser) {
1497 $cmixUser = $this->getCurrentCmixUser();
1498 }
1499 $id = self::guidv4();
1500 $actor = $this->getStatementActor($cmixUser);
1501 $verbUri = ilCmiXapiVerbList::getInstance()->getVerbUri($verb);
1502 $extensions = $this->getStatementExtensions($cmixUser);
1503 $registration = $cmixUser->getRegistration();
1504 $contextActivities = $this->getStatementContextActivities();
1505 $object = $this->getStatementObject();
1506 return array(
1507 'id' => $id,
1508 'actor' => $actor,
1509 'verb' =>
1510 array(
1511 'id' => $verbUri
1512 ),
1513 'context' =>
1514 array(
1515 'extensions' => $extensions,
1516 'registration' => $registration,
1517 'contextActivities' => $contextActivities
1518 ),
1519 'object' => $object
1520 );
1521 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static guidv4(?string $data=null)
getStatementActor(?ilCmiXapiUser $cmixUser=null)
statement actor

References $id, getCurrentCmixUser(), ilCmiXapiVerbList\getInstance(), getStatementActor(), getStatementContextActivities(), getStatementExtensions(), getStatementObject(), and guidv4().

Referenced by getAbandonedStatement(), getLaunchedStatement(), and getSatisfiedStatement().

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

◆ getStatementActor()

ilObjCmiXapi::getStatementActor ( ?ilCmiXapiUser  $cmixUser = null)

statement actor

Returns
array<string, mixed[]>

Definition at line 1527 of file class.ilObjCmiXapi.php.

1527 : array
1528 {
1529 global $DIC;
1530 if (null === $cmixUser) {
1531 $cmixUser = $this->getCurrentCmixUser();
1532 }
1533 $user = new ilObjUser($cmixUser->getUsrId()); // ToDo: Caching Names
1534 $name = ilCmiXapiUser::getName($this->getPrivacyName(), $user);
1535 if ($name == '') {
1536 $this->log()->error('error: no name in cmixuser');
1537 $name = 'UNDEFINED';
1538 }
1539 $homePage = ($this->anonymousHomePage == true) ? self::ANONYMOUS_HOMEPAGE : self::iliasUrl();
1540 if ($this->getContentType() == self::CONT_TYPE_CMI5) {
1541 $actor = [
1542 'objectType' => 'Agent',
1543 'account' => [
1544 'homePage' => $homePage,
1545 'name' => $cmixUser->getUsrIdent()
1546 ]
1547 ];
1548 if ($name !== '') {
1549 $actor['name'] = $name;
1550 }
1551 } else {
1552 $actor = [
1553 'objectType' => 'Agent',
1554 'mbox' => 'mailto:' . $cmixUser->getUsrIdent()
1555 ];
1556 if ($name !== '') {
1557 $actor['name'] = $name;
1558 }
1559 }
1560 return $actor;
1561 }
static getName(int $userNameMode, ilObjUser $user)
User class.
ilObjUser $user

References $DIC, ilObject\$user, CONT_TYPE_CMI5, getContentType(), getCurrentCmixUser(), ilCmiXapiUser\getName(), getPrivacyName(), and log().

Referenced by getStatement().

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

◆ getStatementContextActivities()

ilObjCmiXapi::getStatementContextActivities ( )

Minimal statementActivities.

Returns
array<string, array<int, array<string, array<string, array<string, string>>|string>>>

Definition at line 1583 of file class.ilObjCmiXapi.php.

1583 : array
1584 {
1585 $publisherId = $this->getPublisherId();
1586 $activityId = $this->getActivityId();
1587 if (empty($publisherId)) {
1589 }
1590 return array(
1591 "grouping" => [
1592 [
1593 "objectType" => "Activity",
1594 "id" => "{$publisherId}",
1595 'definition' =>
1596 array(
1597 'name' =>
1598 array(
1599 'de-DE' => $this->getTitle(),
1600 'en-US' => $this->getTitle()
1601 ),
1602 'description' =>
1603 array(
1604 'de-DE' => $this->getDescription(),
1605 'en-US' => $this->getDescription()
1606 )
1607 )]
1608 ],
1609 "category" => [
1610 [
1611 "id" => "https://w3id.org/xapi/cmi5/context/categories/cmi5",
1612 "objectType" => "Activity"
1613 ]
1614 ]
1615 );
1616 }

References $activityId, $publisherId, getActivityId(), ilObject\getDescription(), getPublisherId(), and ilObject\getTitle().

Referenced by getLaunchedContextTemplate(), and getStatement().

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

◆ getStatementExtensions()

ilObjCmiXapi::getStatementExtensions ( ?ilCmiXapiUser  $cmixUser = null)

Minimal extensions.

Returns
array<string, mixed>
Exceptions
ilCmiXapiException

Definition at line 1568 of file class.ilObjCmiXapi.php.

1568 : array
1569 {
1570 if (null === $cmixUser) {
1571 $cmixUser = $this->getCurrentCmixUser();
1572 }
1573 return array(
1574 'https://w3id.org/xapi/cmi5/context/extensions/sessionid' => $this->getSessionId($cmixUser),
1575 'https://ilias.de/cmi5/activityid' => $this->getActivityId()
1576 );
1577 }
getSessionId(?ilCmiXapiUser $cmixUser=null)

References getActivityId(), getCurrentCmixUser(), and getSessionId().

Referenced by getLaunchedContextTemplate(), and getStatement().

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

◆ getStatementObject()

ilObjCmiXapi::getStatementObject ( )
Returns
array<string, mixed[]>

Definition at line 1621 of file class.ilObjCmiXapi.php.

1621 : array
1622 {
1623 return array(
1624 'id' => $this->getActivityId(),
1625 'definition' =>
1626 array(
1627 'name' =>
1628 array(
1629 'de-DE' => $this->getTitle(),
1630 'en-US' => $this->getTitle()
1631 ),
1632 'description' =>
1633 array(
1634 'de-DE' => $this->getDescription(),
1635 'en-US' => $this->getDescription()
1636 )
1637 )
1638 );
1639 }

References getActivityId(), ilObject\getDescription(), and ilObject\getTitle().

Referenced by getStatement().

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

◆ getSwitchToReviewEnabled()

ilObjCmiXapi::getSwitchToReviewEnabled ( )

Definition at line 434 of file class.ilObjCmiXapi.php.

434 : bool
435 {
437 }

References $switchToReviewEnabled.

◆ getTerminated()

ilObjCmiXapi::getTerminated ( )

Definition at line 584 of file class.ilObjCmiXapi.php.

584 : bool
585 {
586 return $this->terminated;
587 }

References $terminated.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getTimestamp()

ilObjCmiXapi::getTimestamp ( )

Definition at line 604 of file class.ilObjCmiXapi.php.

604 : bool
605 {
606 return $this->timestamp;
607 }

References $timestamp.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getUserPrivacyComment()

ilObjCmiXapi::getUserPrivacyComment ( )

Definition at line 644 of file class.ilObjCmiXapi.php.

644 : string
645 {
647 }

References $userPrivacyComment.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getVersion()

ilObjCmiXapi::getVersion ( )

Definition at line 674 of file class.ilObjCmiXapi.php.

674 : int
675 {
676 return $this->version;
677 }

References $version.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ getXmlManifest()

ilObjCmiXapi::getXmlManifest ( )

Definition at line 664 of file class.ilObjCmiXapi.php.

664 : string
665 {
666 return $this->xmlManifest;
667 }

References $xmlManifest.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ guidv4()

static ilObjCmiXapi::guidv4 ( ?string  $data = null)
static
Exceptions
Exception

Definition at line 1373 of file class.ilObjCmiXapi.php.

1373 : string
1374 {
1375 // Generate 16 bytes (128 bits) of random data or use the data passed into the function.
1376 $data ??= random_bytes(16);
1377 assert(strlen($data) == 16);
1378
1379 // Set version to 0100
1380 $data[6] = chr(ord($data[6]) & 0x0f | 0x40);
1381 // Set bits 6-7 to 10
1382 $data[8] = chr(ord($data[8]) & 0x3f | 0x80);
1383
1384 // Output the 36 character UUID.
1385 return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));
1386 }

References $data.

Referenced by ilCmiXapiLaunchGUI\CMI5preLaunch(), and getStatement().

+ Here is the caller graph for this function:

◆ iliasUrl()

static ilObjCmiXapi::iliasUrl ( )
static

Definition at line 1811 of file class.ilObjCmiXapi.php.

1811 : string
1812 {
1813 global $DIC;
1814 $regex = '/^(https?:\/\/[^\/]+).*/';
1815 preg_match($regex, (string) $DIC->http()->request()->getUri(), $request_parts);
1816 return $request_parts[1];
1817 }

References $DIC.

◆ initLrsType()

ilObjCmiXapi::initLrsType ( )

Definition at line 237 of file class.ilObjCmiXapi.php.

237 : void
238 {
239 $this->setLrsType(new ilCmiXapiLrsType($this->getLrsTypeId()));
240 }
setLrsType(\ilCmiXapiLrsType $lrsType)

References getLrsTypeId(), and setLrsType().

Referenced by load().

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

◆ initType()

ilObjCmiXapi::initType ( )
protected

Reimplemented from ilObject2.

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

212 : void
213 {
214 $this->type = "cmix";
215 }

◆ isActivationLimited()

ilObjCmiXapi::isActivationLimited ( )

Definition at line 1825 of file class.ilObjCmiXapi.php.

1825 : ?bool
1826 {
1828 }
bool $activationLimited
repository object activation settings (handled by ilObject)

References $activationLimited.

Referenced by saveRepositoryActivationSettings().

+ Here is the caller graph for this function:

◆ isAuthFetchUrlEnabled()

ilObjCmiXapi::isAuthFetchUrlEnabled ( )

Definition at line 399 of file class.ilObjCmiXapi.php.

399 : bool
400 {
402 }

References $authFetchUrlEnabled.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ isBypassProxyEnabled()

ilObjCmiXapi::isBypassProxyEnabled ( )

Definition at line 684 of file class.ilObjCmiXapi.php.

684 : bool
685 {
687 }

References $bypassProxyEnabled.

Referenced by doCloneObject(), and save().

+ Here is the caller graph for this function:

◆ isKeepLpStatusEnabled()

ilObjCmiXapi::isKeepLpStatusEnabled ( )

Definition at line 464 of file class.ilObjCmiXapi.php.

464 : bool
465 {
467 }

References $keepLpStatusEnabled.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ isMixedContentType()

ilObjCmiXapi::isMixedContentType ( )

Definition at line 256 of file class.ilObjCmiXapi.php.

256 : bool
257 {
258 // after 21-07-24 and before cmi5 refactoring
259 // launched before cmi5 refactoring ident in: statement.actor.mbox
260 // launched after cmi5 refactoring ident in: statement.actor.account.name
261 return (($this->getContentType() == self::CONT_TYPE_CMI5) && empty($this->getPublisherId()));
262 }

References getContentType(), and getPublisherId().

Referenced by getLastStatementPipline().

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

◆ isSourceTypeExternal()

ilObjCmiXapi::isSourceTypeExternal ( )

Definition at line 274 of file class.ilObjCmiXapi.php.

274 : bool
275 {
276 return $this->sourceType == self::SRC_TYPE_EXTERNAL;
277 }

References SRC_TYPE_EXTERNAL.

◆ isSourceTypeRemote()

ilObjCmiXapi::isSourceTypeRemote ( )

Definition at line 269 of file class.ilObjCmiXapi.php.

269 : bool
270 {
271 return $this->sourceType == self::SRC_TYPE_REMOTE;
272 }

References SRC_TYPE_REMOTE.

◆ isStatementsReportEnabled()

ilObjCmiXapi::isStatementsReportEnabled ( )

Definition at line 654 of file class.ilObjCmiXapi.php.

654 : bool
655 {
657 }

References $statementsReportEnabled.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ isSwitchToReviewEnabled()

ilObjCmiXapi::isSwitchToReviewEnabled ( )

Definition at line 429 of file class.ilObjCmiXapi.php.

429 : bool
430 {
432 }

References $switchToReviewEnabled.

Referenced by doCloneObject(), getDataSetMapping(), and save().

+ Here is the caller graph for this function:

◆ load()

ilObjCmiXapi::load ( )
protected

Definition at line 709 of file class.ilObjCmiXapi.php.

709 : void
710 {
711 $query = "SELECT * FROM " . self::DB_TABLE_NAME . " WHERE obj_id = %s";
712 $res = $this->database->queryF($query, ['integer'], [$this->getId()]);
713
714 while ($row = $this->database->fetchAssoc($res)) {
715 if ($row['lrs_type_id']) {
716 $this->setLrsTypeId((int) $row['lrs_type_id']);
717 $this->initLrsType();
718 }
719
720 $this->setContentType((string) $row['content_type']);
721 $this->setSourceType((string) $row['source_type']);
722
723 $this->setActivityId((string) $row['activity_id']);
724 $this->setPublisherId((string) $row['publisher_id']);
725 $this->setInstructions((string) $row['instructions']);
726
727 $this->setLaunchUrl((string) $row['launch_url']);
728 $this->setLaunchParameters((string) $row['launch_parameters']);
729 $this->setMoveOn((string) $row['moveon']);
730 $this->setEntitlementKey((string) $row['entitlement_key']);
731 $this->setAuthFetchUrlEnabled((bool) $row['auth_fetch_url']);
732
733 $this->setLaunchMethod((string) $row['launch_method']);
734
735 $this->setLaunchMode((string) $row['launch_mode']);
736 $this->setSwitchToReviewEnabled((bool) $row['switch_to_review']);
737 $this->setMasteryScore((float) $row['mastery_score']);
738 $this->setKeepLpStatusEnabled((bool) $row['keep_lp']);
739
740 $this->setPrivacyIdent((int) $row['privacy_ident']);
741 $this->setPrivacyName((int) $row['privacy_name']);
742
743 $this->setOnlyMoveon((bool) $row['only_moveon']);
744 $this->setAchieved((bool) $row['achieved']);
745 $this->setAnswered((bool) $row['answered']);
746 $this->setCompleted((bool) $row['completed']);
747 $this->setFailed((bool) $row['failed']);
748 $this->setInitialized((bool) $row['initialized']);
749 $this->setPassed((bool) $row['passed']);
750 $this->setProgressed((bool) $row['progressed']);
751 $this->setSatisfied((bool) $row['satisfied']);
752 $this->setTerminated((bool) $row['c_terminated']);
753 $this->setHideData((bool) $row['hide_data']);
754 $this->setTimestamp((bool) $row['c_timestamp']);
755 $this->setDuration((bool) $row['duration']);
756 $this->setNoSubstatements((bool) $row['no_substatements']);
757 $this->setEnrichData((bool) $row['enrich_data']);
758 $this->setDeleteData((int) $row['delete_data']);
759
760 $this->setUserPrivacyComment((string) $row['usr_privacy_comment']);
761
762 $this->setStatementsReportEnabled((bool) $row['show_statements']);
763
764 $this->setXmlManifest((string) $row['xml_manifest']);
765 $this->setVersion((int) $row['version']);
766
767 $this->setBypassProxyEnabled((bool) $row['bypass_proxy']);
768
769 $this->setHighscoreEnabled((bool) $row['highscore_enabled']);
770 $this->setHighscoreAchievedTS((bool) $row['highscore_achieved_ts']);
771 $this->setHighscorePercentage((bool) $row['highscore_percentage']);
772 $this->setHighscoreWTime((bool) $row['highscore_wtime']);
773 $this->setHighscoreOwnTable((bool) $row['highscore_own_table']);
774 $this->setHighscoreTopTable((bool) $row['highscore_top_table']);
775 $this->setHighscoreTopNum((int) $row['highscore_top_num']);
776 }
777
779 }
setDuration(bool $duration)
setBypassProxyEnabled(bool $bypassProxyEnabled)
setOnlyMoveon(bool $only_moveon)
setHideData(bool $hide_data)
setPrivacyName(int $userName)
setContentType(string $contentType)
setNoSubstatements(bool $no_substatements)
setHighscoreWTime(bool $a_wtime)
Sets if the workingtime of the scores should be shown.
setLaunchMethod(string $launchMethod)
setPublisherId(string $publisherId)
setHighscoreTopNum(int $a_top_num)
Sets the number of entries which are to be shown in the top-rankings table.
setSwitchToReviewEnabled(bool $switchToReviewEnabled)
setLaunchParameters(string $launchParameters)
setSatisfied(bool $satisfied)
setTimestamp(bool $timestamp)
setTerminated(bool $terminated)
setAnswered(bool $answered)
setSourceType(string $sourceType)
setStatementsReportEnabled(bool $statementsReportEnabled)
setHighscoreOwnTable(bool $a_own_table)
Sets if the table with the own ranking should be shown.
setLrsTypeId(int $lrsTypeId)
setDeleteData(int $deleteData)
setAchieved(bool $achieved)
setMoveOn(string $moveOn)
Attention: this is the original moveOn from course import should only be set on import!
setLaunchMode(string $launchMode)
setProgressed(bool $progressed)
setInstructions(string $instructions)
setXmlManifest(string $xmlManifest)
setHighscoreTopTable(bool $a_top_table)
Sets if the top-rankings table should be shown.
setInitialized(bool $initialized)
setCompleted(bool $completed)
setMasteryScore(float $masteryScore)
setHighscoreAchievedTS(bool $a_achieved_ts)
Sets if the date and time of the scores achievement should be displayed.
setPassed(bool $passed)
setVersion(int $version)
setLaunchUrl(string $launchUrl)
setEnrichData(bool $enrichData)
setUserPrivacyComment(string $userPrivacyComment)
setEntitlementKey(string $entitlementKey)
setHighscoreEnabled(bool $a_enabled)
Sets if the highscore feature should be enabled.
setFailed(bool $failed)
setKeepLpStatusEnabled(bool $keepLpStatusEnabled)
setAuthFetchUrlEnabled(bool $authFetchUrlEnabled)
setHighscorePercentage(bool $a_percentage)
Sets if the percentages of the scores pass should be shown.
setActivityId(string $activityId)
setPrivacyIdent(int $userIdent)

References $res, ILIAS\Repository\database(), ilObject\getId(), initLrsType(), loadRepositoryActivationSettings(), setAchieved(), setActivityId(), setAnswered(), setAuthFetchUrlEnabled(), setBypassProxyEnabled(), setCompleted(), setContentType(), setDeleteData(), setDuration(), setEnrichData(), setEntitlementKey(), setFailed(), setHideData(), setHighscoreAchievedTS(), setHighscoreEnabled(), setHighscoreOwnTable(), setHighscorePercentage(), setHighscoreTopNum(), setHighscoreTopTable(), setHighscoreWTime(), setInitialized(), setInstructions(), setKeepLpStatusEnabled(), setLaunchMethod(), setLaunchMode(), setLaunchParameters(), setLaunchUrl(), setLrsTypeId(), setMasteryScore(), setMoveOn(), setNoSubstatements(), setOnlyMoveon(), setPassed(), setPrivacyIdent(), setPrivacyName(), setProgressed(), setPublisherId(), setSatisfied(), setSourceType(), setStatementsReportEnabled(), setSwitchToReviewEnabled(), setTerminated(), setTimestamp(), setUserPrivacyComment(), setVersion(), and setXmlManifest().

Referenced by doRead().

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

◆ loadRepositoryActivationSettings()

ilObjCmiXapi::loadRepositoryActivationSettings ( )
protected

Definition at line 845 of file class.ilObjCmiXapi.php.

845 : void
846 {
847 if ($this->ref_id) {
848 $activation = ilObjectActivation::getItem($this->ref_id);
849 switch ($activation["timing_type"]) {
851 $this->setActivationLimited(true);
852 if (!is_null($activation["timing_start"])) {
853 $activation["timing_start"] = (int) $activation["timing_start"];
854 }
855 $this->setActivationStartingTime($activation["timing_start"]);
856 if (!is_null($activation["timing_end"])) {
857 $activation["timing_end"] = (int) $activation["timing_end"];
858 }
859 $this->setActivationEndingTime($activation["timing_end"]);
860 $this->setActivationVisibility((bool) $activation["visible"]);
861 break;
862
863 default:
864 $this->setActivationLimited(false);
865 break;
866 }
867 }
868 }
setActivationEndingTime(?int $activationEndingTime=null)
setActivationVisibility(bool $activationVisibility)
setActivationLimited(bool $activationLimited)
setActivationStartingTime(?int $activationStartingTime=null)
static getItem(int $ref_id)

References ilObjectActivation\getItem(), ILIAS\Repository\int(), setActivationEndingTime(), setActivationLimited(), setActivationStartingTime(), setActivationVisibility(), and ilObjectActivation\TIMINGS_ACTIVATION.

Referenced by load().

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

◆ log()

static ilObjCmiXapi::log ( )
static

Definition at line 1819 of file class.ilObjCmiXapi.php.

1819 : ilLogger
1820 {
1821 return \ilLoggerFactory::getLogger('cmix');
1822 }
Component logger with individual log levels by component id.

Referenced by ilCmiXapiAbstractRequest\checkResponse(), ilCmiXapiStatementsReport\fetchObjectInfo(), ilCmiXapiStatementsReport\fetchObjectName(), getLastStatement(), getStatementActor(), and ilCmiXapiAbstractRequest\sendRequest().

+ Here is the caller graph for this function:

◆ save()

ilObjCmiXapi::save ( )

Definition at line 787 of file class.ilObjCmiXapi.php.

787 : void
788 {
789 global $DIC; /* @var \ILIAS\DI\Container $DIC */
790 // not possible: Move Global Access to Constructor
791 $DIC->database()->replace(self::DB_TABLE_NAME, [
792 'obj_id' => ['integer', $this->getId()]
793 ], [
794 'lrs_type_id' => ['integer', $this->getLrsTypeId()],
795 'content_type' => ['text', $this->getContentType()],
796 'source_type' => ['text', $this->getSourceType()],
797 'activity_id' => ['text', $this->getActivityId()],
798 'publisher_id' => ['text', $this->getPublisherId()],
799 'instructions' => ['text', $this->getInstructions()],
800 'launch_url' => ['text', $this->getLaunchUrl()],
801 'launch_parameters' => ['text', $this->getLaunchParameters()],
802 'moveon' => ['text', $this->getMoveOn()],
803 'entitlement_key' => ['text', $this->getEntitlementKey()],
804 'auth_fetch_url' => ['integer', (int) $this->isAuthFetchUrlEnabled()],
805 'launch_method' => ['text', $this->getLaunchMethod()],
806 'launch_mode' => ['text', $this->getLaunchMode()],
807 'switch_to_review' => ['integer', (int) $this->isSwitchToReviewEnabled()],
808 'mastery_score' => ['float', $this->getMasteryScore()],
809 'keep_lp' => ['integer', (int) $this->isKeepLpStatusEnabled()],
810 'privacy_ident' => ['integer', $this->getPrivacyIdent()],
811 'privacy_name' => ['integer', $this->getPrivacyName()],
812 'usr_privacy_comment' => ['text', $this->getUserPrivacyComment()],
813 'show_statements' => ['integer', (int) $this->isStatementsReportEnabled()],
814 'xml_manifest' => ['text', $this->getXmlManifest()],
815 'version' => ['integer', $this->getVersion()],
816 'bypass_proxy' => ['integer', (int) $this->isBypassProxyEnabled()],
817 'highscore_enabled' => ['integer', (int) $this->getHighscoreEnabled()],
818 'highscore_achieved_ts' => ['integer', (int) $this->getHighscoreAchievedTS()],
819 'highscore_percentage' => ['integer', (int) $this->getHighscorePercentage()],
820 'highscore_wtime' => ['integer', (int) $this->getHighscoreWTime()],
821 'highscore_own_table' => ['integer', (int) $this->getHighscoreOwnTable()],
822 'highscore_top_table' => ['integer', (int) $this->getHighscoreTopTable()],
823 'highscore_top_num' => ['integer', $this->getHighscoreTopNum()],
824 'only_moveon' => ['integer', (int) $this->getOnlyMoveon()],
825 'achieved' => ['integer', (int) $this->getAchieved()],
826 'answered' => ['integer', (int) $this->getAnswered()],
827 'completed' => ['integer', (int) $this->getCompleted()],
828 'failed' => ['integer', (int) $this->getFailed()],
829 'initialized' => ['integer', (int) $this->getInitialized()],
830 'passed' => ['integer', (int) $this->getPassed()],
831 'progressed' => ['integer', (int) $this->getProgressed()],
832 'satisfied' => ['integer', (int) $this->getSatisfied()],
833 'c_terminated' => ['integer', (int) $this->getTerminated()],
834 'hide_data' => ['integer', (int) $this->getHideData()],
835 'c_timestamp' => ['integer', (int) $this->getTimestamp()],
836 'duration' => ['integer', (int) $this->getDuration()],
837 'no_substatements' => ['integer', (int) $this->getNoSubstatements()],
838 'delete_data' => ['integer', $this->getDeleteData()],
839 'enrich_data' => ['integer', (int) $this->getEnrichData()]
840 ]);
841
843 }

References $DIC, getAchieved(), getActivityId(), getAnswered(), getCompleted(), getContentType(), getDeleteData(), getDuration(), getEnrichData(), getEntitlementKey(), getFailed(), getHideData(), getHighscoreAchievedTS(), getHighscoreEnabled(), getHighscoreOwnTable(), getHighscorePercentage(), getHighscoreTopNum(), getHighscoreTopTable(), getHighscoreWTime(), ilObject\getId(), getInitialized(), getInstructions(), getLaunchMethod(), getLaunchMode(), getLaunchParameters(), getLaunchUrl(), getLrsTypeId(), getMasteryScore(), getMoveOn(), getNoSubstatements(), getOnlyMoveon(), getPassed(), getPrivacyIdent(), getPrivacyName(), getProgressed(), getPublisherId(), getSatisfied(), getSourceType(), getTerminated(), getTimestamp(), getUserPrivacyComment(), getVersion(), getXmlManifest(), isAuthFetchUrlEnabled(), isBypassProxyEnabled(), isKeepLpStatusEnabled(), isStatementsReportEnabled(), isSwitchToReviewEnabled(), and saveRepositoryActivationSettings().

Referenced by doUpdate().

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

◆ saveRepositoryActivationSettings()

ilObjCmiXapi::saveRepositoryActivationSettings ( )
protected

Definition at line 870 of file class.ilObjCmiXapi.php.

870 : void
871 {
872 if ($this->ref_id) {
873 ilObjectActivation::getItem($this->ref_id);
874
875 $item = new ilObjectActivation();
876 if (!$this->isActivationLimited()) {
877 $item->setTimingType(ilObjectActivation::TIMINGS_DEACTIVATED);
878 } else {
879 $item->setTimingType(ilObjectActivation::TIMINGS_ACTIVATION);
880 $item->setTimingStart($this->getActivationStartingTime());
881 $item->setTimingEnd($this->getActivationEndingTime());
882 $item->toggleVisible($this->getActivationVisibility());
883 }
884
885 $item->update($this->ref_id);
886 }
887 }
Class ilObjectActivation.

References getActivationEndingTime(), getActivationStartingTime(), getActivationVisibility(), ilObjectActivation\getItem(), isActivationLimited(), ilObjectActivation\TIMINGS_ACTIVATION, and ilObjectActivation\TIMINGS_DEACTIVATED.

Referenced by save().

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

◆ setAchieved()

ilObjCmiXapi::setAchieved ( bool  $achieved)

Definition at line 509 of file class.ilObjCmiXapi.php.

509 : void
510 {
511 $this->achieved = $achieved;
512 }

References $achieved.

Referenced by load().

+ Here is the caller graph for this function:

◆ setActivationEndingTime()

ilObjCmiXapi::setActivationEndingTime ( ?int  $activationEndingTime = null)

Definition at line 1851 of file class.ilObjCmiXapi.php.

1851 : void
1852 {
1853 $this->activationEndingTime = $activationEndingTime;
1854 }

References $activationEndingTime.

Referenced by loadRepositoryActivationSettings().

+ Here is the caller graph for this function:

◆ setActivationLimited()

ilObjCmiXapi::setActivationLimited ( bool  $activationLimited)

Definition at line 1831 of file class.ilObjCmiXapi.php.

1831 : void
1832 {
1833 $this->activationLimited = $activationLimited;
1834 }

References $activationLimited.

Referenced by loadRepositoryActivationSettings().

+ Here is the caller graph for this function:

◆ setActivationStartingTime()

ilObjCmiXapi::setActivationStartingTime ( ?int  $activationStartingTime = null)

Definition at line 1841 of file class.ilObjCmiXapi.php.

1841 : void
1842 {
1843 $this->activationStartingTime = $activationStartingTime;
1844 }

References $activationStartingTime.

Referenced by loadRepositoryActivationSettings().

+ Here is the caller graph for this function:

◆ setActivationVisibility()

ilObjCmiXapi::setActivationVisibility ( bool  $activationVisibility)

Definition at line 1861 of file class.ilObjCmiXapi.php.

1861 : void
1862 {
1863 $this->activationVisibility = $activationVisibility;
1864 }

References $activationVisibility.

Referenced by loadRepositoryActivationSettings().

+ Here is the caller graph for this function:

◆ setActivityId()

ilObjCmiXapi::setActivityId ( string  $activityId)

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

289 : void
290 {
291 $this->activityId = $activityId;
292 }

References $activityId.

Referenced by load().

+ Here is the caller graph for this function:

◆ setAnswered()

ilObjCmiXapi::setAnswered ( bool  $answered)

Definition at line 519 of file class.ilObjCmiXapi.php.

519 : void
520 {
521 $this->answered = $answered;
522 }

References $answered.

Referenced by load().

+ Here is the caller graph for this function:

◆ setAuthFetchUrlEnabled()

ilObjCmiXapi::setAuthFetchUrlEnabled ( bool  $authFetchUrlEnabled)

Definition at line 404 of file class.ilObjCmiXapi.php.

404 : void
405 {
406 $this->authFetchUrlEnabled = $authFetchUrlEnabled;
407 }

References $authFetchUrlEnabled.

Referenced by load().

+ Here is the caller graph for this function:

◆ setBypassProxyEnabled()

ilObjCmiXapi::setBypassProxyEnabled ( bool  $bypassProxyEnabled)

Definition at line 689 of file class.ilObjCmiXapi.php.

689 : void
690 {
691 $this->bypassProxyEnabled = $bypassProxyEnabled;
692 }

References $bypassProxyEnabled.

Referenced by load().

+ Here is the caller graph for this function:

◆ setCompleted()

ilObjCmiXapi::setCompleted ( bool  $completed)

Definition at line 529 of file class.ilObjCmiXapi.php.

529 : void
530 {
531 $this->completed = $completed;
532 }

References $completed.

Referenced by load().

+ Here is the caller graph for this function:

◆ setContentType()

ilObjCmiXapi::setContentType ( string  $contentType)

Definition at line 247 of file class.ilObjCmiXapi.php.

247 : void
248 {
249 //bug before 21-07-24
250 if ($contentType == "learning") {
252 }
253 $this->contentType = $contentType;
254 }

References $contentType, and CONT_TYPE_GENERIC.

Referenced by load().

+ Here is the caller graph for this function:

◆ setDeleteData()

ilObjCmiXapi::setDeleteData ( int  $deleteData)

Definition at line 639 of file class.ilObjCmiXapi.php.

639 : void
640 {
641 $this->deleteData = $deleteData;
642 }

References $deleteData.

Referenced by load().

+ Here is the caller graph for this function:

◆ setDuration()

ilObjCmiXapi::setDuration ( bool  $duration)

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

619 : void
620 {
621 $this->duration = $duration;
622 }

References $duration.

Referenced by load().

+ Here is the caller graph for this function:

◆ setEnrichData()

ilObjCmiXapi::setEnrichData ( bool  $enrichData)

Definition at line 699 of file class.ilObjCmiXapi.php.

699 : void
700 {
701 $this->enrichData = $enrichData;
702 }

References $enrichData.

Referenced by load().

+ Here is the caller graph for this function:

◆ setEntitlementKey()

ilObjCmiXapi::setEntitlementKey ( string  $entitlementKey)

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

394 : void
395 {
396 $this->entitlementKey = $entitlementKey;
397 }

References $entitlementKey.

Referenced by load().

+ Here is the caller graph for this function:

◆ setFailed()

ilObjCmiXapi::setFailed ( bool  $failed)

Definition at line 539 of file class.ilObjCmiXapi.php.

539 : void
540 {
541 $this->failed = $failed;
542 }

References $failed.

Referenced by load().

+ Here is the caller graph for this function:

◆ setHideData()

ilObjCmiXapi::setHideData ( bool  $hide_data)

Definition at line 599 of file class.ilObjCmiXapi.php.

599 : void
600 {
601 $this->hide_data = $hide_data;
602 }

References $hide_data.

Referenced by load().

+ Here is the caller graph for this function:

◆ setHighscoreAchievedTS()

ilObjCmiXapi::setHighscoreAchievedTS ( bool  $a_achieved_ts)

Sets if the date and time of the scores achievement should be displayed.

Definition at line 1051 of file class.ilObjCmiXapi.php.

1051 : void
1052 {
1053 $this->_highscore_achieved_ts = $a_achieved_ts;
1054 }

Referenced by load().

+ Here is the caller graph for this function:

◆ setHighscoreEnabled()

ilObjCmiXapi::setHighscoreEnabled ( bool  $a_enabled)

Sets if the highscore feature should be enabled.

Definition at line 1034 of file class.ilObjCmiXapi.php.

1034 : void
1035 {
1036 $this->_highscore_enabled = $a_enabled;
1037 }

Referenced by load().

+ Here is the caller graph for this function:

◆ setHighscoreMode()

ilObjCmiXapi::setHighscoreMode ( int  $mode)

Definition at line 1176 of file class.ilObjCmiXapi.php.

1176 : void
1177 {
1178 switch ($mode) {
1180 $this->setHighscoreTopTable(true);
1181 $this->setHighscoreOwnTable(true);
1182 break;
1183
1185 $this->setHighscoreTopTable(true);
1186 $this->setHighscoreOwnTable(false);
1187 break;
1188
1190 default:
1191 $this->setHighscoreTopTable(false);
1192 $this->setHighscoreOwnTable(true);
1193 break;
1194 }
1195 }

References HIGHSCORE_SHOW_ALL_TABLES, HIGHSCORE_SHOW_OWN_TABLE, HIGHSCORE_SHOW_TOP_TABLE, setHighscoreOwnTable(), and setHighscoreTopTable().

+ Here is the call graph for this function:

◆ setHighscoreOwnTable()

ilObjCmiXapi::setHighscoreOwnTable ( bool  $a_own_table)

Sets if the table with the own ranking should be shown.

Parameters
bool$a_own_tableTrue, if table with own ranking should be shown.

Definition at line 1103 of file class.ilObjCmiXapi.php.

1103 : void
1104 {
1105 $this->_highscore_own_table = $a_own_table;
1106 }

Referenced by load(), and setHighscoreMode().

+ Here is the caller graph for this function:

◆ setHighscorePercentage()

ilObjCmiXapi::setHighscorePercentage ( bool  $a_percentage)

Sets if the percentages of the scores pass should be shown.

Definition at line 1068 of file class.ilObjCmiXapi.php.

1068 : void
1069 {
1070 $this->_highscore_percentage = $a_percentage;
1071 }

Referenced by load().

+ Here is the caller graph for this function:

◆ setHighscoreTopNum()

ilObjCmiXapi::setHighscoreTopNum ( int  $a_top_num)

Sets the number of entries which are to be shown in the top-rankings table.

Parameters
integer$a_top_numNumber of entries in the top-rankings table.

Definition at line 1139 of file class.ilObjCmiXapi.php.

1139 : void
1140 {
1141 $this->_highscore_top_num = $a_top_num;
1142 }

Referenced by load().

+ Here is the caller graph for this function:

◆ setHighscoreTopTable()

ilObjCmiXapi::setHighscoreTopTable ( bool  $a_top_table)

Sets if the top-rankings table should be shown.

Definition at line 1120 of file class.ilObjCmiXapi.php.

1120 : void
1121 {
1122 $this->_highscore_top_table = $a_top_table;
1123 }

Referenced by load(), and setHighscoreMode().

+ Here is the caller graph for this function:

◆ setHighscoreWTime()

ilObjCmiXapi::setHighscoreWTime ( bool  $a_wtime)

Sets if the workingtime of the scores should be shown.

Definition at line 1085 of file class.ilObjCmiXapi.php.

1085 : void
1086 {
1087 $this->_highscore_wtime = $a_wtime;
1088 }

Referenced by load().

+ Here is the caller graph for this function:

◆ setInitialized()

ilObjCmiXapi::setInitialized ( bool  $initialized)

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

549 : void
550 {
551 $this->initialized = $initialized;
552 }

References $initialized.

Referenced by load().

+ Here is the caller graph for this function:

◆ setInstructions()

ilObjCmiXapi::setInstructions ( string  $instructions)

Definition at line 309 of file class.ilObjCmiXapi.php.

309 : void
310 {
311 $this->instructions = $instructions;
312 }

References $instructions.

Referenced by load().

+ Here is the caller graph for this function:

◆ setKeepLpStatusEnabled()

ilObjCmiXapi::setKeepLpStatusEnabled ( bool  $keepLpStatusEnabled)

Definition at line 469 of file class.ilObjCmiXapi.php.

469 : void
470 {
471 $this->keepLpStatusEnabled = $keepLpStatusEnabled;
472 }

References $keepLpStatusEnabled.

Referenced by load().

+ Here is the caller graph for this function:

◆ setLaunchMethod()

ilObjCmiXapi::setLaunchMethod ( string  $launchMethod)

Definition at line 414 of file class.ilObjCmiXapi.php.

414 : void
415 {
416 $this->launchMethod = $launchMethod;
417 }

References $launchMethod.

Referenced by load().

+ Here is the caller graph for this function:

◆ setLaunchMode()

ilObjCmiXapi::setLaunchMode ( string  $launchMode)

Definition at line 424 of file class.ilObjCmiXapi.php.

424 : void
425 {
426 $this->launchMode = ucfirst($launchMode);
427 }

References $launchMode.

Referenced by load().

+ Here is the caller graph for this function:

◆ setLaunchParameters()

ilObjCmiXapi::setLaunchParameters ( string  $launchParameters)

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

329 : void
330 {
331 $this->launchParameters = $launchParameters;
332 }

References $launchParameters.

Referenced by load().

+ Here is the caller graph for this function:

◆ setLaunchUrl()

ilObjCmiXapi::setLaunchUrl ( string  $launchUrl)

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

319 : void
320 {
321 $this->launchUrl = $launchUrl;
322 }

References $launchUrl.

Referenced by load().

+ Here is the caller graph for this function:

◆ setLrsType()

ilObjCmiXapi::setLrsType ( \ilCmiXapiLrsType  $lrsType)

Definition at line 232 of file class.ilObjCmiXapi.php.

232 : void
233 {
234 $this->lrsType = $lrsType;
235 }

References $lrsType.

Referenced by initLrsType().

+ Here is the caller graph for this function:

◆ setLrsTypeId()

ilObjCmiXapi::setLrsTypeId ( int  $lrsTypeId)

Definition at line 222 of file class.ilObjCmiXapi.php.

222 : void
223 {
224 $this->lrsTypeId = $lrsTypeId;
225 }

References $lrsTypeId.

Referenced by load().

+ Here is the caller graph for this function:

◆ setMasteryScore()

ilObjCmiXapi::setMasteryScore ( float  $masteryScore)

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

449 : void
450 {
451 $this->masteryScore = $masteryScore;
452 }

References $masteryScore.

Referenced by load().

+ Here is the caller graph for this function:

◆ setMasteryScorePercent()

ilObjCmiXapi::setMasteryScorePercent ( float  $masteryScorePercent)

Definition at line 459 of file class.ilObjCmiXapi.php.

459 : void
460 {
461 $this->masteryScore = $masteryScorePercent / 100;
462 }

◆ setMoveOn()

ilObjCmiXapi::setMoveOn ( string  $moveOn)

Attention: this is the original moveOn from course import should only be set on import!

Definition at line 347 of file class.ilObjCmiXapi.php.

347 : void
348 {
349 $this->moveOn = $moveOn;
350 }

References $moveOn.

Referenced by load().

+ Here is the caller graph for this function:

◆ setNoSubstatements()

ilObjCmiXapi::setNoSubstatements ( bool  $no_substatements)

Definition at line 629 of file class.ilObjCmiXapi.php.

629 : void
630 {
631 $this->no_substatements = $no_substatements;
632 }

References $no_substatements.

Referenced by load().

+ Here is the caller graph for this function:

◆ setOnlyMoveon()

ilObjCmiXapi::setOnlyMoveon ( bool  $only_moveon)

Definition at line 499 of file class.ilObjCmiXapi.php.

499 : void
500 {
501 $this->only_moveon = $only_moveon;
502 }

References $only_moveon.

Referenced by load().

+ Here is the caller graph for this function:

◆ setPassed()

ilObjCmiXapi::setPassed ( bool  $passed)

Definition at line 559 of file class.ilObjCmiXapi.php.

559 : void
560 {
561 $this->passed = $passed;
562 }

References $passed.

Referenced by load().

+ Here is the caller graph for this function:

◆ setPrivacyIdent()

ilObjCmiXapi::setPrivacyIdent ( int  $userIdent)

Definition at line 479 of file class.ilObjCmiXapi.php.

479 : void
480 {
481 $this->userIdent = $userIdent;
482 }

References $userIdent.

Referenced by load().

+ Here is the caller graph for this function:

◆ setPrivacyName()

ilObjCmiXapi::setPrivacyName ( int  $userName)

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

489 : void
490 {
491 $this->userName = $userName;
492 }

References $userName.

Referenced by load().

+ Here is the caller graph for this function:

◆ setProgressed()

ilObjCmiXapi::setProgressed ( bool  $progressed)

Definition at line 569 of file class.ilObjCmiXapi.php.

569 : void
570 {
571 $this->progressed = $progressed;
572 }

References $progressed.

Referenced by load().

+ Here is the caller graph for this function:

◆ setPublisherId()

ilObjCmiXapi::setPublisherId ( string  $publisherId)

Definition at line 299 of file class.ilObjCmiXapi.php.

299 : void
300 {
301 $this->publisherId = $publisherId;
302 }

References $publisherId.

Referenced by load().

+ Here is the caller graph for this function:

◆ setSatisfied()

ilObjCmiXapi::setSatisfied ( bool  $satisfied)

Definition at line 579 of file class.ilObjCmiXapi.php.

579 : void
580 {
581 $this->satisfied = $satisfied;
582 }

References $satisfied.

Referenced by load().

+ Here is the caller graph for this function:

◆ setSourceType()

ilObjCmiXapi::setSourceType ( string  $sourceType)

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

279 : void
280 {
281 $this->sourceType = $sourceType;
282 }

References $sourceType.

Referenced by load().

+ Here is the caller graph for this function:

◆ setStatementsReportEnabled()

ilObjCmiXapi::setStatementsReportEnabled ( bool  $statementsReportEnabled)

Definition at line 659 of file class.ilObjCmiXapi.php.

659 : void
660 {
661 $this->statementsReportEnabled = $statementsReportEnabled;
662 }

References $statementsReportEnabled.

Referenced by load().

+ Here is the caller graph for this function:

◆ setSwitchToReviewEnabled()

ilObjCmiXapi::setSwitchToReviewEnabled ( bool  $switchToReviewEnabled)

Definition at line 439 of file class.ilObjCmiXapi.php.

439 : void
440 {
441 $this->switchToReviewEnabled = $switchToReviewEnabled;
442 }

References $switchToReviewEnabled.

Referenced by load().

+ Here is the caller graph for this function:

◆ setTerminated()

ilObjCmiXapi::setTerminated ( bool  $terminated)

Definition at line 589 of file class.ilObjCmiXapi.php.

589 : void
590 {
591 $this->terminated = $terminated;
592 }

References $terminated.

Referenced by load().

+ Here is the caller graph for this function:

◆ setTimestamp()

ilObjCmiXapi::setTimestamp ( bool  $timestamp)

Definition at line 609 of file class.ilObjCmiXapi.php.

609 : void
610 {
611 $this->timestamp = $timestamp;
612 }

References $timestamp.

Referenced by load().

+ Here is the caller graph for this function:

◆ setUserPrivacyComment()

ilObjCmiXapi::setUserPrivacyComment ( string  $userPrivacyComment)

Definition at line 649 of file class.ilObjCmiXapi.php.

649 : void
650 {
651 $this->userPrivacyComment = $userPrivacyComment;
652 }

References $userPrivacyComment.

Referenced by load().

+ Here is the caller graph for this function:

◆ setVersion()

ilObjCmiXapi::setVersion ( int  $version)

Definition at line 679 of file class.ilObjCmiXapi.php.

679 : void
680 {
681 $this->version = $version;
682 }

References $version.

Referenced by load().

+ Here is the caller graph for this function:

◆ setXmlManifest()

ilObjCmiXapi::setXmlManifest ( string  $xmlManifest)

Definition at line 669 of file class.ilObjCmiXapi.php.

669 : void
670 {
671 $this->xmlManifest = $xmlManifest;
672 }

References $xmlManifest.

Referenced by load().

+ Here is the caller graph for this function:

◆ updateByPassProxyFromLrsType()

static ilObjCmiXapi::updateByPassProxyFromLrsType ( ilCmiXapiLrsType  $lrsType)
static

Definition at line 963 of file class.ilObjCmiXapi.php.

963 : void
964 {
965 global $DIC; /* @var \ILIAS\DI\Container $DIC */
966 // not possible: Move Global Access to Constructor
967 $tableName = self::DB_TABLE_NAME;
968
969 $query = "
970 UPDATE {$tableName}
971 SET bypass_proxy = %s
972 WHERE lrs_type_id = %s
973 ";
974
975 $DIC->database()->manipulateF(
976 $query,
977 ['integer', 'integer'],
979 );
980 }

References $DIC, $lrsType, DB_TABLE_NAME, ilCmiXapiLrsType\getTypeId(), and ilCmiXapiLrsType\isBypassProxyEnabled().

Referenced by ilObjCmiXapiAdministrationGUI\saveLrsTypeFormCmd().

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

◆ updatePrivacySettingsFromLrsType()

static ilObjCmiXapi::updatePrivacySettingsFromLrsType ( ilCmiXapiLrsType  $lrsType)
static

Definition at line 889 of file class.ilObjCmiXapi.php.

889 : void
890 {
891 global $DIC; /* @var \ILIAS\DI\Container $DIC */
892 //not possible: Move Global Access to Constructor
893 $tableName = self::DB_TABLE_NAME;
894
895 $query = "
896 UPDATE {$tableName}
897 SET privacy_ident = %s,
898 privacy_name = %s,
899 only_moveon = %s,
900 achieved = %s,
901 answered = %s,
902 completed = %s,
903 failed = %s,
904 initialized = %s,
905 passed = %s,
906 progressed = %s,
907 satisfied = %s,
908 c_terminated = %s,
909 hide_data = %s,
910 c_timestamp = %s,
911 duration = %s,
912 no_substatements = %s,
913 delete_data = %s,
914 enrich_data = %s
915 WHERE lrs_type_id = %s
916 ";
917
918 $DIC->database()->manipulateF(
919 $query,
920 ['integer',
921 'integer',
922 'integer',
923 'integer',
924 'integer',
925 'integer',
926 'integer',
927 'integer',
928 'integer',
929 'integer',
930 'integer',
931 'integer',
932 'integer',
933 'integer',
934 'integer',
935 'integer',
936 'integer',
937 'integer',
938 'integer'
939 ],
959 ]
960 );
961 }

References $DIC, $lrsType, DB_TABLE_NAME, ilCmiXapiLrsType\getAchieved(), ilCmiXapiLrsType\getAnswered(), ilCmiXapiLrsType\getCompleted(), ilCmiXapiLrsType\getDeleteData(), ilCmiXapiLrsType\getDuration(), ilCmiXapiLrsType\getEnrichData(), ilCmiXapiLrsType\getFailed(), ilCmiXapiLrsType\getHideData(), ilCmiXapiLrsType\getInitialized(), ilCmiXapiLrsType\getNoSubstatements(), ilCmiXapiLrsType\getOnlyMoveon(), ilCmiXapiLrsType\getPassed(), ilCmiXapiLrsType\getPrivacyIdent(), ilCmiXapiLrsType\getPrivacyName(), ilCmiXapiLrsType\getProgressed(), ilCmiXapiLrsType\getSatisfied(), ilCmiXapiLrsType\getTerminated(), ilCmiXapiLrsType\getTimestamp(), and ilCmiXapiLrsType\getTypeId().

Referenced by ilObjCmiXapiAdministrationGUI\saveLrsTypeFormCmd().

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

Field Documentation

◆ $_highscore_achieved_ts

bool ilObjCmiXapi::$_highscore_achieved_ts = true
protected

Definition at line 1015 of file class.ilObjCmiXapi.php.

Referenced by getHighscoreAchievedTS().

◆ $_highscore_enabled

bool ilObjCmiXapi::$_highscore_enabled = false
protected

HIGHSCORE.

Definition at line 1011 of file class.ilObjCmiXapi.php.

Referenced by getHighscoreEnabled().

◆ $_highscore_own_table

bool ilObjCmiXapi::$_highscore_own_table = true
protected

Definition at line 1021 of file class.ilObjCmiXapi.php.

Referenced by getHighscoreOwnTable().

◆ $_highscore_percentage

bool ilObjCmiXapi::$_highscore_percentage = true
protected

Definition at line 1017 of file class.ilObjCmiXapi.php.

Referenced by getHighscorePercentage().

◆ $_highscore_top_num

int ilObjCmiXapi::$_highscore_top_num = 10
protected

Definition at line 1025 of file class.ilObjCmiXapi.php.

Referenced by getHighscoreTopNum().

◆ $_highscore_top_table

bool ilObjCmiXapi::$_highscore_top_table = true
protected

Definition at line 1023 of file class.ilObjCmiXapi.php.

Referenced by getHighscoreTopTable().

◆ $_highscore_wtime

bool ilObjCmiXapi::$_highscore_wtime = true
protected

Definition at line 1019 of file class.ilObjCmiXapi.php.

Referenced by getHighscoreWTime().

◆ $achieved

bool ilObjCmiXapi::$achieved = true
protected

Definition at line 122 of file class.ilObjCmiXapi.php.

Referenced by getAchieved(), and setAchieved().

◆ $activationEndingTime

int ilObjCmiXapi::$activationEndingTime = null
protected

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

Referenced by getActivationEndingTime(), and setActivationEndingTime().

◆ $activationLimited

bool ilObjCmiXapi::$activationLimited = null
protected

repository object activation settings (handled by ilObject)

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

Referenced by isActivationLimited(), and setActivationLimited().

◆ $activationStartingTime

int ilObjCmiXapi::$activationStartingTime = null
protected

Definition at line 42 of file class.ilObjCmiXapi.php.

Referenced by getActivationStartingTime(), and setActivationStartingTime().

◆ $activationVisibility

bool ilObjCmiXapi::$activationVisibility = null
protected

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

Referenced by getActivationVisibility(), and setActivationVisibility().

◆ $activityId

string ilObjCmiXapi::$activityId
protected

◆ $anonymity

int ilObjCmiXapi::$anonymity = 0
protected

Definition at line 1013 of file class.ilObjCmiXapi.php.

◆ $anonymousHomePage

bool ilObjCmiXapi::$anonymousHomePage = false
protected

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

◆ $answered

bool ilObjCmiXapi::$answered = true
protected

Definition at line 124 of file class.ilObjCmiXapi.php.

Referenced by getAnswered(), and setAnswered().

◆ $authFetchUrlEnabled

bool ilObjCmiXapi::$authFetchUrlEnabled = false
protected

Definition at line 73 of file class.ilObjCmiXapi.php.

Referenced by isAuthFetchUrlEnabled(), and setAuthFetchUrlEnabled().

◆ $bypassProxyEnabled

bool ilObjCmiXapi::$bypassProxyEnabled = false
protected

Definition at line 118 of file class.ilObjCmiXapi.php.

Referenced by isBypassProxyEnabled(), and setBypassProxyEnabled().

◆ $completed

bool ilObjCmiXapi::$completed = true
protected

Definition at line 126 of file class.ilObjCmiXapi.php.

Referenced by getCompleted(), and setCompleted().

◆ $contentType

string ilObjCmiXapi::$contentType
protected

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

Referenced by getContentType(), and setContentType().

◆ $currentCmixUser

ilCmiXapiUser ilObjCmiXapi::$currentCmixUser = null
protected

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

Referenced by getCurrentCmixUser().

◆ $database

ilDBInterface ilObjCmiXapi::$database
private

Definition at line 154 of file class.ilObjCmiXapi.php.

◆ $deleteData

int ilObjCmiXapi::$deleteData = 0
protected

Definition at line 148 of file class.ilObjCmiXapi.php.

Referenced by getDeleteData(), and setDeleteData().

◆ $duration

bool ilObjCmiXapi::$duration = true
protected

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

Referenced by getAbandonedStatement(), getDuration(), and setDuration().

◆ $enrichData

bool ilObjCmiXapi::$enrichData = false
protected

Definition at line 150 of file class.ilObjCmiXapi.php.

Referenced by getEnrichData(), and setEnrichData().

◆ $entitlementKey

string ilObjCmiXapi::$entitlementKey
protected

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

Referenced by getEntitlementKey(), and setEntitlementKey().

◆ $failed

bool ilObjCmiXapi::$failed = true
protected

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

Referenced by getFailed(), and setFailed().

◆ $hide_data

bool ilObjCmiXapi::$hide_data = false
protected

Definition at line 140 of file class.ilObjCmiXapi.php.

Referenced by getHideData(), and setHideData().

◆ $initialized

bool ilObjCmiXapi::$initialized = true
protected

Definition at line 130 of file class.ilObjCmiXapi.php.

Referenced by getInitialized(), and setInitialized().

◆ $instructions

string ilObjCmiXapi::$instructions
protected

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

Referenced by getInstructions(), and setInstructions().

◆ $keepLpStatusEnabled

bool ilObjCmiXapi::$keepLpStatusEnabled = false
protected

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

Referenced by isKeepLpStatusEnabled(), and setKeepLpStatusEnabled().

◆ $launchMethod

string ilObjCmiXapi::$launchMethod
protected

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

Referenced by getLaunchMethod(), and setLaunchMethod().

◆ $launchMode

string ilObjCmiXapi::$launchMode
protected

◆ $launchParameters

string ilObjCmiXapi::$launchParameters
protected

Definition at line 67 of file class.ilObjCmiXapi.php.

Referenced by getLaunchParameters(), and setLaunchParameters().

◆ $launchUrl

string ilObjCmiXapi::$launchUrl
protected

Definition at line 65 of file class.ilObjCmiXapi.php.

Referenced by getLaunchUrl(), and setLaunchUrl().

◆ $lrsType

◆ $lrsTypeId

int ilObjCmiXapi::$lrsTypeId
protected

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

Referenced by getDataSetMapping(), getLrsTypeId(), and setLrsTypeId().

◆ $masteryScore

float ilObjCmiXapi::$masteryScore
protected

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

Referenced by getMasteryScore(), and setMasteryScore().

◆ $moveOn

string ilObjCmiXapi::$moveOn
protected

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

Referenced by getLaunchData(), getLMSMoveOn(), getMoveOn(), and setMoveOn().

◆ $no_substatements

bool ilObjCmiXapi::$no_substatements = false
protected

Definition at line 146 of file class.ilObjCmiXapi.php.

Referenced by getNoSubstatements(), and setNoSubstatements().

◆ $only_moveon

bool ilObjCmiXapi::$only_moveon = false
protected

Definition at line 120 of file class.ilObjCmiXapi.php.

Referenced by getOnlyMoveon(), and setOnlyMoveon().

◆ $passed

bool ilObjCmiXapi::$passed = true
protected

Definition at line 132 of file class.ilObjCmiXapi.php.

Referenced by getPassed(), and setPassed().

◆ $progressed

bool ilObjCmiXapi::$progressed = true
protected

Definition at line 134 of file class.ilObjCmiXapi.php.

Referenced by getProgressed(), and setProgressed().

◆ $publisherId

string ilObjCmiXapi::$publisherId
protected

◆ $satisfied

bool ilObjCmiXapi::$satisfied = true
protected

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

Referenced by getSatisfied(), and setSatisfied().

◆ $sourceType

string ilObjCmiXapi::$sourceType
protected

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

Referenced by getSourceType(), and setSourceType().

◆ $statementsReportEnabled

bool ilObjCmiXapi::$statementsReportEnabled = false
protected

◆ $switchToReviewEnabled

bool ilObjCmiXapi::$switchToReviewEnabled = false
protected

◆ $terminated

bool ilObjCmiXapi::$terminated = true
protected

Definition at line 138 of file class.ilObjCmiXapi.php.

Referenced by getTerminated(), and setTerminated().

◆ $timestamp

bool ilObjCmiXapi::$timestamp = false
protected

Definition at line 142 of file class.ilObjCmiXapi.php.

Referenced by getTimestamp(), and setTimestamp().

◆ $userIdent

int ilObjCmiXapi::$userIdent
protected

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

Referenced by getPrivacyIdent(), and setPrivacyIdent().

◆ $userName

int ilObjCmiXapi::$userName
protected

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

Referenced by getPrivacyName(), and setPrivacyName().

◆ $userPrivacyComment

string ilObjCmiXapi::$userPrivacyComment = ""
protected

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

Referenced by getUserPrivacyComment(), and setUserPrivacyComment().

◆ $version

int ilObjCmiXapi::$version
protected

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

Referenced by getVersion(), and setVersion().

◆ $xmlManifest

string ilObjCmiXapi::$xmlManifest = ""
protected

Definition at line 114 of file class.ilObjCmiXapi.php.

Referenced by getXmlManifest(), and setXmlManifest().

◆ ANONYMOUS_HOMEPAGE

const ilObjCmiXapi::ANONYMOUS_HOMEPAGE = 'https://example.org'

Definition at line 76 of file class.ilObjCmiXapi.php.

◆ CONT_TYPE_CMI5

◆ CONT_TYPE_GENERIC

◆ DB_RESULTS_TABLE_NAME

const ilObjCmiXapi::DB_RESULTS_TABLE_NAME = 'cmix_results'

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

◆ DB_TABLE_NAME

const ilObjCmiXapi::DB_TABLE_NAME = 'cmix_settings'

◆ DB_USERS_TABLE_NAME

const ilObjCmiXapi::DB_USERS_TABLE_NAME = 'cmix_users'

Definition at line 35 of file class.ilObjCmiXapi.php.

◆ HIGHSCORE_SHOW_ALL_TABLES

const ilObjCmiXapi::HIGHSCORE_SHOW_ALL_TABLES = 1

◆ HIGHSCORE_SHOW_OWN_TABLE

const ilObjCmiXapi::HIGHSCORE_SHOW_OWN_TABLE = 3

◆ HIGHSCORE_SHOW_TOP_TABLE

const ilObjCmiXapi::HIGHSCORE_SHOW_TOP_TABLE = 2

◆ LAUNCH_METHOD_IFRAME

const ilObjCmiXapi::LAUNCH_METHOD_IFRAME = 'iframe'

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

◆ LAUNCH_METHOD_NEW_WIN

const ilObjCmiXapi::LAUNCH_METHOD_NEW_WIN = 'newWin'

◆ LAUNCH_METHOD_OWN_WIN

const ilObjCmiXapi::LAUNCH_METHOD_OWN_WIN = 'ownWin'

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

Referenced by ilCmiXapiSettingsGUI\buildForm().

◆ LAUNCH_MODE_BROWSE

const ilObjCmiXapi::LAUNCH_MODE_BROWSE = 'Browse'

Definition at line 85 of file class.ilObjCmiXapi.php.

Referenced by ilCmiXapiSettingsGUI\buildForm().

◆ LAUNCH_MODE_NORMAL

◆ LAUNCH_MODE_REVIEW

const ilObjCmiXapi::LAUNCH_MODE_REVIEW = 'Review'

◆ LMS_MASTERY_SCORE

const ilObjCmiXapi::LMS_MASTERY_SCORE = 0.7

◆ PLUGIN

const ilObjCmiXapi::PLUGIN = false

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

◆ PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT

const ilObjCmiXapi::PRIVACY_IDENT_IL_UUID_EXT_ACCOUNT = 1

Definition at line 97 of file class.ilObjCmiXapi.php.

Referenced by ilCmiXapiUser\getIdent(), and ilCmiXapiUser\getIdentAsId().

◆ PRIVACY_IDENT_IL_UUID_LOGIN

const ilObjCmiXapi::PRIVACY_IDENT_IL_UUID_LOGIN = 2

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

Referenced by ilCmiXapiUser\getIdent(), and ilCmiXapiUser\getIdentAsId().

◆ PRIVACY_IDENT_IL_UUID_RANDOM

const ilObjCmiXapi::PRIVACY_IDENT_IL_UUID_RANDOM = 4

Definition at line 100 of file class.ilObjCmiXapi.php.

Referenced by ilCmiXapiUser\getIdent(), and ilCmiXapiUser\getIdentAsId().

◆ PRIVACY_IDENT_IL_UUID_SHA256

const ilObjCmiXapi::PRIVACY_IDENT_IL_UUID_SHA256 = 5

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

Referenced by ilCmiXapiUser\getIdent(), and ilCmiXapiUser\getIdentAsId().

◆ PRIVACY_IDENT_IL_UUID_SHA256URL

const ilObjCmiXapi::PRIVACY_IDENT_IL_UUID_SHA256URL = 6

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

Referenced by ilCmiXapiUser\getIdent(), and ilCmiXapiUser\getIdentAsId().

◆ PRIVACY_IDENT_IL_UUID_USER_ID

const ilObjCmiXapi::PRIVACY_IDENT_IL_UUID_USER_ID = 0

◆ PRIVACY_IDENT_REAL_EMAIL

const ilObjCmiXapi::PRIVACY_IDENT_REAL_EMAIL = 3

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

Referenced by ilCmiXapiUser\getIdent(), and ilCmiXapiUser\getIdentAsId().

◆ PRIVACY_NAME_FIRSTNAME

const ilObjCmiXapi::PRIVACY_NAME_FIRSTNAME = 1

Definition at line 106 of file class.ilObjCmiXapi.php.

Referenced by ilCmiXapiUser\getName().

◆ PRIVACY_NAME_FULLNAME

const ilObjCmiXapi::PRIVACY_NAME_FULLNAME = 3

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

Referenced by ilCmiXapiUser\getName().

◆ PRIVACY_NAME_LASTNAME

const ilObjCmiXapi::PRIVACY_NAME_LASTNAME = 2

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

Referenced by ilCmiXapiUser\getName().

◆ PRIVACY_NAME_NONE

const ilObjCmiXapi::PRIVACY_NAME_NONE = 0

◆ SRC_TYPE_EXTERNAL

const ilObjCmiXapi::SRC_TYPE_EXTERNAL = 'externalSource'

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

Referenced by ilObjCmiXapiGUI\afterSave(), and isSourceTypeExternal().

◆ SRC_TYPE_LOCAL

const ilObjCmiXapi::SRC_TYPE_LOCAL = 'localSource'

◆ SRC_TYPE_REMOTE

const ilObjCmiXapi::SRC_TYPE_REMOTE = 'remoteSource'

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