ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjSAHSLearningModule Class Reference

Class ilObjSCORMLearningModule. More...

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

Public Member Functions

 __construct ($a_id=0, $a_call_by_reference=true)
 Constructor public. More...
 
 create ($upload=false)
 create file based lm More...
 
 read ()
 read object More...
 
 setEditable ($a_editable)
 Set Editable. More...
 
 getEditable ()
 Get Editable. More...
 
 setTries ($a_tries)
 Set default tries for questions. More...
 
 getTries ()
 Get Tries. More...
 
 setLocalization ($a_val)
 Set localization. More...
 
 getLocalization ()
 Get localization. More...
 
 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 ($mode="filesystem")
 get data directory of lm More...
 
 getAPIAdapterName ()
 get api adapter name More...
 
 setAPIAdapterName ($a_api)
 set api adapter name More...
 
 getAPIFunctionsPrefix ()
 get api functions prefix More...
 
 setAPIFunctionsPrefix ($a_prefix)
 set api functions prefix More...
 
 getCreditMode ()
 get credit mode More...
 
 setCreditMode ($a_credit_mode)
 set credit mode More...
 
 setDefaultLessonMode ($a_lesson_mode)
 set default lesson mode More...
 
 getDefaultLessonMode ()
 get default lesson mode More...
 
 getStyleSheetId ()
 get ID of assigned style sheet object More...
 
 setStyleSheetId ($a_style_id)
 set ID of assigned style sheet object More...
 
 setAutoReview ($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 ($a_auto_review)
 set auto review as Char for SCORM 2004 More...
 
 getAutoReviewChar ()
 get auto review as Char for SCORM 2004 More...
 
 getMaxAttempt ()
 get max attempt More...
 
 setMaxAttempt ($a_max_attempt)
 set max attempt More...
 
 getModuleVersion ()
 get module version More...
 
 getAssignedGlossary ()
 get assigned glossary More...
 
 setAssignedGlossary ($a_assigned_glossary)
 set assigned glossary More...
 
 setModuleVersion ($a_module_version)
 set max attempt More...
 
 getSession ()
 get session setting More...
 
 setSession ($a_session)
 set session setting More...
 
 getNoMenu ()
 disable menu More...
 
 setNoMenu ($a_no_menu)
 disable menu More...
 
 getHideNavig ()
 hide navigation tree More...
 
 setHideNavig ($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 iframesor frames and IE >=10 More...
 
 setIe_force_render ($a_ie_force_render)
 
 getFourth_Edition ()
 SCORM 2004 4th edition features. More...
 
 setFourth_edition ($a_fourth_edition)
 
 getSequencing ()
 sequencing More...
 
 setSequencing ($a_sequencing)
 
 getInteractions ()
 interactions More...
 
 setInteractions ($a_interactions)
 
 getObjectives ()
 objectives More...
 
 setObjectives ($a_objectives)
 
 getComments ()
 comments More...
 
 setComments ($a_comments)
 
 getTime_from_lms ()
 time_from_lms More...
 
 setTime_from_lms ($a_time_from_lms)
 
 getCheck_values ()
 check_values More...
 
 setCheck_values ($a_check_values)
 
 getOfflineMode ()
 offlineMode More...
 
 setOfflineMode ($a_offline_mode)
 
 getDebug ()
 debug More...
 
 setDebug ($a_debug)
 debug More...
 
 getDebugPw ()
 debug pw More...
 
 setDebugPw ($a_debug_pw)
 debug pw More...
 
 setAutoContinue ($a_auto_continue)
 get auto continue More...
 
 getAutoContinue ()
 set auto continue More...
 
 getAuto_last_visited ()
 auto_last_visited More...
 
 setAuto_last_visited ($a_auto_last_visited)
 
 setSequencingExpertMode ($a_val)
 Set sequencing expert mode. More...
 
 getSequencingExpertMode ()
 Get sequencing expert mode. More...
 
 setAutoSuspend ($a_auto_suspend)
 get auto continue More...
 
 getAutoSuspend ()
 set auto continue More...
 
 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 ($a_open_mode)
 
 getWidth ()
 width More...
 
 setWidth ($a_width)
 
 getHeight ()
 height More...
 
 setHeight ($a_height)
 
 getMasteryScore ()
 get mastery_score More...
 
 setMasteryScore ($a_mastery_score)
 set mastery_score More...
 
 checkMasteryScoreValues ()
 check mastery_score / min_normalized_measure of SCOs (SCORM 1.2) / objectives (SCORM 2004) More...
 
 getMasteryScoreValues ()
 get mastery_score_values More...
 
 getIdSetting ()
 update values for mastery_score / min_normalized_measure in database - not requested More...
 
 setIdSetting ($a_id_setting)
 set id_setting More...
 
 getNameSetting ()
 get name_setting More...
 
 setNameSetting ($a_name_setting)
 set name_setting More...
 
 update ()
 update object data More...
 
 setSubType ($a_sub_type)
 get sub type More...
 
 getSubType ()
 set sub type More...
 
 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 ($a_dir, $a_filename="")
 Populate by directory. More...
 
 zipLmForOfflineMode ()
 
 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 ($a_id=0, $a_reference=true)
 Constructor public. More...
 
 withReferences ()
 determines wehter objects are referenced or not (got ref ids or not) More...
 
 read ()
 read object data from db into object More...
 
 getId ()
 get object id public More...
 
 setId ($a_id)
 set object id public More...
 
 setRefId ($a_id)
 set reference id public More...
 
 getRefId ()
 get reference id public More...
 
 getType ()
 get object type public More...
 
 setType ($a_type)
 set object type public More...
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 get object title public More...
 
 getUntranslatedTitle ()
 get untranslated object title public More...
 
 setTitle ($a_title)
 set object title More...
 
 getDescription ()
 get object description More...
 
 setDescription ($a_desc)
 set object description More...
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 get import id More...
 
 setImportId ($a_import_id)
 set import id More...
 
 setOfflineStatus ($a_status)
 Set offline status. More...
 
 getOfflineStatus ()
 Get offline status. More...
 
 supportsOfflineHandling ()
 Check whether object supports offline handling. More...
 
 getOwner ()
 get object owner More...
 
 getOwnerName ()
 
 setOwner ($a_owner)
 set object owner More...
 
 getCreateDate ()
 get create date public More...
 
 getLastUpdateDate ()
 get last update date public More...
 
 getDiskUsage ()
 Gets the disk usage of the object in bytes. More...
 
 create ()
 create More...
 
 update ()
 update object in db More...
 
 MDUpdateListener ($a_element)
 Meta data update listener. More...
 
 createMetaData ()
 create meta data entry More...
 
 updateMetaData ()
 update meta data entry More...
 
 deleteMetaData ()
 delete meta data entry More...
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree ($a_parent_ref)
 maybe this method should be in tree object!? More...
 
 setPermissions ($a_parent_ref)
 set permissions of object More...
 
 setParentRolePermissions ($a_parent_ref)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 count references of object 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 If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More...
 
 applyDidacticTemplate ($a_tpl_id)
 Apply template. More...
 
 setRegisterMode ($a_bool)
 
 isUserRegistered ($a_user_id=0)
 
 requireRegistration ()
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo ($a_target_id, $a_copy_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone object dependencies. More...
 
 cloneMetaData ($target_obj)
 Copy meta data. More...
 
 getPossibleSubObjects ($a_filter=true)
 get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static getAffectiveLocalization ($a_id)
 Get affective localization. More...
 
static _lookupSubType ($a_obj_id)
 lookup subtype id (scorm, ) More...
 
static _getTries ($a_id)
 
static getScormModulesForGlossary ($a_glo_id)
 Get SCORM modules that assign a certain glossary. More...
 
static lookupAssignedGlossary ($a_slm_id)
 Get SCORM modules that assign a certain glossary. More...
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId ($a_import_id)
 
static _lookupImportId ($a_obj_id)
 
static _lookupOwnerName ($a_owner_id)
 lookup owner name for owner id More...
 
static _getIdForImportId ($a_import_id)
 get current object id for import id (static) More...
 
static _getAllReferences ($a_id)
 get all reference ids of object More...
 
static _lookupTitle ($a_id)
 lookup object title More...
 
static lookupOfflineStatus ($a_obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner ($a_id)
 lookup object owner More...
 
static _getIdsForTitle ($title, $type='', $partialmatch=false)
 
static _lookupDescription ($a_id)
 lookup object description More...
 
static _lookupLastUpdate ($a_id, $a_as_string=false)
 lookup last update More...
 
static _getLastUpdateOfObjects ($a_objs)
 Get last update for a set of media objects. More...
 
static _lookupObjId ($a_id)
 
static _setDeletedDate ($a_ref_id)
 only called in ilTree::saveSubTree More...
 
static setDeletedDates ($a_ref_ids)
 Set deleted date. More...
 
static _resetDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
static _lookupDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
static _writeTitle ($a_obj_id, $a_title)
 write title to db (static) More...
 
static _writeDescription ($a_obj_id, $a_desc)
 write description to db (static) More...
 
static _writeImportId ($a_obj_id, $a_import_id)
 write import id to db (static) More...
 
static _lookupType ($a_id, $a_reference=false)
 lookup object type More...
 
static _isInTrash ($a_ref_id)
 checks wether object is in trash More...
 
static _hasUntrashedReference ($a_obj_id)
 checks wether an object has at least one reference that is not in trash More...
 
static _lookupObjectId ($a_ref_id)
 lookup object id More...
 
static _getObjectsDataForType ($a_type, $a_omit_trash=false)
 get all objects of a certain type More...
 
static _exists ($a_id, $a_reference=false, $a_type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType ($a_obj_type="", $a_owner="")
 Get objects by type. More...
 
static _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true)
 Prepare copy wizard object selection. More...
 
static collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies ($a_obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $a_obj_ids)
 Get long description data. More...
 
static getAllOwnedRepositoryObjects ($a_user_id)
 Get all ids of objects user owns. More...
 
static fixMissingTitles ($a_type, array &$a_obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate ($a_id)
 Lookup creation date. More...
 
static hasAutoRating ($a_type, $a_ref_id)
 Check if auto rating is active for parent group/course. More...
 

Data Fields

 $validator
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 max length of object title More...
 
const DESC_LENGTH = 128
 
 $lng
 
 $id
 
 $ref_id
 
 $type
 
 $title
 
 $untranslatedTitle
 
 $desc
 
 $long_desc
 
 $owner
 
 $create_date
 
 $last_update
 
 $import_id
 
 $register = false
 
 $referenced
 
 $objectList
 
 $max_title
 
 $max_desc
 
 $add_dots
 

Additional Inherited Members

- Protected Attributes inherited from ilObject
 $objDefinition
 
 $db
 
 $log
 
 $error
 
 $tree
 
 $app_event_handler
 
 $rbacadmin
 
 $rbacreview
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Constructor public.

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

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

32  {
33  $this->type = "sahs";
34  parent::__construct($a_id, $a_call_by_reference);
35  }

Member Function Documentation

◆ _getTries()

static ilObjSAHSLearningModule::_getTries (   $a_id)
static

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

References $DIC, $ilDB, and $lm_set.

Referenced by ilPCQuestionGUI\edit().

231  {
232  global $DIC;
233  $ilDB = $DIC['ilDB'];
234 
235  $lm_set = $ilDB->queryF(
236  'SELECT question_tries FROM sahs_lm WHERE id = %s',
237  array('integer'),
238  array($a_id)
239  );
240  $lm_rec = $ilDB->fetchAssoc($lm_set);
241 
242  return $lm_rec['question_tries'];
243  }
global $DIC
Definition: saml.php:7
$lm_set
global $ilDB
+ Here is the caller graph for this function:

◆ _lookupSubType()

static ilObjSAHSLearningModule::_lookupSubType (   $a_obj_id)
static

◆ checkMasteryScoreValues()

ilObjSAHSLearningModule::checkMasteryScoreValues ( )

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

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

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

810  {
811  global $DIC;
812  $ilDB = $DIC['ilDB'];
813  $s_result = "";
814  $a_result = array();
815  $type = $this->_lookupSubType($this->getID());
816 
817  if ($type == "scorm2004") {
818  $set = $ilDB->query("SELECT minnormalmeasure FROM cp_objective, cp_node" .
819  " WHERE satisfiedbymeasure=1 AND minnormalmeasure is not null AND cp_objective.cp_node_id=cp_node.cp_node_id AND" .
820  " slm_id = " . $ilDB->quote($this->getID(), "integer"));
821  while ($rec = $ilDB->fetchAssoc($set)) {
822  $tmpval = $rec["minnormalmeasure"] * 100;
823  if (!in_array($tmpval, $a_result)) {
824  $a_result[] = $tmpval;
825  }
826  }
827  } else {
828  $set = $ilDB->query("SELECT masteryscore FROM sc_item,scorm_object" .
829  " WHERE sc_item.masteryscore is not null AND sc_item.obj_id=scorm_object.obj_id AND" .
830  " slm_id = " . $ilDB->quote($this->getID(), "integer"));
831  while ($rec = $ilDB->fetchAssoc($set)) {
832  if (!in_array($rec["masteryscore"], $a_result)) {
833  $a_result[] = $rec["masteryscore"];
834  }
835  }
836  }
837  $s_result = implode(", ", $a_result);
838  $this->mastery_score_values = $s_result;
839  }
global $DIC
Definition: saml.php:7
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
global $ilDB
+ Here is the call graph for this function:

◆ create()

ilObjSAHSLearningModule::create (   $upload = false)

create file based lm

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

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

41  {
42  global $DIC;
43  $ilDB = $DIC['ilDB'];
44 
45  parent::create();
46  if (!$upload) {
47  $this->createMetaData();
48  }
49 
50  $this->createDataDirectory();
51  $ilDB->manipulateF(
52  '
53  INSERT INTO sahs_lm (id, api_adapter, c_type, editable, seq_exp_mode,localization)
54  VALUES (%s,%s,%s,%s,%s,%s)',
55  array('integer', 'text', 'text', 'integer','integer','text'),
56  array($this->getId(),'API', $this->getSubType(),(int) $this->getEditable(),
57  (int) $this->getSequencingExpertMode(), $this->getLocalization()
58  )
59  );
60  }
getSequencingExpertMode()
Get sequencing expert mode.
global $DIC
Definition: saml.php:7
createMetaData()
create meta data entry
createDataDirectory()
creates data directory for package files ("./data/lm_data/lm_<id>")
getId()
get object id public
global $ilDB
+ 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 261 of file class.ilObjSAHSLearningModule.php.

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

Referenced by create().

262  {
263  $lm_data_dir = ilUtil::getWebspaceDir() . "/lm_data";
264  ilUtil::makeDir($lm_data_dir);
266  }
getDataDirectory($mode="filesystem")
get data directory of lm
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
static getWebspaceDir($mode="filesystem")
get webspace directory
+ 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

public

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

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

References $DIC, $ilDB, $ilLog, $res, $row, ilSCORMObject\_getInstance(), ilUtil\delDir(), ilObject\deleteMetaData(), getDataDirectory(), ilObject\getId(), and getSubType().

1157  {
1158  global $DIC;
1159  $ilDB = $DIC['ilDB'];
1160  $ilLog = $DIC['ilLog'];
1161 
1162  // always call parent delete function first!!
1163  if (!parent::delete()) {
1164  return false;
1165  }
1166 
1167  // delete meta data of scorm content object
1168  $this->deleteMetaData();
1169 
1170  // delete data directory
1171  ilUtil::delDir($this->getDataDirectory());
1172 
1173  // delete scorm learning module record
1174  $ilDB->manipulateF(
1175  'DELETE FROM sahs_lm WHERE id = %s',
1176  array('integer'),
1177  array($this->getId())
1178  );
1179 
1180  $ilLog->write("SAHS Delete(SAHSLM), Subtype: " . $this->getSubType());
1181 
1182  if ($this->getSubType() == "scorm") {
1183  // remove all scorm objects and scorm tree
1184  include_once("./Modules/ScormAicc/classes/SCORM/class.ilSCORMTree.php");
1185  include_once("./Modules/ScormAicc/classes/SCORM/class.ilSCORMObject.php");
1186  $sc_tree = new ilSCORMTree($this->getId());
1187  $r_id = $sc_tree->readRootId();
1188  if ($r_id > 0) {
1189  $items = $sc_tree->getSubTree($sc_tree->getNodeData($r_id));
1190  foreach ($items as $item) {
1191  $sc_object = ilSCORMObject::_getInstance($item["obj_id"], $this->getId());
1192  if (is_object($sc_object)) {
1193  $sc_object->delete();
1194  }
1195  }
1196  $sc_tree->removeTree($sc_tree->getTreeId());
1197  }
1198  }
1199 
1200  if ($this->getSubType() != "scorm") {
1201  // delete aicc data
1202  $res = $ilDB->queryF(
1203  '
1204  SELECT aicc_object.obj_id FROM aicc_object, aicc_units
1205  WHERE aicc_object.obj_id = aicc_units.obj_id
1206  AND aicc_object.slm_id = %s',
1207  array('integer'),
1208  array($this->getId())
1209  );
1210 
1211  while ($row = $ilDB->fetchAssoc($res)) {
1212  $obj_id = $row['obj_id'];
1213  $ilDB->manipulateF(
1214  '
1215  DELETE FROM aicc_units WHERE obj_id = %s',
1216  array('integer'),
1217  array($obj_id)
1218  );
1219  }
1220 
1221  $res = $ilDB->queryF(
1222  '
1223  SELECT aicc_object.obj_id FROM aicc_object, aicc_course
1224  WHERE aicc_object.obj_id = aicc_course.obj_id
1225  AND aicc_object.slm_id = %s',
1226  array('integer'),
1227  array($this->getId())
1228  );
1229 
1230  while ($row = $ilDB->fetchAssoc($res)) {
1231  $obj_id = $row['obj_id'];
1232  $ilDB->manipulateF(
1233  '
1234  DELETE FROM aicc_course WHERE obj_id = %s',
1235  array('integer'),
1236  array($obj_id)
1237  );
1238  }
1239 
1240  $ilDB->manipulateF(
1241  '
1242  DELETE FROM aicc_object WHERE slm_id = %s',
1243  array('integer'),
1244  array($this->getId())
1245  );
1246  }
1247 
1248  $q_log = "DELETE FROM scorm_tracking WHERE obj_id = " . $ilDB->quote($this->getId());
1249  $ilLog->write("SAHS Delete(SAHSLM): " . $q_log);
1250 
1251  $ilDB->manipulateF(
1252  'DELETE FROM scorm_tracking WHERE obj_id = %s',
1253  array('integer'),
1254  array($this->getId())
1255  );
1256 
1257  $q_log = "DELETE FROM sahs_user WHERE obj_id = " . $ilDB->quote($this->getId());
1258  $ilLog->write("SAHS Delete(SAHSLM): " . $q_log);
1259 
1260  $ilDB->manipulateF(
1261  'DELETE FROM sahs_user WHERE obj_id = %s',
1262  array('integer'),
1263  array($this->getId())
1264  );
1265 
1266  // always call parent delete function at the end!!
1267  return true;
1268  }
global $DIC
Definition: saml.php:7
getDataDirectory($mode="filesystem")
get data directory of lm
foreach($_POST as $key=> $value) $res
getId()
get object id public
SCORM Object Tree.
$row
global $ilDB
deleteMetaData()
delete meta data entry
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static & _getInstance($a_id, $a_slm_id)
get instance of specialized GUI class
+ Here is the call graph for this function:

◆ getAffectiveLocalization()

static ilObjSAHSLearningModule::getAffectiveLocalization (   $a_id)
static

Get affective localization.

Parameters
int$a_idscorm lm id

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

References $DIC, $ilDB, $lm_set, and ilObject\$lng.

Referenced by ilSCORM2004PageConfig\configureByObjectId(), ilSCORM2004Asset\exportHTMLPageObjects(), ilSCORM2004ScoGUI\getGloOverviewOv(), ilSCORM2004PageGUI\postOutputProcessing(), and ilSCORM2004ScoGUI\sco_preview().

131  {
132  global $DIC;
133  $ilDB = $DIC['ilDB'];
134  $lng = $DIC['lng'];
135 
136  $lm_set = $ilDB->queryF(
137  'SELECT localization FROM sahs_lm WHERE id = %s',
138  array('integer'),
139  array($a_id)
140  );
141  $lm_rec = $ilDB->fetchAssoc($lm_set);
142  $inst_lang = $lng->getInstalledLanguages();
143  if ($lm_rec["localization"] != "" && in_array($lm_rec["localization"], $inst_lang)) {
144  return $lm_rec["localization"];
145  }
146  return $lng->getLangKey();
147  }
global $DIC
Definition: saml.php:7
$lm_set
global $ilDB
+ Here is the caller graph for this function:

◆ getAPIAdapterName()

ilObjSAHSLearningModule::getAPIAdapterName ( )

get api adapter name

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

Referenced by populateByDirectoy(), and update().

283  {
284  return $this->api_adapter;
285  }
+ Here is the caller graph for this function:

◆ getAPIFunctionsPrefix()

ilObjSAHSLearningModule::getAPIFunctionsPrefix ( )

get api functions prefix

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

Referenced by populateByDirectoy(), and update().

299  {
300  return $this->api_func_prefix;
301  }
+ Here is the caller graph for this function:

◆ getApiStudentId()

ilObjSAHSLearningModule::getApiStudentId ( )

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

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

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

1466  {
1467  global $DIC;
1468  $ilias = $DIC['ilias'];
1469  $idSetting = $this->getIdSetting();
1470  $studentId = $ilias->account->getId();
1471  if ($idSetting % 2 == 1) {
1472  $studentId = $ilias->account->getLogin();
1473  }
1474  if ($idSetting > 3) {
1475  $studentId .= '_o_' . $this->getId();
1476  } elseif ($idSetting > 1) {
1477  $studentId .= '_r_' . $_GET["ref_id"];
1478  }
1479  return $studentId;
1480  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
getId()
get object id public
getIdSetting()
update values for mastery_score / min_normalized_measure in database - not requested ...
+ Here is the call 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 1486 of file class.ilObjSAHSLearningModule.php.

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

1487  {
1488  global $DIC;
1489  $ilias = $DIC['ilias'];
1490  $lng = $DIC['lng'];
1491  $studentName = " ";
1492  switch ($this->getNameSetting()) {
1493  case 0:
1494  $studentName = $ilias->account->getLastname() . ', ' . $ilias->account->getFirstname();
1495  break;
1496  case 1:
1497  $studentName = $ilias->account->getFirstname() . ' ' . $ilias->account->getLastname();
1498  break;
1499  case 2:
1500  $studentName = $ilias->account->getFullname();
1501  break;
1502  case 3:
1503  switch ($ilias->account->getGender()) {
1504  case 'f':
1505  $studentName = $lng->txt('salutation_f') . ' ';
1506  break;
1507 
1508  case 'm':
1509  $studentName = $lng->txt('salutation_m') . ' ';
1510  break;
1511 
1512  case 'n':
1513  $studentName = '';//$lng->txt('salutation_n');
1514  break;
1515 
1516  default:
1517  $studentName = $lng->txt('salutation') . ' ';
1518  }
1519  $studentName .= $ilias->account->getLastname();
1520  break;
1521  case 4:
1522  $studentName = $ilias->account->getFirstname();
1523  break;
1524  }
1525  return $studentName;
1526  }
global $DIC
Definition: saml.php:7
+ Here is the call graph for this function:

◆ getAssignedGlossary()

ilObjSAHSLearningModule::getAssignedGlossary ( )

get assigned glossary

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

Referenced by ilObjSCORM2004LearningModule\exportHTMLScoObjects(), ilObjSCORM2004LearningModule\exportPDF(), ilObjSCORM2004LearningModule\exportScorm(), populateByDirectoy(), and update().

422  {
423  return $this->assigned_glossary;
424  }
+ Here is the caller graph for this function:

◆ getAuto_last_visited()

ilObjSAHSLearningModule::getAuto_last_visited ( )

auto_last_visited

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

Referenced by populateByDirectoy(), and update().

700  {
701  return $this->auto_last_visited;
702  }
+ Here is the caller graph for this function:

◆ getAutoContinue()

ilObjSAHSLearningModule::getAutoContinue ( )

set auto continue

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

Referenced by populateByDirectoy(), and update().

692  {
693  return $this->auto_continue;
694  }
+ Here is the caller graph for this function:

◆ getAutoReview()

ilObjSAHSLearningModule::getAutoReview ( )

get auto review as true/false for SCORM 1.2

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

References ilUtil\yn2tf().

374  {
375  return ilUtil::yn2tf($this->auto_review);
376  }
static yn2tf($a_yn)
convert "y"/"n" to true/false
+ Here is the call graph for this function:

◆ getAutoReviewChar()

ilObjSAHSLearningModule::getAutoReviewChar ( )

get auto review as Char for SCORM 2004

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

Referenced by populateByDirectoy(), and update().

389  {
390  return $this->auto_review;
391  }
+ Here is the caller graph for this function:

◆ getAutoSuspend()

ilObjSAHSLearningModule::getAutoSuspend ( )

set auto continue

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

Referenced by populateByDirectoy(), and update().

741  {
742  return $this->auto_suspend;
743  }
+ Here is the caller graph for this function:

◆ getCacheDeactivated()

ilObjSAHSLearningModule::getCacheDeactivated ( )

BrowserCacheDisabled for SCORM 2004 / ENABLE_JS_DEBUG.

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

References $DIC, $ilSetting, and $lm_set.

493  {
494  global $DIC;
495  $ilSetting = $DIC['ilSetting'];
496  $lm_set = new ilSetting("lm");
497  if ($lm_set->get("scormdebug_disable_cache") == "1") {
498  return true;
499  }
500  return false;
501  }
global $DIC
Definition: saml.php:7
$lm_set
global $ilSetting
Definition: privfeed.php:17

◆ getCheck_values()

ilObjSAHSLearningModule::getCheck_values ( )

check_values

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

Referenced by populateByDirectoy(), and update().

626  {
627  return $this->check_values;
628  }
+ Here is the caller graph for this function:

◆ getComments()

ilObjSAHSLearningModule::getComments ( )

comments

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

Referenced by populateByDirectoy(), and update().

600  {
601  return $this->comments;
602  }
+ Here is the caller graph for this function:

◆ getCreditMode()

ilObjSAHSLearningModule::getCreditMode ( )

get credit mode

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

Referenced by populateByDirectoy(), and update().

315  {
316  return $this->credit_mode;
317  }
+ Here is the caller graph for this function:

◆ getDataDirectory()

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

get data directory of lm

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

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

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

272  {
273  $lm_data_dir = ilUtil::getWebspaceDir($mode) . "/lm_data";
274  $lm_dir = $lm_data_dir . "/lm_" . $this->getId();
275 
276  return $lm_dir;
277  }
getId()
get object id public
static getWebspaceDir($mode="filesystem")
get webspace directory
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDebug()

ilObjSAHSLearningModule::getDebug ( )

debug

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

References Sabre\VObject\$debug.

Referenced by populateByDirectoy(), and update().

653  {
654  return $this->debug;
655  }
+ Here is the caller graph for this function:

◆ getDebugActivated()

ilObjSAHSLearningModule::getDebugActivated ( )

debugActivated

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

References $DIC, $ilSetting, and $lm_set.

521  {
522  global $DIC;
523  $ilSetting = $DIC['ilSetting'];
524  $lm_set = new ilSetting("lm");
525  if ($lm_set->get("scormdebug_global_activate") == "1") {
526  return true;
527  }
528  return false;
529  }
global $DIC
Definition: saml.php:7
$lm_set
global $ilSetting
Definition: privfeed.php:17

◆ getDebugPw()

ilObjSAHSLearningModule::getDebugPw ( )

debug pw

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

Referenced by populateByDirectoy(), and update().

669  {
670  return $this->debug_pw;
671  }
+ Here is the caller graph for this function:

◆ getDefaultLessonMode()

ilObjSAHSLearningModule::getDefaultLessonMode ( )

get default lesson mode

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

References $DIC, and ilObject\getId().

Referenced by populateByDirectoy(), and update().

339  {
340  global $DIC;
341  if ($DIC['ilUser']->getId() == 13) {
342  return "browse";
343  }
344  return $this->lesson_mode;
345  }
global $DIC
Definition: saml.php:7
getId()
get object id public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDiskUsage()

ilObjSAHSLearningModule::getDiskUsage ( )

Gets the disk usage of the object in bytes.

public

Returns
integer the disk usage in bytes

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

References ilObjSAHSLearningModuleAccess\_lookupDiskUsage().

251  {
252  require_once("./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php");
254  }
static _lookupDiskUsage($a_id)
Returns the number of bytes used on the harddisk by the learning module with the specified object id...
+ Here is the call graph for this function:

◆ getEditable()

ilObjSAHSLearningModule::getEditable ( )

Get Editable.

Returns
boolean Editable

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

Referenced by create(), populateByDirectoy(), ilObjSCORM2004LearningModule\readObject(), and update().

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

◆ getFourth_Edition()

ilObjSAHSLearningModule::getFourth_Edition ( )

SCORM 2004 4th edition features.

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

548  {
549  return $this->fourth_edition;
550  }

◆ getHeight()

ilObjSAHSLearningModule::getHeight ( )

height

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

Referenced by getViewButton(), populateByDirectoy(), and update().

781  {
782  return $this->height;
783  }
+ Here is the caller graph for this function:

◆ getHideNavig()

ilObjSAHSLearningModule::getHideNavig ( )

hide navigation tree

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

Referenced by populateByDirectoy(), and update().

477  {
478  return $this->hide_navig;
479  }
+ Here is the caller graph for this function:

◆ getIdSetting()

ilObjSAHSLearningModule::getIdSetting ( )

update values for mastery_score / min_normalized_measure in database - not requested

update meta data only get id_setting

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

Referenced by getApiStudentId(), and update().

912  {
913  return $this->id_setting;
914  }
+ 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 iframesor frames and IE >=10

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

Referenced by populateByDirectoy(), and update().

535  {
536  return $this->ie_force_render;
537  }
+ Here is the caller graph for this function:

◆ getInteractions()

ilObjSAHSLearningModule::getInteractions ( )

interactions

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

Referenced by populateByDirectoy(), and update().

574  {
575  return $this->interactions;
576  }
+ Here is the caller graph for this function:

◆ getLocalization()

ilObjSAHSLearningModule::getLocalization ( )

Get localization.

Returns
string localization

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

Referenced by create(), populateByDirectoy(), and update().

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

◆ getMasteryScore()

ilObjSAHSLearningModule::getMasteryScore ( )

get mastery_score

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

Referenced by update().

794  {
795  return $this->mastery_score;
796  }
+ Here is the caller graph for this function:

◆ getMasteryScoreValues()

ilObjSAHSLearningModule::getMasteryScoreValues ( )

get mastery_score_values

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

845  {
846  return $this->mastery_score_values;
847  }

◆ getMaxAttempt()

ilObjSAHSLearningModule::getMaxAttempt ( )

get max attempt

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

Referenced by populateByDirectoy(), and update().

397  {
398  return $this->max_attempt;
399  }
+ 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.

public

Returns
float

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

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

1302  {
1303  global $DIC;
1304  $ilUser = $DIC['ilUser'];
1305 
1306  if (strcmp($this->getSubType(), 'scorm2004') == 0) {
1308  return $res;
1309  } else {
1310  return null;
1311  }
1312  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
getId()
get object id public
$ilUser
Definition: imgupload.php:18
static _getMaxScoreForUser($a_id, $a_user)
Returns score.max for the learning module, refered to the last sco where score.max is set...
+ Here is the call graph for this function:

◆ getModuleVersion()

ilObjSAHSLearningModule::getModuleVersion ( )

get module version

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

Referenced by populateByDirectoy(), and update().

414  {
415  return $this->module_version;
416  }
+ Here is the caller graph for this function:

◆ getNameSetting()

ilObjSAHSLearningModule::getNameSetting ( )

get name_setting

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

Referenced by getApiStudentName(), and update().

928  {
929  return $this->name_setting;
930  }
+ Here is the caller graph for this function:

◆ getNoMenu()

ilObjSAHSLearningModule::getNoMenu ( )

disable menu

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

Referenced by populateByDirectoy(), and update().

461  {
462  return $this->no_menu;
463  }
+ Here is the caller graph for this function:

◆ getObjectives()

ilObjSAHSLearningModule::getObjectives ( )

objectives

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

Referenced by populateByDirectoy(), and update().

587  {
588  return $this->objectives;
589  }
+ Here is the caller graph for this function:

◆ getOfflineMode()

ilObjSAHSLearningModule::getOfflineMode ( )

offlineMode

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

Referenced by populateByDirectoy(), and update().

639  {
640  return $this->offline_mode;
641  }
+ 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 756 of file class.ilObjSAHSLearningModule.php.

Referenced by getViewButton(), populateByDirectoy(), and update().

757  {
758  return $this->open_mode;
759  }
+ 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 1275 of file class.ilObjSAHSLearningModule.php.

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

1276  {
1277  global $DIC;
1278  $ilUser = $DIC['ilUser'];
1279  if (strcmp($this->getSubType(), "scorm2004") == 0) {
1281  if (!is_null($res)) {
1282  return $res * 100.0;
1283  } else {
1284  return $res;
1285  }
1286  } else {
1287  return null;
1288  }
1289  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
getId()
get object id public
static _getUniqueScaledScoreForUser($a_id, $a_user)
Get the Unique Scaled Score of a course Conditions: Only one SCO may set cmi.score.scaled.
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

◆ getScormModulesForGlossary()

static ilObjSAHSLearningModule::getScormModulesForGlossary (   $a_glo_id)
static

Get SCORM modules that assign a certain glossary.

Parameters

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

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

Referenced by ilObjGlossaryGUI\addUsagesToInfo(), and ilObjGlossary\getDeletionDependencies().

1092  {
1093  global $DIC;
1094  $ilDB = $DIC['ilDB'];
1095 
1096  $set = $ilDB->query("SELECT DISTINCT id FROM sahs_lm WHERE " .
1097  " glossary = " . $ilDB->quote($a_glo_id, "integer"));
1098  $sms = array();
1099  while ($rec = $ilDB->fetchAssoc($set)) {
1100  if (ilObject::_hasUntrashedReference($rec["id"])) {
1101  $sms[] = $rec["id"];
1102  }
1103  }
1104  return $sms;
1105  }
static _hasUntrashedReference($a_obj_id)
checks wether an object has at least one reference that is not in trash
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSequencing()

ilObjSAHSLearningModule::getSequencing ( )

sequencing

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

Referenced by populateByDirectoy(), and update().

561  {
562  return $this->sequencing;
563  }
+ Here is the caller graph for this function:

◆ getSequencingExpertMode()

ilObjSAHSLearningModule::getSequencingExpertMode ( )

Get sequencing expert mode.

Returns
boolean sequencing expert mode

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

Referenced by create(), populateByDirectoy(), and update().

726  {
727  return $this->seq_exp_mode;
728  }
+ Here is the caller graph for this function:

◆ getSession()

ilObjSAHSLearningModule::getSession ( )

get session setting

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

References $session.

Referenced by populateByDirectoy(), and update().

445  {
446  return $this->session;
447  }
$session
+ Here is the caller graph for this function:

◆ getSessionDeactivated()

ilObjSAHSLearningModule::getSessionDeactivated ( )

sessionDisabled for SCORM 2004

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

References $DIC, $ilSetting, and $lm_set.

507  {
508  global $DIC;
509  $ilSetting = $DIC['ilSetting'];
510  $lm_set = new ilSetting("lm");
511  if ($lm_set->get("scorm_without_session") == "1") {
512  return true;
513  }
514  return false;
515  }
global $DIC
Definition: saml.php:7
$lm_set
global $ilSetting
Definition: privfeed.php:17

◆ getStyleSheetId()

ilObjSAHSLearningModule::getStyleSheetId ( )

get ID of assigned style sheet object

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

Referenced by ilObjSCORM2004LearningModule\copyAuthoredContent(), populateByDirectoy(), ilObjSCORM2004LearningModule\prepareHTMLExporter(), read(), and update().

350  {
351  return $this->style_id;
352  }
+ Here is the caller graph for this function:

◆ getSubType()

ilObjSAHSLearningModule::getSubType ( )

set sub type

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

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

1141  {
1142  return $this->sub_type;
1143  }
+ Here is the caller graph for this function:

◆ getTime_from_lms()

ilObjSAHSLearningModule::getTime_from_lms ( )

time_from_lms

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

Referenced by populateByDirectoy(), and update().

613  {
614  return $this->time_from_lms;
615  }
+ Here is the caller graph for this function:

◆ getTries()

ilObjSAHSLearningModule::getTries ( )

Get Tries.

Returns
boolean tries

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

Referenced by populateByDirectoy(), and update().

206  {
207  return $this->tries;
208  }
+ Here is the caller graph for this function:

◆ getViewButton()

ilObjSAHSLearningModule::getViewButton ( )

get button for view

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

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

1532  {
1533  $setUrl = "ilias.php?baseClass=ilSAHSPresentationGUI&amp;ref_id=" . $this->getRefID();
1534  // $setUrl = $this->getLinkTargetByClass("ilsahspresentationgui", "")."&amp;ref_id=".$this->getRefID();
1535  $setTarget = "ilContObj" . $this->getId();
1536  $om = $this->getOpenMode();
1537  $width = $this->getWidth();
1538  $height = $this->getHeight();
1539  if (($om == 5 || $om == 1) && $width > 0 && $height > 0) {
1540  $om++;
1541  }
1542  if ($om != 0) {
1543  $setUrl = "javascript:void(0); onclick=startSAHS('" . $setUrl . "','ilContObj" . $this->getId() . "'," . $om . "," . $width . "," . $height . ");";
1544  $setTarget = "";
1545  }
1546  include_once "Services/UIComponent/Button/classes/class.ilLinkButton.php";
1547  $button = ilLinkButton::getInstance();
1548  $button->setCaption("view");
1549  $button->setPrimary(true);
1550  $button->setUrl($setUrl);
1551  $button->setTarget($setTarget);
1552  return $button;
1553  }
getId()
get object id public
getOpenMode()
open_mode 0: in Tab/new Window like in previous versions 1: in iFrame with width=100% and heigth=100%...
+ Here is the call graph for this function:

◆ getWidth()

ilObjSAHSLearningModule::getWidth ( )

width

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

Referenced by getViewButton(), populateByDirectoy(), and update().

769  {
770  return $this->width;
771  }
+ Here is the caller graph for this function:

◆ lookupAssignedGlossary()

static ilObjSAHSLearningModule::lookupAssignedGlossary (   $a_slm_id)
static

Get SCORM modules that assign a certain glossary.

Parameters

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

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

Referenced by ilSCORM2004PageConfig\configureByObjectId().

1114  {
1115  global $DIC;
1116  $ilDB = $DIC['ilDB'];
1117 
1118  $set = $ilDB->query("SELECT DISTINCT glossary FROM sahs_lm WHERE " .
1119  " id = " . $ilDB->quote($a_slm_id, "integer"));
1120  $rec = $ilDB->fetchAssoc($set);
1121  $glo_id = $rec["glossary"];
1122  if (ilObject::_lookupType($glo_id) == "glo") {
1123  return $glo_id;
1124  }
1125  return 0;
1126  }
global $DIC
Definition: saml.php:7
static _lookupType($a_id, $a_reference=false)
lookup object type
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateByDirectoy()

ilObjSAHSLearningModule::populateByDirectoy (   $a_dir,
  $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.

Parameters

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

References $DIC, $ilDB, $ilUser, ilObject\$lng, ilCopyWizardOptions\_getInstance(), ilObject\cloneMetaData(), getAPIAdapterName(), getAPIFunctionsPrefix(), getAssignedGlossary(), getAuto_last_visited(), getAutoContinue(), getAutoReviewChar(), getAutoSuspend(), getCheck_values(), getComments(), getCreditMode(), getDataDirectory(), getDebug(), getDebugPw(), getDefaultLessonMode(), ilObject\getDescription(), getEditable(), getHeight(), getHideNavig(), ilObject\getId(), getIe_force_render(), ilObjectLP\getInstance(), getInteractions(), getLocalization(), getMaxAttempt(), getModuleVersion(), getNoMenu(), getObjectives(), getOfflineMode(), ilObject\getOfflineStatus(), getOpenMode(), ilObject\getRefId(), getSequencing(), getSequencingExpertMode(), getSession(), getStyleSheetId(), getSubType(), getTime_from_lms(), getTries(), getWidth(), populateByDirectoy(), ilUtil\rCopy(), and ilUtil\renameExecutables().

Referenced by populateByDirectoy().

1324  {
1325  /*preg_match("/.*sahs_([0-9]*)\.zip/", $a_filename, $match);
1326  if (is_dir($a_dir."/sahs_".$match[1]))
1327  {
1328  $a_dir = $a_dir."/sahs_".$match[1];
1329  }*/
1330  ilUtil::rCopy($a_dir, $this->getDataDirectory());
1332  }
static rCopy($a_sdir, $a_tdir, $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
getDataDirectory($mode="filesystem")
get data directory of lm
static renameExecutables($a_dir)
Rename uploaded executables for security reasons.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ilObjSAHSLearningModule::read ( )

read object

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

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

66  {
67  global $DIC;
68  $ilDB = $DIC['ilDB'];
69 
70  parent::read();
71 
72  $lm_set = $ilDB->queryF(
73  'SELECT * FROM sahs_lm WHERE id = %s',
74  array('integer'),
75  array($this->getId())
76  );
77 
78  while ($lm_rec = $ilDB->fetchAssoc($lm_set)) {
79  $this->setAutoReviewChar($lm_rec["auto_review"]);
80  $this->setAPIAdapterName($lm_rec["api_adapter"]);
81  $this->setDefaultLessonMode($lm_rec["default_lesson_mode"]);
82  $this->setAPIFunctionsPrefix($lm_rec["api_func_prefix"]);
83  $this->setCreditMode($lm_rec["credit"]);
84  $this->setSubType($lm_rec["c_type"]);
85  $this->setEditable($lm_rec["editable"]);
86  $this->setStyleSheetId($lm_rec["stylesheet"]);
87  $this->setMaxAttempt($lm_rec["max_attempt"]);
88  $this->setModuleVersion($lm_rec["module_version"]);
89  $this->setAssignedGlossary($lm_rec["glossary"]);
90  $this->setTries($lm_rec["question_tries"]);
91  $this->setLocalization($lm_rec["localization"]);
92  $this->setSession(ilUtil::yn2tf($lm_rec["unlimited_session"]));
93  $this->setNoMenu(ilUtil::yn2tf($lm_rec["no_menu"]));
94  $this->setHideNavig(ilUtil::yn2tf($lm_rec["hide_navig"]));
95  $this->setFourth_edition(ilUtil::yn2tf($lm_rec["fourth_edition"]));
96  $this->setSequencing(ilUtil::yn2tf($lm_rec["sequencing"]));
97  $this->setInteractions(ilUtil::yn2tf($lm_rec["interactions"]));
98  $this->setObjectives(ilUtil::yn2tf($lm_rec["objectives"]));
99  $this->setComments(ilUtil::yn2tf($lm_rec["comments"]));
100  $this->setTime_from_lms(ilUtil::yn2tf($lm_rec["time_from_lms"]));
101  $this->setDebug(ilUtil::yn2tf($lm_rec["debug"]));
102  $this->setDebugPw($lm_rec["debugpw"]);
103  $this->setSequencingExpertMode($lm_rec["seq_exp_mode"]);
104  $this->setOpenMode($lm_rec["open_mode"]);
105  $this->setWidth($lm_rec["width"]);
106  $this->setHeight($lm_rec["height"]);
107  $this->setAutoContinue(ilUtil::yn2tf($lm_rec["auto_continue"]));
108  $this->setAuto_last_visited(ilUtil::yn2tf($lm_rec["auto_last_visited"]));
109  $this->setCheck_values(ilUtil::yn2tf($lm_rec["check_values"]));
110  $this->setOfflineMode(ilUtil::yn2tf($lm_rec["offline_mode"]));
111  $this->setAutoSuspend(ilUtil::yn2tf($lm_rec["auto_suspend"]));
112  $this->setIe_force_render(ilUtil::yn2tf($lm_rec["ie_force_render"]));
113  $this->setMasteryScore($lm_rec["mastery_score"]);
114  $this->setIdSetting($lm_rec["id_setting"]);
115  $this->setNameSetting($lm_rec["name_setting"]);
116 
117  include_once("./Services/Style/Content/classes/class.ilObjStyleSheet.php");
118  if (ilObject::_lookupType($this->getStyleSheetId()) != "sty") {
119  $this->setStyleSheetId(0);
120  }
121  }
122  }
getStyleSheetId()
get ID of assigned style sheet object
global $DIC
Definition: saml.php:7
setCreditMode($a_credit_mode)
set credit mode
setAPIFunctionsPrefix($a_prefix)
set api functions prefix
setSubType($a_sub_type)
get sub type
setAutoSuspend($a_auto_suspend)
get auto continue
setTries($a_tries)
Set default tries for questions.
setAutoReviewChar($a_auto_review)
set auto review as Char for SCORM 2004
setAutoContinue($a_auto_continue)
get auto continue
setIdSetting($a_id_setting)
set id_setting
setLocalization($a_val)
Set localization.
setStyleSheetId($a_style_id)
set ID of assigned style sheet object
getId()
get object id public
setAuto_last_visited($a_auto_last_visited)
setHideNavig($a_hide_navig)
disable menu
setMasteryScore($a_mastery_score)
set mastery_score
static _lookupType($a_id, $a_reference=false)
lookup object type
setSession($a_session)
set session setting
setSequencingExpertMode($a_val)
Set sequencing expert mode.
setNameSetting($a_name_setting)
set name_setting
$lm_set
setAPIAdapterName($a_api)
set api adapter name
global $ilDB
setEditable($a_editable)
Set Editable.
static yn2tf($a_yn)
convert "y"/"n" to true/false
setDefaultLessonMode($a_lesson_mode)
set default lesson mode
setAssignedGlossary($a_assigned_glossary)
set assigned glossary
setMaxAttempt($a_max_attempt)
set max attempt
setModuleVersion($a_module_version)
set max attempt
+ Here is the call graph for this function:

◆ setAPIAdapterName()

ilObjSAHSLearningModule::setAPIAdapterName (   $a_api)

set api adapter name

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

Referenced by read().

291  {
292  $this->api_adapter = $a_api;
293  }
+ Here is the caller graph for this function:

◆ setAPIFunctionsPrefix()

ilObjSAHSLearningModule::setAPIFunctionsPrefix (   $a_prefix)

set api functions prefix

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

Referenced by read().

307  {
308  $this->api_func_prefix = $a_prefix;
309  }
+ Here is the caller graph for this function:

◆ setAssignedGlossary()

ilObjSAHSLearningModule::setAssignedGlossary (   $a_assigned_glossary)

set assigned glossary

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

Referenced by read().

430  {
431  $this->assigned_glossary = $a_assigned_glossary;
432  }
+ Here is the caller graph for this function:

◆ setAuto_last_visited()

ilObjSAHSLearningModule::setAuto_last_visited (   $a_auto_last_visited)

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

Referenced by read().

705  {
706  $this->auto_last_visited = $a_auto_last_visited;
707  }
+ Here is the caller graph for this function:

◆ setAutoContinue()

ilObjSAHSLearningModule::setAutoContinue (   $a_auto_continue)

get auto continue

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

Referenced by read().

685  {
686  $this->auto_continue = $a_auto_continue;
687  }
+ Here is the caller graph for this function:

◆ setAutoReview()

ilObjSAHSLearningModule::setAutoReview (   $a_auto_review)

set auto review as true/false for SCORM 1.2

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

References ilUtil\tf2yn().

367  {
368  $this->auto_review = ilUtil::tf2yn($a_auto_review);
369  }
static tf2yn($a_tf)
convert true/false to "y"/"n"
+ Here is the call graph for this function:

◆ setAutoReviewChar()

ilObjSAHSLearningModule::setAutoReviewChar (   $a_auto_review)

set auto review as Char for SCORM 2004

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

Referenced by read().

382  {
383  $this->auto_review = $a_auto_review;
384  }
+ Here is the caller graph for this function:

◆ setAutoSuspend()

ilObjSAHSLearningModule::setAutoSuspend (   $a_auto_suspend)

get auto continue

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

Referenced by read().

734  {
735  $this->auto_suspend = $a_auto_suspend;
736  }
+ Here is the caller graph for this function:

◆ setCheck_values()

ilObjSAHSLearningModule::setCheck_values (   $a_check_values)

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

Referenced by read().

631  {
632  $this->check_values = $a_check_values;
633  }
+ Here is the caller graph for this function:

◆ setComments()

ilObjSAHSLearningModule::setComments (   $a_comments)

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

Referenced by read().

605  {
606  $this->comments = $a_comments;
607  }
+ Here is the caller graph for this function:

◆ setCreditMode()

ilObjSAHSLearningModule::setCreditMode (   $a_credit_mode)

set credit mode

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

Referenced by read().

323  {
324  $this->credit_mode = $a_credit_mode;
325  }
+ Here is the caller graph for this function:

◆ setDebug()

ilObjSAHSLearningModule::setDebug (   $a_debug)

debug

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

Referenced by read().

661  {
662  $this->debug = $a_debug;
663  }
+ Here is the caller graph for this function:

◆ setDebugPw()

ilObjSAHSLearningModule::setDebugPw (   $a_debug_pw)

debug pw

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

Referenced by read().

677  {
678  $this->debug_pw = $a_debug_pw;
679  }
+ Here is the caller graph for this function:

◆ setDefaultLessonMode()

ilObjSAHSLearningModule::setDefaultLessonMode (   $a_lesson_mode)

set default lesson mode

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

Referenced by read().

331  {
332  $this->lesson_mode = $a_lesson_mode;
333  }
+ Here is the caller graph for this function:

◆ setEditable()

ilObjSAHSLearningModule::setEditable (   $a_editable)

Set Editable.

Parameters
boolean$a_editableEditable

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

Referenced by read().

175  {
176  $this->editable = $a_editable;
177  }
+ Here is the caller graph for this function:

◆ setFourth_edition()

ilObjSAHSLearningModule::setFourth_edition (   $a_fourth_edition)

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

Referenced by read().

553  {
554  $this->fourth_edition = $a_fourth_edition;
555  }
+ Here is the caller graph for this function:

◆ setHeight()

ilObjSAHSLearningModule::setHeight (   $a_height)

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

Referenced by read().

785  {
786  $this->height = $a_height;
787  }
+ Here is the caller graph for this function:

◆ setHideNavig()

ilObjSAHSLearningModule::setHideNavig (   $a_hide_navig)

disable menu

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

Referenced by read().

485  {
486  $this->hide_navig = $a_hide_navig;
487  }
+ Here is the caller graph for this function:

◆ setIdSetting()

ilObjSAHSLearningModule::setIdSetting (   $a_id_setting)

set id_setting

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

Referenced by read().

920  {
921  $this->id_setting = $a_id_setting;
922  }
+ Here is the caller graph for this function:

◆ setIe_force_render()

ilObjSAHSLearningModule::setIe_force_render (   $a_ie_force_render)

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

Referenced by read().

540  {
541  $this->ie_force_render = $a_ie_force_render;
542  }
+ Here is the caller graph for this function:

◆ setInteractions()

ilObjSAHSLearningModule::setInteractions (   $a_interactions)

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

Referenced by read().

579  {
580  $this->interactions = $a_interactions;
581  }
+ Here is the caller graph for this function:

◆ setLocalization()

ilObjSAHSLearningModule::setLocalization (   $a_val)

Set localization.

Parameters
string$a_vallocalization

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

Referenced by read().

216  {
217  $this->localization = $a_val;
218  }
+ Here is the caller graph for this function:

◆ setMasteryScore()

ilObjSAHSLearningModule::setMasteryScore (   $a_mastery_score)

set mastery_score

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

Referenced by read().

802  {
803  $this->mastery_score = $a_mastery_score;
804  }
+ Here is the caller graph for this function:

◆ setMaxAttempt()

ilObjSAHSLearningModule::setMaxAttempt (   $a_max_attempt)

set max attempt

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

Referenced by read().

406  {
407  $this->max_attempt = $a_max_attempt;
408  }
+ Here is the caller graph for this function:

◆ setModuleVersion()

ilObjSAHSLearningModule::setModuleVersion (   $a_module_version)

set max attempt

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

Referenced by read().

437  {
438  $this->module_version = $a_module_version;
439  }
+ Here is the caller graph for this function:

◆ setNameSetting()

ilObjSAHSLearningModule::setNameSetting (   $a_name_setting)

set name_setting

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

Referenced by read().

936  {
937  $this->name_setting = $a_name_setting;
938  }
+ Here is the caller graph for this function:

◆ setNoMenu()

ilObjSAHSLearningModule::setNoMenu (   $a_no_menu)

disable menu

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

Referenced by read().

469  {
470  $this->no_menu = $a_no_menu;
471  }
+ Here is the caller graph for this function:

◆ setObjectives()

ilObjSAHSLearningModule::setObjectives (   $a_objectives)

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

Referenced by read().

592  {
593  $this->objectives = $a_objectives;
594  }
+ Here is the caller graph for this function:

◆ setOfflineMode()

ilObjSAHSLearningModule::setOfflineMode (   $a_offline_mode)

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

Referenced by read().

644  {
645  $this->offline_mode = $a_offline_mode;
646  }
+ Here is the caller graph for this function:

◆ setOpenMode()

ilObjSAHSLearningModule::setOpenMode (   $a_open_mode)

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

Referenced by read().

761  {
762  $this->open_mode = $a_open_mode;
763  }
+ Here is the caller graph for this function:

◆ setSequencing()

ilObjSAHSLearningModule::setSequencing (   $a_sequencing)

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

Referenced by read().

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

◆ setSequencingExpertMode()

ilObjSAHSLearningModule::setSequencingExpertMode (   $a_val)

Set sequencing expert mode.

Parameters
boolean$a_valsequencing expert mode

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

Referenced by read().

716  {
717  $this->seq_exp_mode = $a_val;
718  }
+ Here is the caller graph for this function:

◆ setSession()

ilObjSAHSLearningModule::setSession (   $a_session)

set session setting

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

Referenced by read().

453  {
454  $this->session = $a_session;
455  }
+ Here is the caller graph for this function:

◆ setStyleSheetId()

ilObjSAHSLearningModule::setStyleSheetId (   $a_style_id)

set ID of assigned style sheet object

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

Referenced by read().

358  {
359  $this->style_id = $a_style_id;
360  }
+ Here is the caller graph for this function:

◆ setSubType()

ilObjSAHSLearningModule::setSubType (   $a_sub_type)

get sub type

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

Referenced by read().

1133  {
1134  $this->sub_type = $a_sub_type;
1135  }
+ Here is the caller graph for this function:

◆ setTime_from_lms()

ilObjSAHSLearningModule::setTime_from_lms (   $a_time_from_lms)

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

Referenced by read().

618  {
619  $this->time_from_lms = $a_time_from_lms;
620  }
+ Here is the caller graph for this function:

◆ setTries()

ilObjSAHSLearningModule::setTries (   $a_tries)

Set default tries for questions.

Parameters
boolean$a_trestries

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

Referenced by read().

196  {
197  $this->tries = $a_tries;
198  }
+ Here is the caller graph for this function:

◆ setWidth()

ilObjSAHSLearningModule::setWidth (   $a_width)

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

Referenced by read().

773  {
774  $this->width = $a_width;
775  }
+ Here is the caller graph for this function:

◆ update()

ilObjSAHSLearningModule::update ( )

update object data

public

Returns
boolean

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

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

950  {
951  global $DIC;
952  $ilDB = $DIC['ilDB'];
953 
954  $this->updateMetaData();
955  parent::update();
956 
957  $s_mastery_score = $this->getMasteryScore();
958  if ($s_mastery_score == "") {
959  $s_mastery_score = null;
960  }
961 
962  $statement = $ilDB->manipulateF(
963  '
964  UPDATE sahs_lm
965  SET api_adapter = %s,
966  api_func_prefix = %s,
967  auto_review = %s,
968  default_lesson_mode = %s,
969  c_type = %s,
970  stylesheet = %s,
971  editable = %s,
972  max_attempt = %s,
973  module_version = %s,
974  credit = %s,
975  glossary = %s,
976  question_tries = %s,
977  unlimited_session = %s,
978  no_menu = %s,
979  hide_navig = %s,
980  fourth_edition =%s,
981  sequencing = %s,
982  interactions = %s,
983  objectives = %s,
984  comments = %s,
985  time_from_lms = %s,
986  debug = %s,
987  localization = %s,
988  seq_exp_mode = %s,
989  debugpw = %s,
990  open_mode = %s,
991  width = %s,
992  height = %s,
993  auto_continue = %s,
994  auto_last_visited = %s,
995  check_values = %s,
996  offline_mode = %s,
997  auto_suspend = %s,
998  ie_force_render = %s,
999  mastery_score = %s,
1000  id_setting = %s,
1001  name_setting = %s
1002  WHERE id = %s',
1003  array( 'text',
1004  'text',
1005  'text',
1006  'text',
1007  'text',
1008  'integer',
1009  'integer',
1010  'integer',
1011  'integer',
1012  'text',
1013  'integer',
1014  'integer',
1015  'text',
1016  'text',
1017  'text',
1018  'text',
1019  'text',
1020  'text',
1021  'text',
1022  'text',
1023  'text',
1024  'text',
1025  'text',
1026  'integer',
1027  'text',
1028  'integer',
1029  'integer',
1030  'integer',
1031  'text',
1032  'text',
1033  'text',
1034  'text',
1035  'text',
1036  'text',
1037  'integer',
1038  'integer',
1039  'integer',
1040  'integer'
1041  ),
1042  array( $this->getAPIAdapterName(),
1043  $this->getAPIFunctionsPrefix(),
1044  $this->getAutoReviewChar(),
1045  $this->getDefaultLessonMode(),
1046  $this->getSubType(),
1047  $this->getStyleSheetId(),
1048  $this->getEditable(),
1049  $this->getMaxAttempt(),
1050  $this->getModuleVersion(),
1051  $this->getCreditMode(),
1052  $this->getAssignedGlossary(),
1053  $this->getTries(),
1054  ilUtil::tf2yn($this->getSession()),
1055  ilUtil::tf2yn($this->getNoMenu()),
1056  ilUtil::tf2yn($this->getHideNavig()),
1057  ilUtil::tf2yn($this->getFourth_edition()),
1058  ilUtil::tf2yn($this->getSequencing()),
1059  ilUtil::tf2yn($this->getInteractions()),
1060  ilUtil::tf2yn($this->getObjectives()),
1061  ilUtil::tf2yn($this->getComments()),
1062  ilUtil::tf2yn($this->getTime_from_lms()),
1063  ilUtil::tf2yn($this->getDebug()),
1064  $this->getLocalization(),
1065  $this->getSequencingExpertMode(),
1066  $this->getDebugPw(),
1067  $this->getOpenMode(),
1068  $this->getWidth(),
1069  $this->getHeight(),
1070  ilUtil::tf2yn($this->getAutoContinue()),
1072  ilUtil::tf2yn($this->getCheck_values()),
1073  ilUtil::tf2yn($this->getOfflineMode()),
1074  ilUtil::tf2yn($this->getAutoSuspend()),
1076  $s_mastery_score,
1077  $this->getIdSetting(),
1078  $this->getNameSetting(),
1079  $this->getId())
1080  );
1081 
1082  return true;
1083  }
getSequencingExpertMode()
Get sequencing expert mode.
getStyleSheetId()
get ID of assigned style sheet object
static tf2yn($a_tf)
convert true/false to "y"/"n"
global $DIC
Definition: saml.php:7
updateMetaData()
update meta data entry
getAutoReviewChar()
get auto review as Char for SCORM 2004
getAPIAdapterName()
get api adapter name
getAssignedGlossary()
get assigned glossary
getAPIFunctionsPrefix()
get api functions prefix
getIe_force_render()
force Internet Explorer to render again after some Milliseconds - useful for learning Modules with a ...
getId()
get object id public
getOpenMode()
open_mode 0: in Tab/new Window like in previous versions 1: in iFrame with width=100% and heigth=100%...
update($pash, $contents, Config $config)
global $ilDB
getDefaultLessonMode()
get default lesson mode
getIdSetting()
update values for mastery_score / min_normalized_measure in database - not requested ...
+ Here is the call graph for this function:

◆ zipLmForOfflineMode()

ilObjSAHSLearningModule::zipLmForOfflineMode ( )

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

References ilUtil\getDataDir(), ilObject\getId(), ilUtil\getWebspaceDir(), and ilUtil\zip().

1456  {
1457  $lmDir = ilUtil::getWebspaceDir("filesystem") . "/lm_data/lm_" . $this->getId();
1458  $zipFile = ilUtil::getDataDir() . "/lm_data/lm_" . $this->getId();
1459  return ilUtil::zip($lmDir, $zipFile, true);
1460  }
getId()
get object id public
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file
static getDataDir()
get data directory (outside webspace)
static getWebspaceDir($mode="filesystem")
get webspace directory
+ Here is the call graph for this function:

Field Documentation

◆ $validator

ilObjSAHSLearningModule::$validator

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


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