ILIAS  release_8 Revision v8.24
ilObjSAHSLearningModule Class Reference

Class ilObjSCORMLearningModule. More...

+ Inheritance diagram for ilObjSAHSLearningModule:
+ Collaboration diagram for ilObjSAHSLearningModule:

Public Member Functions

 __construct (int $a_id=0, bool $a_call_by_reference=true)
 Constructor. More...
 
 create (bool $upload=false)
 create file based lm More...
 
 read ()
 read object More...
 
 getEditable ()
 
 setTries (int $a_tries)
 Set default tries for questions. More...
 
 getTries ()
 
 setLocalization (string $a_val)
 
 getLocalization ()
 
 getDiskUsage ()
 Gets the disk usage of the object in bytes. More...
 
 createDataDirectory ()
 creates data directory for package files ("./data/lm_data/lm_<id>") More...
 
 getDataDirectory (?string $mode="filesystem")
 get data directory of lm More...
 
 getAPIAdapterName ()
 get api adapter name More...
 
 setAPIAdapterName (string $a_api)
 set api adapter name More...
 
 getAPIFunctionsPrefix ()
 get api functions prefix More...
 
 setAPIFunctionsPrefix (string $a_prefix)
 set api functions prefix More...
 
 getCreditMode ()
 get credit mode More...
 
 setCreditMode (string $a_credit_mode)
 set credit mode More...
 
 setDefaultLessonMode (string $a_lesson_mode)
 set default lesson mode More...
 
 getDefaultLessonMode ()
 get default lesson mode More...
 
 getStyleSheetId ()
 get ID of assigned style sheet object More...
 
 setStyleSheetId (int $a_style_id)
 set ID of assigned style sheet object More...
 
 setAutoReview (bool $a_auto_review)
 set auto review as true/false for SCORM 1.2 More...
 
 getAutoReview ()
 get auto review as true/false for SCORM 1.2 More...
 
 setAutoReviewChar (?string $a_auto_review)
 set auto review as Char for SCORM 2004 More...
 
 getAutoReviewChar ()
 get auto review as Char for SCORM 2004 More...
 
 getMaxAttempt ()
 
 setMaxAttempt (int $a_max_attempt)
 
 getModuleVersion ()
 
 getAssignedGlossary ()
 
 setAssignedGlossary (int $a_assigned_glossary)
 
 setModuleVersion (int $a_module_version)
 
 getSession ()
 
 setSession (bool $a_session)
 
 getNoMenu ()
 disable menu More...
 
 setNoMenu (bool $a_no_menu)
 disable menu More...
 
 getHideNavig ()
 hide navigation tree More...
 
 setHideNavig (bool $a_hide_navig)
 disable menu More...
 
 getCacheDeactivated ()
 BrowserCacheDisabled for SCORM 2004 / ENABLE_JS_DEBUG. More...
 
 getSessionDeactivated ()
 sessionDisabled for SCORM 2004 More...
 
 getDebugActivated ()
 debugActivated More...
 
 getIe_force_render ()
 force Internet Explorer to render again after some Milliseconds - useful for learning Modules with a lot of iframes or frames and IE >=10 More...
 
 setIe_force_render (bool $a_ie_force_render)
 
 getFourth_Edition ()
 SCORM 2004 4th edition features. More...
 
 setFourth_edition (bool $a_fourth_edition)
 
 getSequencing ()
 
 setSequencing (bool $a_sequencing)
 
 getInteractions ()
 
 setInteractions (bool $a_interactions)
 
 getObjectives ()
 
 setObjectives (bool $a_objectives)
 
 getComments ()
 
 setComments (bool $a_comments)
 
 getTime_from_lms ()
 
 setTime_from_lms (bool $a_time_from_lms)
 
 getCheck_values ()
 
 setCheck_values (bool $a_check_values)
 
 getDebug ()
 
 setDebug (bool $a_debug)
 
 setAutoContinue (bool $a_auto_continue)
 
 getAutoContinue ()
 
 getAuto_last_visited ()
 
 setAuto_last_visited (bool $a_auto_last_visited)
 
 setAutoSuspend (bool $a_auto_suspend)
 
 getAutoSuspend ()
 
 getOpenMode ()
 open_mode 0: in Tab/new Window like in previous versions 1: in iFrame with width=100% and heigth=100% 2: in iFrame with specified width and height 3: 4: 5: in new Window without specified width and height 6: in new Window with specified width and height More...
 
 setOpenMode (int $a_open_mode)
 
 getWidth ()
 
 setWidth (int $a_width)
 
 getHeight ()
 
 setHeight (int $a_height)
 
 getMasteryScore ()
 
 setMasteryScore (?int $a_mastery_score)
 
 checkMasteryScoreValues ()
 check mastery_score / min_normalized_measure of SCOs (SCORM 1.2) / objectives (SCORM 2004) More...
 
 getMasteryScoreValues ()
 
 getIdSetting ()
 
 setIdSetting (int $a_id_setting)
 
 getNameSetting ()
 
 setNameSetting (int $a_name_setting)
 
 update ()
 
 setSubType (string $a_sub_type)
 
 getSubType ()
 
 delete ()
 delete SCORM learning module and all related data More...
 
 getPointsInPercent ()
 Returns the points in percent for the learning module This is called by the certificate generator if [SCORM_POINTS] is inserted. More...
 
 getMaxPoints ()
 Returns score.max for the learning module, refered to the last sco where score.max is set. More...
 
 populateByDirectoy (string $a_dir, string $a_filename="")
 Populate by directory. More...
 
 getApiStudentId ()
 Get cmi.core.student_id / cmi.learner_id for API. More...
 
 getApiStudentName ()
 Get cmi.core.student_name / cmi.learner_name for API note: 'lastname, firstname' is required for SCORM 1.2; 9 = no name to hide student_name for external content. More...
 
 getViewButton ()
 get button for view More...
 
- Public Member Functions inherited from ilObject
 __construct (int $id=0, bool $reference=true)
 
 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 $desc)
 
 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)
 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 getAffectiveLocalization (int $a_id)
 Get affective localization. More...
 
static _lookupSubType (int $a_obj_id)
 lookup subtype id (scorm, ) More...
 
static _getTries (int $a_id)
 obsolet? More...
 
static getScormModulesForGlossary (int $a_glo_id)
 Get SCORM modules that assign a certain glossary. More...
 
static lookupAssignedGlossary (int $a_slm_id)
 Get SCORM modules that assign a certain glossary. More...
 
- 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 _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)
 

Protected Attributes

bool $sequencing = false
 
string $localization = ""
 
string $mastery_score_values = ""
 
int $tries = 0
 
string $api_adapter = 'API'
 
- 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
 
int $id
 
bool $referenced
 
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 = ""
 
bool $offline = false
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Private Attributes

string $api_func_prefix = 'LMS'
 
string $credit_mode = 'credit'
 
string $lesson_mode ='normal'
 
int $style_id = 0
 
string $auto_review = 'n'
 
int $max_attempt = 0
 
int $module_version = 1
 
int $assigned_glossary = 0
 
bool $session = false
 
bool $no_menu = false
 
bool $hide_navig = false
 
bool $ie_force_render = false
 
bool $fourth_edition = false
 
bool $interactions = true
 
bool $objectives = true
 
bool $comments = true
 
bool $time_from_lms = false
 
bool $check_values = true
 
bool $debug = false
 
bool $auto_continue = false
 
bool $auto_last_visited = true
 
bool $auto_suspend = false
 
int $open_mode = 0
 
int $width = 950
 
int $height = 650
 
int $mastery_score = null
 
int $id_setting = 0
 
int $name_setting = 0
 
string $sub_type = 'scorm'
 

Additional Inherited Members

- 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 inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjSAHSLearningModule::__construct ( int  $a_id = 0,
bool  $a_call_by_reference = true 
)

Constructor.

Parameters
integerreference_id or object_id
booleantreat the id as reference_id (true) or object_id (false)

Reimplemented from ilObject.

Reimplemented in ilObjSCORM2004LearningModule, and ilObjSCORMLearningModule.

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

79 {
80 $this->type = "sahs";
81 parent::__construct($a_id, $a_call_by_reference);
82 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ _getTries()

static ilObjSAHSLearningModule::_getTries ( int  $a_id)
static

obsolet?

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

256 : int
257 {
258 global $DIC;
259 $ilDB = $DIC->database();
260
261 $lm_set = $ilDB->queryF(
262 'SELECT question_tries FROM sahs_lm WHERE id = %s',
263 array('integer'),
264 array($a_id)
265 );
266 $lm_rec = $ilDB->fetchAssoc($lm_set);
267
268 return (int) $lm_rec['question_tries'];
269 }
global $DIC
Definition: feed.php:28
$lm_set

References $DIC, $ilDB, and $lm_set.

◆ _lookupSubType()

static ilObjSAHSLearningModule::_lookupSubType ( int  $a_obj_id)
static

◆ checkMasteryScoreValues()

ilObjSAHSLearningModule::checkMasteryScoreValues ( )

check mastery_score / min_normalized_measure of SCOs (SCORM 1.2) / objectives (SCORM 2004)

Definition at line 757 of file class.ilObjSAHSLearningModule.php.

757 : void
758 {
759 global $DIC;
760 $ilDB = $DIC->database();
761 $s_result = "";
762 $a_result = array();
763 $type = self::_lookupSubType($this->getID());
764
765 if ($type === "scorm2004") {
766 $set = $ilDB->query("SELECT minnormalmeasure FROM cp_objective, cp_node" .
767 " WHERE satisfiedbymeasure=1 AND minnormalmeasure is not null AND cp_objective.cp_node_id=cp_node.cp_node_id AND" .
768 " slm_id = " . $ilDB->quote($this->getID(), "integer"));
769 while ($rec = $ilDB->fetchAssoc($set)) {
770 $tmpval = $rec["minnormalmeasure"] * 100;
771 if (!in_array($tmpval, $a_result)) {
772 $a_result[] = $tmpval;
773 }
774 }
775 } else {
776 $set = $ilDB->query("SELECT masteryscore FROM sc_item,scorm_object" .
777 " WHERE sc_item.masteryscore is not null AND sc_item.obj_id=scorm_object.obj_id AND" .
778 " slm_id = " . $ilDB->quote($this->getID(), "integer"));
779 while ($rec = $ilDB->fetchAssoc($set)) {
780 if (!in_array($rec["masteryscore"], $a_result)) {
781 $a_result[] = $rec["masteryscore"];
782 }
783 }
784 }
785 $s_result = implode(", ", $a_result);
786 $this->mastery_score_values = $s_result;
787 }
static _lookupSubType(int $a_obj_id)
lookup subtype id (scorm, )
string $type

References $DIC, $ilDB, ilObject\$type, and _lookupSubType().

+ Here is the call graph for this function:

◆ create()

ilObjSAHSLearningModule::create ( bool  $upload = false)

create file based lm

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

87 : int
88 {
89 global $DIC;
90 $ilDB = $DIC->database();
91
92 $id = parent::create();
93 if (!$upload) {
94 $this->createMetaData();
95 }
96
97 $this->createDataDirectory();
98 $ilDB->manipulateF(
99 '
100 INSERT INTO sahs_lm (id, api_adapter, c_type, editable, seq_exp_mode,localization)
101 VALUES (%s,%s,%s,%s,%s,%s)',
102 array('integer', 'text', 'text', 'integer','integer','text'),
103 array($this->getId(),'API', $this->getSubType(),(int) $this->getEditable(),
104 0, $this->getLocalization()
105 )
106 );
107 return $id;
108 }
createDataDirectory()
creates data directory for package files ("./data/lm_data/lm_<id>")

References $DIC, ilObject\$id, $ilDB, createDataDirectory(), ilObject\createMetaData(), getEditable(), ilObject\getId(), getLocalization(), and getSubType().

+ Here is the call graph for this function:

◆ createDataDirectory()

ilObjSAHSLearningModule::createDataDirectory ( )

creates data directory for package files ("./data/lm_data/lm_<id>")

Definition at line 286 of file class.ilObjSAHSLearningModule.php.

286 : void
287 {
288 $lm_data_dir = ilFileUtils::getWebspaceDir() . "/lm_data";
289 ilFileUtils::makeDir($lm_data_dir);
291 }
static getWebspaceDir(string $mode="filesystem")
get webspace directory
static makeDir(string $a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
getDataDirectory(?string $mode="filesystem")
get data directory of lm

References getDataDirectory(), ilFileUtils\getWebspaceDir(), and ilFileUtils\makeDir().

Referenced by create().

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

◆ delete()

ilObjSAHSLearningModule::delete ( )

delete SCORM learning module and all related data

this method has been tested on may 9th 2004 meta data, scorm lm data, scorm tree, scorm objects (organization(s), manifest, resources and items), tracking data and data directory have been deleted correctly as desired

Returns
boolean true if all object data were removed; false if only a references were removed

Reimplemented from ilObject.

Definition at line 996 of file class.ilObjSAHSLearningModule.php.

996 : bool
997 {
998 global $DIC;
999 $ilDB = $DIC->database();
1000 $ilLog = ilLoggerFactory::getLogger('sahs');
1001
1002 // always call parent delete function first!!
1003 if (!parent::delete()) {
1004 return false;
1005 }
1006
1007 // delete meta data of scorm content object
1008 $this->deleteMetaData();
1009
1010 // delete data directory
1012
1013 // delete scorm learning module record
1014 $ilDB->manipulateF(
1015 'DELETE FROM sahs_lm WHERE id = %s',
1016 array('integer'),
1017 array($this->getId())
1018 );
1019
1020 $ilLog->debug("SAHS Delete(SAHSLM), Subtype: " . $this->getSubType());
1021
1022 if ($this->getSubType() === "scorm") {
1023 $sc_tree = new ilSCORMTree($this->getId());
1024 $r_id = $sc_tree->readRootId();
1025 if ($r_id > 0) {
1026 $items = $sc_tree->getSubTree($sc_tree->getNodeData($r_id));
1027 foreach ($items as $item) {
1028 $sc_object = ilSCORMObject::_getInstance((int) $item["obj_id"], $this->getId());
1029 if (is_object($sc_object)) {
1030 $sc_object->delete();
1031 }
1032 }
1033 $sc_tree->removeTree($sc_tree->getTreeId());
1034 }
1035 }
1036
1037 if ($this->getSubType() !== "scorm") {
1038 // delete aicc data
1039 $res = $ilDB->queryF(
1040 '
1041 SELECT aicc_object.obj_id FROM aicc_object, aicc_units
1042 WHERE aicc_object.obj_id = aicc_units.obj_id
1043 AND aicc_object.slm_id = %s',
1044 array('integer'),
1045 array($this->getId())
1046 );
1047
1048 while ($row = $ilDB->fetchAssoc($res)) {
1049 $obj_id = $row['obj_id'];
1050 $ilDB->manipulateF(
1051 '
1052 DELETE FROM aicc_units WHERE obj_id = %s',
1053 array('integer'),
1054 array($obj_id)
1055 );
1056 }
1057
1058 $res = $ilDB->queryF(
1059 '
1060 SELECT aicc_object.obj_id FROM aicc_object, aicc_course
1061 WHERE aicc_object.obj_id = aicc_course.obj_id
1062 AND aicc_object.slm_id = %s',
1063 array('integer'),
1064 array($this->getId())
1065 );
1066
1067 while ($row = $ilDB->fetchAssoc($res)) {
1068 $obj_id = $row['obj_id'];
1069 $ilDB->manipulateF(
1070 '
1071 DELETE FROM aicc_course WHERE obj_id = %s',
1072 array('integer'),
1073 array($obj_id)
1074 );
1075 }
1076
1077 $ilDB->manipulateF(
1078 '
1079 DELETE FROM aicc_object WHERE slm_id = %s',
1080 array('integer'),
1081 array($this->getId())
1082 );
1083 }
1084
1085 $q_log = "DELETE FROM scorm_tracking WHERE obj_id = " . $ilDB->quote($this->getId());
1086 $ilLog->write("SAHS Delete(SAHSLM): " . $q_log);
1087
1088 $ilDB->manipulateF(
1089 'DELETE FROM scorm_tracking WHERE obj_id = %s',
1090 array('integer'),
1091 array($this->getId())
1092 );
1093
1094 $q_log = "DELETE FROM sahs_user WHERE obj_id = " . $ilDB->quote($this->getId());
1095 $ilLog->write("SAHS Delete(SAHSLM): " . $q_log);
1096
1097 $ilDB->manipulateF(
1098 'DELETE FROM sahs_user WHERE obj_id = %s',
1099 array('integer'),
1100 array($this->getId())
1101 );
1102
1103 // always call parent delete function at the end!!
1104 return true;
1105 }
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static getLogger(string $a_component_id)
Get component logger.
static & _getInstance(int $a_id, int $a_slm_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$res
Definition: ltiservices.php:69

References $DIC, $ilDB, $res, ilSCORMObject\_getInstance(), ilFileUtils\delDir(), ilObject\deleteMetaData(), getDataDirectory(), ilObject\getId(), ilLoggerFactory\getLogger(), and getSubType().

+ Here is the call graph for this function:

◆ getAffectiveLocalization()

static ilObjSAHSLearningModule::getAffectiveLocalization ( int  $a_id)
static

Get affective localization.

Definition at line 178 of file class.ilObjSAHSLearningModule.php.

178 : string
179 {
180 global $DIC;
181 $ilDB = $DIC->database();
182 $lng = $DIC->language();
183
184 $lm_set = $ilDB->queryF(
185 'SELECT localization FROM sahs_lm WHERE id = %s',
186 array('integer'),
187 array($a_id)
188 );
189 $lm_rec = $ilDB->fetchAssoc($lm_set);
190 $inst_lang = $lng->getInstalledLanguages();
191 if ($lm_rec["localization"] != "" && in_array($lm_rec["localization"], $inst_lang)) {
192 return $lm_rec["localization"];
193 }
194 return $lng->getLangKey();
195 }
getLangKey()
Return lang key.
getInstalledLanguages()
Get installed languages.
ilLanguage $lng

References $DIC, $ilDB, $lm_set, ilObject\$lng, ilLanguage\getInstalledLanguages(), and ilLanguage\getLangKey().

+ Here is the call graph for this function:

◆ getAPIAdapterName()

ilObjSAHSLearningModule::getAPIAdapterName ( )

get api adapter name

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

305 : string
306 {
307 return $this->api_adapter;
308 }

References $api_adapter.

Referenced by update().

+ Here is the caller graph for this function:

◆ getAPIFunctionsPrefix()

ilObjSAHSLearningModule::getAPIFunctionsPrefix ( )

get api functions prefix

Returns
string

Definition at line 322 of file class.ilObjSAHSLearningModule.php.

322 : string
323 {
325 }

References $api_func_prefix.

Referenced by update().

+ Here is the caller graph for this function:

◆ getApiStudentId()

ilObjSAHSLearningModule::getApiStudentId ( )

Get cmi.core.student_id / cmi.learner_id for API.

Definition at line 1285 of file class.ilObjSAHSLearningModule.php.

1285 : string
1286 {
1287 global $DIC;
1288 $usr = $DIC->user();
1289 $idSetting = $this->getIdSetting();
1290 $studentId = (string) $usr->getId();
1291 if ($idSetting % 2 == 1) {
1292 $studentId = $usr->getLogin();
1293 }
1294 if ($idSetting > 3) {
1295 $studentId .= '_o_' . $this->getId();
1296 } elseif ($idSetting > 1) {
1297 $studentId .= '_r_' . $this->getRefId();
1298 }
1299 return $studentId;
1300 }

References $DIC, ilObject\getId(), getIdSetting(), and ilObject\getRefId().

Referenced by ilObjSCORMInitData\getIliasScormVars().

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

◆ getApiStudentName()

ilObjSAHSLearningModule::getApiStudentName ( )

Get cmi.core.student_name / cmi.learner_name for API note: 'lastname, firstname' is required for SCORM 1.2; 9 = no name to hide student_name for external content.

Definition at line 1306 of file class.ilObjSAHSLearningModule.php.

1306 : string
1307 {
1308 global $DIC;
1309 $lng = $DIC->language();
1310 $usr = $DIC->user();
1311 $studentName = " ";
1312 switch ($this->getNameSetting()) {
1313 case 0:
1314 $studentName = $usr->getLastname() . ', ' . $usr->getFirstname();
1315 break;
1316 case 1:
1317 $studentName = $usr->getFirstname() . ' ' . $usr->getLastname();
1318 break;
1319 case 2:
1320 $studentName = $usr->getFullname();
1321 break;
1322 case 3:
1323 switch ($usr->getGender()) {
1324 case 'f':
1325 $studentName = $lng->txt('salutation_f') . ' ';
1326 break;
1327
1328 case 'm':
1329 $studentName = $lng->txt('salutation_m') . ' ';
1330 break;
1331
1332 case 'n':
1333 $studentName = '';//$lng->txt('salutation_n');
1334 break;
1335
1336 default:
1337 $studentName = $lng->txt('salutation') . ' ';
1338 }
1339 $studentName .= $usr->getLastname();
1340 break;
1341 case 4:
1342 $studentName = $usr->getFirstname();
1343 break;
1344 }
1345 return $studentName;
1346 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...

References $DIC, ilObject\$lng, getNameSetting(), and ilLanguage\txt().

Referenced by ilObjSCORMInitData\getIliasScormVars().

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

◆ getAssignedGlossary()

ilObjSAHSLearningModule::getAssignedGlossary ( )

Definition at line 438 of file class.ilObjSAHSLearningModule.php.

438 : int
439 {
441 }

References $assigned_glossary.

Referenced by update().

+ Here is the caller graph for this function:

◆ getAuto_last_visited()

ilObjSAHSLearningModule::getAuto_last_visited ( )

Definition at line 663 of file class.ilObjSAHSLearningModule.php.

663 : bool
664 {
666 }

References $auto_last_visited.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getAutoContinue()

ilObjSAHSLearningModule::getAutoContinue ( )

Definition at line 658 of file class.ilObjSAHSLearningModule.php.

658 : bool
659 {
661 }

References $auto_continue.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getAutoReview()

ilObjSAHSLearningModule::getAutoReview ( )

get auto review as true/false for SCORM 1.2

Definition at line 398 of file class.ilObjSAHSLearningModule.php.

398 : bool
399 {
400 return ilUtil::yn2tf($this->auto_review);
401 }
static yn2tf(string $a_yn)

References ilUtil\yn2tf().

Referenced by ilObjSCORMInitData\getIliasScormVars().

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

◆ getAutoReviewChar()

ilObjSAHSLearningModule::getAutoReviewChar ( )

get auto review as Char for SCORM 2004

Definition at line 418 of file class.ilObjSAHSLearningModule.php.

418 : string
419 {
420 return $this->auto_review;
421 }

References $auto_review.

Referenced by update().

+ Here is the caller graph for this function:

◆ getAutoSuspend()

ilObjSAHSLearningModule::getAutoSuspend ( )

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

699 : bool
700 {
701 return $this->auto_suspend;
702 }

References $auto_suspend.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getCacheDeactivated()

ilObjSAHSLearningModule::getCacheDeactivated ( )

BrowserCacheDisabled for SCORM 2004 / ENABLE_JS_DEBUG.

Definition at line 498 of file class.ilObjSAHSLearningModule.php.

498 : bool
499 {
500 global $DIC;
501 $ilSetting = $DIC->settings();
502 $lm_set = new ilSetting("lm");
503 return $lm_set->get("scormdebug_disable_cache") == "1";
504 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $ilSetting
Definition: privfeed.php:17

References $DIC, $ilSetting, and $lm_set.

◆ getCheck_values()

ilObjSAHSLearningModule::getCheck_values ( )

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

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

References $check_values.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getComments()

ilObjSAHSLearningModule::getComments ( )

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

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

References $comments.

Referenced by update().

+ Here is the caller graph for this function:

◆ getCreditMode()

ilObjSAHSLearningModule::getCreditMode ( )

get credit mode

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

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

References $credit_mode.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getDataDirectory()

ilObjSAHSLearningModule::getDataDirectory ( ?string  $mode = "filesystem")

get data directory of lm

Definition at line 296 of file class.ilObjSAHSLearningModule.php.

296 : string
297 {
298 $lm_data_dir = ilFileUtils::getWebspaceDir($mode) . "/lm_data";
299 return $lm_data_dir . "/lm_" . $this->getId();
300 }

References ilObject\getId(), and ilFileUtils\getWebspaceDir().

Referenced by ilObjSCORM2004LearningModule\convert_1_2_to_2004(), createDataDirectory(), delete(), ilObjSCORMInitData\getIliasScormVars(), populateByDirectoy(), ilObjSCORM2004LearningModule\readObject(), and ilObjSCORMLearningModule\readObject().

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

◆ getDebug()

ilObjSAHSLearningModule::getDebug ( )

Definition at line 627 of file class.ilObjSAHSLearningModule.php.

627 : bool
628 {
629 return $this->debug;
630 }

References $debug.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getDebugActivated()

ilObjSAHSLearningModule::getDebugActivated ( )

debugActivated

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

520 : bool
521 {
522 global $DIC;
523 $ilSetting = $DIC->settings();
524 $lm_set = new ilSetting("lm");
525 return $lm_set->get("scormdebug_global_activate") === "1";
526 }

References $DIC, $ilSetting, and $lm_set.

◆ getDefaultLessonMode()

ilObjSAHSLearningModule::getDefaultLessonMode ( )

get default lesson mode

Definition at line 362 of file class.ilObjSAHSLearningModule.php.

362 : string
363 {
364 global $DIC;
365 if ($DIC->user()->getId() == 13) {
366 return "browse";
367 }
368 return $this->lesson_mode;
369 }

References $DIC, and $lesson_mode.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getDiskUsage()

ilObjSAHSLearningModule::getDiskUsage ( )

Gets the disk usage of the object in bytes.

Returns
integer the disk usage in bytes

Definition at line 276 of file class.ilObjSAHSLearningModule.php.

276 : int
277 {
279 }
static _lookupDiskUsage(int $a_id)
Returns the number of bytes used on the harddisk by the learning module with the specified object id.

References ilObjSAHSLearningModuleAccess\_lookupDiskUsage().

+ Here is the call graph for this function:

◆ getEditable()

ilObjSAHSLearningModule::getEditable ( )

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

225 : bool
226 {
227 return false;
228 }

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getFourth_Edition()

ilObjSAHSLearningModule::getFourth_Edition ( )

SCORM 2004 4th edition features.

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

544 : bool
545 {
547 }

References $fourth_edition.

◆ getHeight()

ilObjSAHSLearningModule::getHeight ( )

Definition at line 734 of file class.ilObjSAHSLearningModule.php.

734 : int
735 {
736 return $this->height;
737 }

References $height.

Referenced by getViewButton(), and update().

+ Here is the caller graph for this function:

◆ getHideNavig()

ilObjSAHSLearningModule::getHideNavig ( )

hide navigation tree

Definition at line 482 of file class.ilObjSAHSLearningModule.php.

482 : bool
483 {
484 return $this->hide_navig;
485 }

References $hide_navig.

Referenced by update().

+ Here is the caller graph for this function:

◆ getIdSetting()

ilObjSAHSLearningModule::getIdSetting ( )

Definition at line 794 of file class.ilObjSAHSLearningModule.php.

794 : int
795 {
796 return $this->id_setting;
797 }

References $id_setting.

Referenced by getApiStudentId(), and update().

+ Here is the caller graph for this function:

◆ getIe_force_render()

ilObjSAHSLearningModule::getIe_force_render ( )

force Internet Explorer to render again after some Milliseconds - useful for learning Modules with a lot of iframes or frames and IE >=10

Definition at line 531 of file class.ilObjSAHSLearningModule.php.

531 : bool
532 {
534 }

References $ie_force_render.

Referenced by update().

+ Here is the caller graph for this function:

◆ getInteractions()

ilObjSAHSLearningModule::getInteractions ( )

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

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

References $interactions.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getLocalization()

ilObjSAHSLearningModule::getLocalization ( )

Definition at line 248 of file class.ilObjSAHSLearningModule.php.

248 : string
249 {
250 return $this->localization;
251 }

References $localization.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getMasteryScore()

ilObjSAHSLearningModule::getMasteryScore ( )

Definition at line 744 of file class.ilObjSAHSLearningModule.php.

744 : ?int
745 {
747 }

References $mastery_score.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getMasteryScoreValues()

ilObjSAHSLearningModule::getMasteryScoreValues ( )

Definition at line 789 of file class.ilObjSAHSLearningModule.php.

789 : string
790 {
792 }

References $mastery_score_values.

◆ getMaxAttempt()

ilObjSAHSLearningModule::getMaxAttempt ( )

Definition at line 423 of file class.ilObjSAHSLearningModule.php.

423 : int
424 {
425 return $this->max_attempt;
426 }

References $max_attempt.

Referenced by update().

+ Here is the caller graph for this function:

◆ getMaxPoints()

ilObjSAHSLearningModule::getMaxPoints ( )

Returns score.max for the learning module, refered to the last sco where score.max is set.

This is called by the certificate generator if [SCORM_POINTS_MAX] is inserted.

Definition at line 1133 of file class.ilObjSAHSLearningModule.php.

1133 : ?float
1134 {
1135 global $DIC;
1136 $ilUser = $DIC->user();
1137
1138 if (strcmp($this->getSubType(), 'scorm2004') == 0) {
1140 return $res;
1141 }
1142
1143 return null;
1144 }
static _getMaxScoreForUser(int $a_id, int $a_user)
Returns score.max for the learning module, refered to the last sco where score.max is set.
$ilUser
Definition: imgupload.php:34

References $DIC, $ilUser, $res, ilObjSCORM2004LearningModule\_getMaxScoreForUser(), ilObject\getId(), and getSubType().

+ Here is the call graph for this function:

◆ getModuleVersion()

ilObjSAHSLearningModule::getModuleVersion ( )

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

433 : int
434 {
436 }

References $module_version.

Referenced by update().

+ Here is the caller graph for this function:

◆ getNameSetting()

ilObjSAHSLearningModule::getNameSetting ( )

Definition at line 804 of file class.ilObjSAHSLearningModule.php.

804 : int
805 {
806 return $this->name_setting;
807 }

References $name_setting.

Referenced by getApiStudentName(), and update().

+ Here is the caller graph for this function:

◆ getNoMenu()

ilObjSAHSLearningModule::getNoMenu ( )

disable menu

Definition at line 466 of file class.ilObjSAHSLearningModule.php.

466 : bool
467 {
468 return $this->no_menu;
469 }

References $no_menu.

Referenced by update().

+ Here is the caller graph for this function:

◆ getObjectives()

ilObjSAHSLearningModule::getObjectives ( )

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

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

References $objectives.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getOpenMode()

ilObjSAHSLearningModule::getOpenMode ( )

open_mode 0: in Tab/new Window like in previous versions 1: in iFrame with width=100% and heigth=100% 2: in iFrame with specified width and height 3: 4: 5: in new Window without specified width and height 6: in new Window with specified width and height

Definition at line 714 of file class.ilObjSAHSLearningModule.php.

714 : int
715 {
716 return $this->open_mode;
717 }

References $open_mode.

Referenced by getViewButton(), and update().

+ Here is the caller graph for this function:

◆ getPointsInPercent()

ilObjSAHSLearningModule::getPointsInPercent ( )

Returns the points in percent for the learning module This is called by the certificate generator if [SCORM_POINTS] is inserted.

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

1112 : ?float
1113 {
1114 global $DIC;
1115 $ilUser = $DIC->user();
1116 if (strcmp($this->getSubType(), "scorm2004") == 0) {
1118 if (!is_null($res)) {
1119 return $res * 100.0;
1120 }
1121
1122 return $res;
1123 }
1124
1125 return null;
1126 }
static _getUniqueScaledScoreForUser(int $a_id, int $a_user)
Get the Unique Scaled Score of a course Conditions: Only one SCO may set cmi.score....

References $DIC, $ilUser, $res, ilObjSCORM2004LearningModule\_getUniqueScaledScoreForUser(), ilObject\getId(), and getSubType().

+ Here is the call graph for this function:

◆ getScormModulesForGlossary()

static ilObjSAHSLearningModule::getScormModulesForGlossary ( int  $a_glo_id)
static

Get SCORM modules that assign a certain glossary.

Definition at line 942 of file class.ilObjSAHSLearningModule.php.

942 : array
943 {
944 global $DIC;
945 $ilDB = $DIC->database();
946
947 $set = $ilDB->query("SELECT DISTINCT id FROM sahs_lm WHERE " .
948 " glossary = " . $ilDB->quote($a_glo_id, "integer"));
949 $sms = array();
950 while ($rec = $ilDB->fetchAssoc($set)) {
951 if (ilObject::_hasUntrashedReference((int) $rec["id"])) {
952 $sms[] = $rec["id"];
953 }
954 }
955 return $sms;
956 }
static _hasUntrashedReference(int $obj_id)
checks whether an object has at least one reference that is not in trash

References $DIC, $ilDB, and ilObject\_hasUntrashedReference().

Referenced by ilObjGlossary\getDeletionDependencies().

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

◆ getSequencing()

ilObjSAHSLearningModule::getSequencing ( )

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

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

References $sequencing.

Referenced by update().

+ Here is the caller graph for this function:

◆ getSession()

ilObjSAHSLearningModule::getSession ( )

Definition at line 453 of file class.ilObjSAHSLearningModule.php.

453 : bool
454 {
455 return $this->session;
456 }

References $session.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getSessionDeactivated()

ilObjSAHSLearningModule::getSessionDeactivated ( )

sessionDisabled for SCORM 2004

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

509 : bool
510 {
511 global $DIC;
512 $ilSetting = $DIC->settings();
513 $lm_set = new ilSetting("lm");
514 return $lm_set->get("scorm_without_session") == "1";
515 }

References $DIC, $ilSetting, and $lm_set.

Referenced by ilObjSCORMInitData\getIliasScormVars().

+ Here is the caller graph for this function:

◆ getStyleSheetId()

ilObjSAHSLearningModule::getStyleSheetId ( )

get ID of assigned style sheet object

Definition at line 374 of file class.ilObjSAHSLearningModule.php.

374 : int
375 {
376 return $this->style_id;
377 }

References $style_id.

Referenced by read(), and update().

+ Here is the caller graph for this function:

◆ getSubType()

ilObjSAHSLearningModule::getSubType ( )

Definition at line 981 of file class.ilObjSAHSLearningModule.php.

981 : string
982 {
983 return $this->sub_type;
984 }

References $sub_type.

Referenced by create(), delete(), getMaxPoints(), getPointsInPercent(), and update().

+ Here is the caller graph for this function:

◆ getTime_from_lms()

ilObjSAHSLearningModule::getTime_from_lms ( )

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

594 : bool
595 {
597 }

References $time_from_lms.

Referenced by ilObjSCORMInitData\getIliasScormVars(), and update().

+ Here is the caller graph for this function:

◆ getTries()

ilObjSAHSLearningModule::getTries ( )

Definition at line 238 of file class.ilObjSAHSLearningModule.php.

238 : int
239 {
240 return $this->tries;
241 }

References $tries.

Referenced by update().

+ Here is the caller graph for this function:

◆ getViewButton()

ilObjSAHSLearningModule::getViewButton ( )

get button for view

Definition at line 1353 of file class.ilObjSAHSLearningModule.php.

1353 : ilLinkButton
1354 {
1355 $setUrl = "ilias.php?baseClass=ilSAHSPresentationGUI&amp;ref_id=" . $this->getRefID();
1356 // $setUrl = $this->getLinkTargetByClass("ilsahspresentationgui", "")."&amp;ref_id=".$this->getRefID();
1357 $setTarget = "ilContObj" . $this->getId();
1358 $om = $this->getOpenMode();
1359 $width = $this->getWidth();
1360 $height = $this->getHeight();
1361 if (($om == 5 || $om == 1) && $width > 0 && $height > 0) {
1362 $om++;
1363 }
1364 if ($om != 0) {
1365 $setUrl = "javascript:void(0); onclick=startSAHS('" . $setUrl . "','ilContObj" . $this->getId() . "'," . $om . "," . $width . "," . $height . ");";
1366 $setTarget = "";
1367 }
1368 $button = ilLinkButton::getInstance();
1369 $button->setCaption("view");
1370 $button->setPrimary(true);
1371 $button->setUrl($setUrl);
1372 $button->setTarget($setTarget);
1373 return $button;
1374 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getOpenMode()
open_mode 0: in Tab/new Window like in previous versions 1: in iFrame with width=100% and heigth=100%...

References $height, $width, getHeight(), ilObject\getId(), ilLinkButton\getInstance(), getOpenMode(), and getWidth().

+ Here is the call graph for this function:

◆ getWidth()

ilObjSAHSLearningModule::getWidth ( )

Definition at line 724 of file class.ilObjSAHSLearningModule.php.

724 : int
725 {
726 return $this->width;
727 }

References $width.

Referenced by getViewButton(), and update().

+ Here is the caller graph for this function:

◆ lookupAssignedGlossary()

static ilObjSAHSLearningModule::lookupAssignedGlossary ( int  $a_slm_id)
static

Get SCORM modules that assign a certain glossary.

Definition at line 961 of file class.ilObjSAHSLearningModule.php.

961 : int
962 {
963 global $DIC;
964 $ilDB = $DIC->database();
965
966 $set = $ilDB->query("SELECT DISTINCT glossary FROM sahs_lm WHERE " .
967 " id = " . $ilDB->quote($a_slm_id, "integer"));
968 $rec = $ilDB->fetchAssoc($set);
969 $glo_id = $rec["glossary"];
970 if (ilObject::_lookupType($glo_id) === "glo") {
971 return $glo_id;
972 }
973 return 0;
974 }
static _lookupType(int $id, bool $reference=false)

References $DIC, $ilDB, and ilObject\_lookupType().

+ Here is the call graph for this function:

◆ populateByDirectoy()

ilObjSAHSLearningModule::populateByDirectoy ( string  $a_dir,
string  $a_filename = "" 
)

Populate by directory.

Add a filename to do a special check for ILIAS SCORM export files. If the corresponding directory is found within the passed directory path (i.e. "htlm_<id>") this subdirectory is used instead.

Exceptions

ILIAS\Filesystem\Exception\DirectoryNotFoundException

Exceptions

ILIAS\Filesystem\Exception\FileNotFoundException

Exceptions

ILIAS\Filesystem\Exception\IOException

Definition at line 1155 of file class.ilObjSAHSLearningModule.php.

1155 : void
1156 {
1157 /*preg_match("/.*sahs_([0-9]*)\.zip/", $a_filename, $match);
1158 if (is_dir($a_dir."/sahs_".$match[1]))
1159 {
1160 $a_dir = $a_dir."/sahs_".$match[1];
1161 }*/
1162 ilFileUtils::rCopy($a_dir, $this->getDataDirectory());
1164 }
static renameExecutables(string $a_dir)
static rCopy(string $a_sdir, string $a_tdir, bool $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.

References getDataDirectory(), ilFileUtils\rCopy(), and ilFileUtils\renameExecutables().

+ Here is the call graph for this function:

◆ read()

ilObjSAHSLearningModule::read ( )

read object

Exceptions
ilObjectNotFoundException
ilObjectTypeMismatchException

Reimplemented from ilObject.

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

116 : void
117 {
118 global $DIC;
119 $ilDB = $DIC->database();
120
121 parent::read();
122
123 $lm_set = $ilDB->queryF(
124 'SELECT * FROM sahs_lm WHERE id = %s',
125 array('integer'),
126 array($this->getId())
127 );
128
129 while ($lm_rec = $ilDB->fetchAssoc($lm_set)) {
130 $this->setAutoReviewChar((string) $lm_rec["auto_review"]);
131 $this->setAPIAdapterName((string) $lm_rec["api_adapter"]);
132 $this->setDefaultLessonMode((string) $lm_rec["default_lesson_mode"]);
133 $this->setAPIFunctionsPrefix((string) $lm_rec["api_func_prefix"]);
134 $this->setCreditMode((string) $lm_rec["credit"]);
135 $this->setSubType((string) $lm_rec["c_type"]);
136 // $this->setEditable(false);
137 $this->setStyleSheetId((int) $lm_rec["stylesheet"]);
138 $this->setMaxAttempt((int) $lm_rec["max_attempt"]);
139 $this->setModuleVersion((int) $lm_rec["module_version"]);
140 $this->setAssignedGlossary((int) $lm_rec["glossary"]);
141 $this->setTries((int) $lm_rec["question_tries"]);
142 $this->setLocalization((string) $lm_rec["localization"]);
143 $this->setSession(ilUtil::yn2tf($lm_rec["unlimited_session"]));
144 $this->setNoMenu(ilUtil::yn2tf($lm_rec["no_menu"]));
145 $this->setHideNavig(ilUtil::yn2tf($lm_rec["hide_navig"]));
146 $this->setFourth_edition(ilUtil::yn2tf($lm_rec["fourth_edition"]));
147 $this->setSequencing(ilUtil::yn2tf($lm_rec["sequencing"]));
148 $this->setInteractions(ilUtil::yn2tf($lm_rec["interactions"]));
149 $this->setObjectives(ilUtil::yn2tf($lm_rec["objectives"]));
150 $this->setComments(ilUtil::yn2tf($lm_rec["comments"]));
151 $this->setTime_from_lms(ilUtil::yn2tf($lm_rec["time_from_lms"]));
152 $this->setDebug(ilUtil::yn2tf($lm_rec["debug"]));
153 // $this->setDebugPw($lm_rec["debugpw"]);
154 // $this->setSequencingExpertMode(bool $lm_rec["seq_exp_mode"]);
155 $this->setOpenMode((int) $lm_rec["open_mode"]);
156 $this->setWidth((int) $lm_rec["width"]);
157 $this->setHeight((int) $lm_rec["height"]);
158 $this->setAutoContinue(ilUtil::yn2tf($lm_rec["auto_continue"]));
159 $this->setAuto_last_visited(ilUtil::yn2tf($lm_rec["auto_last_visited"]));
160 $this->setCheck_values(ilUtil::yn2tf($lm_rec["check_values"]));
161 // $this->setOfflineMode(ilUtil::yn2tf($lm_rec["offline_mode"]));
162 $this->setAutoSuspend(ilUtil::yn2tf($lm_rec["auto_suspend"]));
163 $this->setIe_force_render(ilUtil::yn2tf($lm_rec["ie_force_render"]));
164 if ($lm_rec["mastery_score"] != null) {
165 $this->setMasteryScore((int) $lm_rec["mastery_score"]);
166 }
167 $this->setIdSetting((int) $lm_rec["id_setting"]);
168 $this->setNameSetting((int) $lm_rec["name_setting"]);
169 if (ilObject::_lookupType($this->getStyleSheetId()) !== "sty") {
170 $this->setStyleSheetId(0);
171 }
172 }
173 }
setDefaultLessonMode(string $a_lesson_mode)
set default lesson mode
setAssignedGlossary(int $a_assigned_glossary)
setTries(int $a_tries)
Set default tries for questions.
setNoMenu(bool $a_no_menu)
disable menu
setStyleSheetId(int $a_style_id)
set ID of assigned style sheet object
setFourth_edition(bool $a_fourth_edition)
setIe_force_render(bool $a_ie_force_render)
setAPIAdapterName(string $a_api)
set api adapter name
setHideNavig(bool $a_hide_navig)
disable menu
setAPIFunctionsPrefix(string $a_prefix)
set api functions prefix
getStyleSheetId()
get ID of assigned style sheet object
setCreditMode(string $a_credit_mode)
set credit mode
setAutoReviewChar(?string $a_auto_review)
set auto review as Char for SCORM 2004
setAuto_last_visited(bool $a_auto_last_visited)

References $DIC, $ilDB, $lm_set, ilObject\_lookupType(), ilObject\getId(), getStyleSheetId(), setAPIAdapterName(), setAPIFunctionsPrefix(), setAssignedGlossary(), setAuto_last_visited(), setAutoContinue(), setAutoReviewChar(), setAutoSuspend(), setCheck_values(), setComments(), setCreditMode(), setDebug(), setDefaultLessonMode(), setFourth_edition(), setHeight(), setHideNavig(), setIdSetting(), setIe_force_render(), setInteractions(), setLocalization(), setMasteryScore(), setMaxAttempt(), setModuleVersion(), setNameSetting(), setNoMenu(), setObjectives(), setOpenMode(), setSequencing(), setSession(), setStyleSheetId(), setSubType(), setTime_from_lms(), setTries(), setWidth(), and ilUtil\yn2tf().

+ Here is the call graph for this function:

◆ setAPIAdapterName()

ilObjSAHSLearningModule::setAPIAdapterName ( string  $a_api)

set api adapter name

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

313 : void
314 {
315 $this->api_adapter = $a_api;
316 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAPIFunctionsPrefix()

ilObjSAHSLearningModule::setAPIFunctionsPrefix ( string  $a_prefix)

set api functions prefix

Definition at line 330 of file class.ilObjSAHSLearningModule.php.

330 : void
331 {
332 $this->api_func_prefix = $a_prefix;
333 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAssignedGlossary()

ilObjSAHSLearningModule::setAssignedGlossary ( int  $a_assigned_glossary)

Definition at line 443 of file class.ilObjSAHSLearningModule.php.

443 : void
444 {
445 $this->assigned_glossary = $a_assigned_glossary;
446 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAuto_last_visited()

ilObjSAHSLearningModule::setAuto_last_visited ( bool  $a_auto_last_visited)

Definition at line 668 of file class.ilObjSAHSLearningModule.php.

668 : void
669 {
670 $this->auto_last_visited = $a_auto_last_visited;
671 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAutoContinue()

ilObjSAHSLearningModule::setAutoContinue ( bool  $a_auto_continue)

Definition at line 653 of file class.ilObjSAHSLearningModule.php.

653 : void
654 {
655 $this->auto_continue = $a_auto_continue;
656 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAutoReview()

ilObjSAHSLearningModule::setAutoReview ( bool  $a_auto_review)

set auto review as true/false for SCORM 1.2

Definition at line 390 of file class.ilObjSAHSLearningModule.php.

390 : void
391 {
392 $this->auto_review = ilUtil::tf2yn($a_auto_review);
393 }
static tf2yn(bool $a_tf)

References ilUtil\tf2yn().

+ Here is the call graph for this function:

◆ setAutoReviewChar()

ilObjSAHSLearningModule::setAutoReviewChar ( ?string  $a_auto_review)

set auto review as Char for SCORM 2004

Definition at line 406 of file class.ilObjSAHSLearningModule.php.

406 : void
407 {
408 if ($a_auto_review == null) {
409 $this->auto_review = 'n';
410 } else {
411 $this->auto_review = $a_auto_review;
412 }
413 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAutoSuspend()

ilObjSAHSLearningModule::setAutoSuspend ( bool  $a_auto_suspend)

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

694 : void
695 {
696 $this->auto_suspend = $a_auto_suspend;
697 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setCheck_values()

ilObjSAHSLearningModule::setCheck_values ( bool  $a_check_values)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setComments()

ilObjSAHSLearningModule::setComments ( bool  $a_comments)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setCreditMode()

ilObjSAHSLearningModule::setCreditMode ( string  $a_credit_mode)

set credit mode

Definition at line 346 of file class.ilObjSAHSLearningModule.php.

346 : void
347 {
348 $this->credit_mode = $a_credit_mode;
349 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDebug()

ilObjSAHSLearningModule::setDebug ( bool  $a_debug)

Definition at line 632 of file class.ilObjSAHSLearningModule.php.

632 : void
633 {
634 $this->debug = $a_debug;
635 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDefaultLessonMode()

ilObjSAHSLearningModule::setDefaultLessonMode ( string  $a_lesson_mode)

set default lesson mode

Definition at line 354 of file class.ilObjSAHSLearningModule.php.

354 : void
355 {
356 $this->lesson_mode = $a_lesson_mode;
357 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setFourth_edition()

ilObjSAHSLearningModule::setFourth_edition ( bool  $a_fourth_edition)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setHeight()

ilObjSAHSLearningModule::setHeight ( int  $a_height)

Definition at line 739 of file class.ilObjSAHSLearningModule.php.

739 : void
740 {
741 $this->height = $a_height;
742 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setHideNavig()

ilObjSAHSLearningModule::setHideNavig ( bool  $a_hide_navig)

disable menu

Definition at line 490 of file class.ilObjSAHSLearningModule.php.

490 : void
491 {
492 $this->hide_navig = $a_hide_navig;
493 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setIdSetting()

ilObjSAHSLearningModule::setIdSetting ( int  $a_id_setting)

Definition at line 799 of file class.ilObjSAHSLearningModule.php.

799 : void
800 {
801 $this->id_setting = $a_id_setting;
802 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setIe_force_render()

ilObjSAHSLearningModule::setIe_force_render ( bool  $a_ie_force_render)

Definition at line 536 of file class.ilObjSAHSLearningModule.php.

536 : void
537 {
538 $this->ie_force_render = $a_ie_force_render;
539 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInteractions()

ilObjSAHSLearningModule::setInteractions ( bool  $a_interactions)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setLocalization()

ilObjSAHSLearningModule::setLocalization ( string  $a_val)

Definition at line 243 of file class.ilObjSAHSLearningModule.php.

243 : void
244 {
245 $this->localization = $a_val;
246 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMasteryScore()

ilObjSAHSLearningModule::setMasteryScore ( ?int  $a_mastery_score)

Definition at line 749 of file class.ilObjSAHSLearningModule.php.

749 : void
750 {
751 $this->mastery_score = $a_mastery_score;
752 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMaxAttempt()

ilObjSAHSLearningModule::setMaxAttempt ( int  $a_max_attempt)

Definition at line 428 of file class.ilObjSAHSLearningModule.php.

428 : void
429 {
430 $this->max_attempt = $a_max_attempt;
431 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setModuleVersion()

ilObjSAHSLearningModule::setModuleVersion ( int  $a_module_version)

Definition at line 448 of file class.ilObjSAHSLearningModule.php.

448 : void
449 {
450 $this->module_version = $a_module_version;
451 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setNameSetting()

ilObjSAHSLearningModule::setNameSetting ( int  $a_name_setting)

Definition at line 809 of file class.ilObjSAHSLearningModule.php.

809 : void
810 {
811 $this->name_setting = $a_name_setting;
812 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setNoMenu()

ilObjSAHSLearningModule::setNoMenu ( bool  $a_no_menu)

disable menu

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

474 : void
475 {
476 $this->no_menu = $a_no_menu;
477 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setObjectives()

ilObjSAHSLearningModule::setObjectives ( bool  $a_objectives)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setOpenMode()

ilObjSAHSLearningModule::setOpenMode ( int  $a_open_mode)

Definition at line 719 of file class.ilObjSAHSLearningModule.php.

719 : void
720 {
721 $this->open_mode = $a_open_mode;
722 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setSequencing()

ilObjSAHSLearningModule::setSequencing ( bool  $a_sequencing)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setSession()

ilObjSAHSLearningModule::setSession ( bool  $a_session)

Definition at line 458 of file class.ilObjSAHSLearningModule.php.

458 : void
459 {
460 $this->session = $a_session;
461 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setStyleSheetId()

ilObjSAHSLearningModule::setStyleSheetId ( int  $a_style_id)

set ID of assigned style sheet object

Definition at line 382 of file class.ilObjSAHSLearningModule.php.

382 : void
383 {
384 $this->style_id = $a_style_id;
385 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setSubType()

ilObjSAHSLearningModule::setSubType ( string  $a_sub_type)

Definition at line 976 of file class.ilObjSAHSLearningModule.php.

976 : void
977 {
978 $this->sub_type = $a_sub_type;
979 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTime_from_lms()

ilObjSAHSLearningModule::setTime_from_lms ( bool  $a_time_from_lms)

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setTries()

ilObjSAHSLearningModule::setTries ( int  $a_tries)

Set default tries for questions.

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

233 : void
234 {
235 $this->tries = $a_tries;
236 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setWidth()

ilObjSAHSLearningModule::setWidth ( int  $a_width)

Definition at line 729 of file class.ilObjSAHSLearningModule.php.

729 : void
730 {
731 $this->width = $a_width;
732 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilObjSAHSLearningModule::update ( )

Reimplemented from ilObject.

Definition at line 814 of file class.ilObjSAHSLearningModule.php.

814 : bool
815 {
816 global $DIC;
817 $ilDB = $DIC->database();
818
819 $this->updateMetaData();
820 parent::update();
821
822 $statement = $ilDB->manipulateF(
823 '
824 UPDATE sahs_lm
825 SET api_adapter = %s,
826 api_func_prefix = %s,
827 auto_review = %s,
828 default_lesson_mode = %s,
829 c_type = %s,
830 stylesheet = %s,
831 editable = %s,
832 max_attempt = %s,
833 module_version = %s,
834 credit = %s,
835 glossary = %s,
836 question_tries = %s,
837 unlimited_session = %s,
838 no_menu = %s,
839 hide_navig = %s,
840 fourth_edition =%s,
841 sequencing = %s,
842 interactions = %s,
843 objectives = %s,
844 comments = %s,
845 time_from_lms = %s,
846 debug = %s,
847 localization = %s,
848 seq_exp_mode = %s,
849 open_mode = %s,
850 width = %s,
851 height = %s,
852 auto_continue = %s,
853 auto_last_visited = %s,
854 check_values = %s,
855 auto_suspend = %s,
856 ie_force_render = %s,
857 mastery_score = %s,
858 id_setting = %s,
859 name_setting = %s
860 WHERE id = %s',
861 array( 'text',
862 'text',
863 'text',
864 'text',
865 'text',
866 'integer',
867 'integer',
868 'integer',
869 'integer',
870 'text',
871 'integer',
872 'integer',
873 'text',
874 'text',
875 'text',
876 'text',
877 'text',
878 'text',
879 'text',
880 'text',
881 'text',
882 'text',
883 'text',
884 'integer',
885 'integer',
886 'integer',
887 'integer',
888 'text',
889 'text',
890 'text',
891 'text',
892 'text',
893 'integer',
894 'integer',
895 'integer',
896 'integer'
897 ),
898 array( $this->getAPIAdapterName(),
899 $this->getAPIFunctionsPrefix(),
900 $this->getAutoReviewChar(),
901 $this->getDefaultLessonMode(),
902 $this->getSubType(),
903 $this->getStyleSheetId(),
904 $this->getEditable(),
905 $this->getMaxAttempt(),
906 $this->getModuleVersion(),
907 $this->getCreditMode(),
908 $this->getAssignedGlossary(),
909 $this->getTries(),
910 ilUtil::tf2yn($this->getSession()),
911 ilUtil::tf2yn($this->getNoMenu()),
912 ilUtil::tf2yn($this->getHideNavig()),
913 ilUtil::tf2yn($this->getFourth_edition()),
917 ilUtil::tf2yn($this->getComments()),
919 ilUtil::tf2yn($this->getDebug()),
920 $this->getLocalization(),
921 0,//$this->getSequencingExpertMode(),
922 $this->getOpenMode(),
923 $this->getWidth(),
924 $this->getHeight(),
930 $this->getMasteryScore(),
931 $this->getIdSetting(),
932 $this->getNameSetting(),
933 $this->getId())
934 );
935
936 return true;
937 }
getAPIFunctionsPrefix()
get api functions prefix
getDefaultLessonMode()
get default lesson mode
getIe_force_render()
force Internet Explorer to render again after some Milliseconds - useful for learning Modules with a ...
getAutoReviewChar()
get auto review as Char for SCORM 2004

References $DIC, $ilDB, getAPIAdapterName(), getAPIFunctionsPrefix(), getAssignedGlossary(), getAuto_last_visited(), getAutoContinue(), getAutoReviewChar(), getAutoSuspend(), getCheck_values(), getComments(), getCreditMode(), getDebug(), getDefaultLessonMode(), getEditable(), getHeight(), getHideNavig(), ilObject\getId(), getIdSetting(), getIe_force_render(), getInteractions(), getLocalization(), getMasteryScore(), getMaxAttempt(), getModuleVersion(), getNameSetting(), getNoMenu(), getObjectives(), getOpenMode(), getSequencing(), getSession(), getStyleSheetId(), getSubType(), getTime_from_lms(), getTries(), getWidth(), ilUtil\tf2yn(), and ilObject\updateMetaData().

+ Here is the call graph for this function:

Field Documentation

◆ $api_adapter

string ilObjSAHSLearningModule::$api_adapter = 'API'
protected

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

Referenced by getAPIAdapterName().

◆ $api_func_prefix

string ilObjSAHSLearningModule::$api_func_prefix = 'LMS'
private

Definition at line 34 of file class.ilObjSAHSLearningModule.php.

Referenced by getAPIFunctionsPrefix().

◆ $assigned_glossary

int ilObjSAHSLearningModule::$assigned_glossary = 0
private

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

Referenced by getAssignedGlossary().

◆ $auto_continue

bool ilObjSAHSLearningModule::$auto_continue = false
private

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

Referenced by getAutoContinue().

◆ $auto_last_visited

bool ilObjSAHSLearningModule::$auto_last_visited = true
private

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

Referenced by getAuto_last_visited().

◆ $auto_review

string ilObjSAHSLearningModule::$auto_review = 'n'
private

Definition at line 38 of file class.ilObjSAHSLearningModule.php.

Referenced by getAutoReviewChar().

◆ $auto_suspend

bool ilObjSAHSLearningModule::$auto_suspend = false
private

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

Referenced by getAutoSuspend().

◆ $check_values

bool ilObjSAHSLearningModule::$check_values = true
private

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

Referenced by getCheck_values().

◆ $comments

bool ilObjSAHSLearningModule::$comments = true
private

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

Referenced by getComments().

◆ $credit_mode

string ilObjSAHSLearningModule::$credit_mode = 'credit'
private

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

Referenced by getCreditMode().

◆ $debug

bool ilObjSAHSLearningModule::$debug = false
private

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

Referenced by getDebug().

◆ $fourth_edition

bool ilObjSAHSLearningModule::$fourth_edition = false
private

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

Referenced by getFourth_Edition().

◆ $height

int ilObjSAHSLearningModule::$height = 650
private

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

Referenced by getHeight(), and getViewButton().

◆ $hide_navig

bool ilObjSAHSLearningModule::$hide_navig = false
private

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

Referenced by getHideNavig().

◆ $id_setting

int ilObjSAHSLearningModule::$id_setting = 0
private

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

Referenced by getIdSetting().

◆ $ie_force_render

bool ilObjSAHSLearningModule::$ie_force_render = false
private

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

Referenced by getIe_force_render().

◆ $interactions

bool ilObjSAHSLearningModule::$interactions = true
private

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

Referenced by getInteractions().

◆ $lesson_mode

string ilObjSAHSLearningModule::$lesson_mode ='normal'
private

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

Referenced by getDefaultLessonMode().

◆ $localization

string ilObjSAHSLearningModule::$localization = ""
protected

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

Referenced by getLocalization().

◆ $mastery_score

int ilObjSAHSLearningModule::$mastery_score = null
private

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

Referenced by getMasteryScore().

◆ $mastery_score_values

string ilObjSAHSLearningModule::$mastery_score_values = ""
protected

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

Referenced by getMasteryScoreValues().

◆ $max_attempt

int ilObjSAHSLearningModule::$max_attempt = 0
private

Definition at line 39 of file class.ilObjSAHSLearningModule.php.

Referenced by getMaxAttempt().

◆ $module_version

int ilObjSAHSLearningModule::$module_version = 1
private

Definition at line 40 of file class.ilObjSAHSLearningModule.php.

Referenced by getModuleVersion().

◆ $name_setting

int ilObjSAHSLearningModule::$name_setting = 0
private

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

Referenced by getNameSetting().

◆ $no_menu

bool ilObjSAHSLearningModule::$no_menu = false
private

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

Referenced by getNoMenu().

◆ $objectives

bool ilObjSAHSLearningModule::$objectives = true
private

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

Referenced by getObjectives().

◆ $open_mode

int ilObjSAHSLearningModule::$open_mode = 0
private

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

Referenced by getOpenMode().

◆ $sequencing

bool ilObjSAHSLearningModule::$sequencing = false
protected

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

Referenced by getSequencing().

◆ $session

bool ilObjSAHSLearningModule::$session = false
private

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

Referenced by getSession().

◆ $style_id

int ilObjSAHSLearningModule::$style_id = 0
private

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

Referenced by getStyleSheetId().

◆ $sub_type

string ilObjSAHSLearningModule::$sub_type = 'scorm'
private

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

Referenced by getSubType().

◆ $time_from_lms

bool ilObjSAHSLearningModule::$time_from_lms = false
private

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

Referenced by getTime_from_lms().

◆ $tries

int ilObjSAHSLearningModule::$tries = 0
protected

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

Referenced by getTries().

◆ $width

int ilObjSAHSLearningModule::$width = 950
private

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

Referenced by getViewButton(), and getWidth().


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