ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 @access 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...
 
 setOnline ($a_online)
 get online More...
 
 getOnline ()
 set online 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 @access 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 @access public More...
 
 setId ($a_id)
 set object id @access public More...
 
 setRefId ($a_id)
 set reference id @access public More...
 
 getRefId ()
 get reference id @access public More...
 
 getType ()
 get object type @access public More...
 
 setType ($a_type)
 set object type @access public More...
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 get object title @access public More...
 
 getUntranslatedTitle ()
 get untranslated object title @access 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...
 
 getOwner ()
 get object owner More...
 
 getOwnerName ()
 
 setOwner ($a_owner)
 set object owner More...
 
 getCreateDate ()
 get create date @access public More...
 
 getLastUpdateDate ()
 get last update date @access 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) @access 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 _lookupOnline ($a_id)
 check wether scorm module is online More...
 
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 _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 @global type $ilDB. 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@access public 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 _getIcon ( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
 Get icon for repository item. 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 @access public.

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 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 243 of file class.ilObjSAHSLearningModule.php.

244 {
245 global $ilDB;
246
247 $lm_set = $ilDB->queryF(
248 'SELECT question_tries FROM sahs_lm WHERE id = %s',
249 array('integer'),
250 array($a_id)
251 );
252 $lm_rec = $ilDB->fetchAssoc($lm_set);
253
254 return $lm_rec['question_tries'];
255 }
global $ilDB
$lm_set

References $ilDB, and $lm_set.

Referenced by ilPCQuestionGUI\edit().

+ Here is the caller graph for this function:

◆ _lookupOnline()

static ilObjSAHSLearningModule::_lookupOnline (   $a_id)
static

check wether scorm module is online

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

128 {
129 global $ilDB;
130
131 $lm_set = $ilDB->queryF(
132 'SELECT c_online FROM sahs_lm WHERE id = %s',
133 array('integer'),
134 array($a_id)
135 );
136 $lm_rec = $ilDB->fetchAssoc($lm_set);
137
138 return ilUtil::yn2tf($lm_rec["c_online"]);
139 }
static yn2tf($a_yn)
convert "y"/"n" to true/false

References $ilDB, $lm_set, and ilUtil\yn2tf().

+ Here is the call graph for this function:

◆ _lookupSubType()

◆ checkMasteryScoreValues()

ilObjSAHSLearningModule::checkMasteryScoreValues ( )

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

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

819 {
820 global $ilDB;
821 $s_result = "";
822 $a_result = array();
823 $type = $this->_lookupSubType($this->getID());
824
825 if ($type == "scorm2004") {
826 $set = $ilDB->query("SELECT minnormalmeasure FROM cp_objective, cp_node" .
827 " WHERE satisfiedbymeasure=1 AND minnormalmeasure is not null AND cp_objective.cp_node_id=cp_node.cp_node_id AND" .
828 " slm_id = " . $ilDB->quote($this->getID(), "integer"));
829 while ($rec = $ilDB->fetchAssoc($set)) {
830 $tmpval = $rec["minnormalmeasure"]*100;
831 if (!in_array($tmpval, $a_result)) {
832 $a_result[] = $tmpval;
833 }
834 }
835 } else {
836 $set = $ilDB->query("SELECT masteryscore FROM sc_item,scorm_object" .
837 " WHERE sc_item.masteryscore is not null AND sc_item.obj_id=scorm_object.obj_id AND" .
838 " slm_id = " . $ilDB->quote($this->getID(), "integer"));
839 while ($rec = $ilDB->fetchAssoc($set)) {
840 if (!in_array($rec["masteryscore"], $a_result)) {
841 $a_result[] = $rec["masteryscore"];
842 }
843 }
844 }
845 $s_result = implode(", ", $a_result);
846 $this->mastery_score_values = $s_result;
847 }
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )

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

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

41 {
42 global $ilDB;
43
44 parent::create();
45 if (!$upload) {
46 $this->createMetaData();
47 }
48
49 $this->createDataDirectory();
50
51 $ilDB->manipulateF(
52 '
53 INSERT INTO sahs_lm (id, c_online, api_adapter, c_type, editable, seq_exp_mode,localization)
54 VALUES (%s,%s,%s,%s,%s,%s,%s)',
55 array('integer', 'text', 'text', 'text', 'integer','integer','text'),
56 array($this->getId(),'n','API', $this->getSubType(),(int) $this->getEditable(),
57 (int) $this->getSequencingExpertMode(), $this->getLocalization()
58 )
59 );
60 }
getSequencingExpertMode()
Get sequencing expert mode.
createDataDirectory()
creates data directory for package files ("./data/lm_data/lm_<id>")
createMetaData()
create meta data entry
getId()
get object id @access public

References $ilDB, createDataDirectory(), ilObject\createMetaData(), getEditable(), ilObject\getId(), getLocalization(), getSequencingExpertMode(), 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 273 of file class.ilObjSAHSLearningModule.php.

274 {
275 $lm_data_dir = ilUtil::getWebspaceDir() . "/lm_data";
276 ilUtil::makeDir($lm_data_dir);
278 }
getDataDirectory($mode="filesystem")
get data directory of lm
static getWebspaceDir($mode="filesystem")
get webspace directory
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...

References getDataDirectory(), ilUtil\getWebspaceDir(), and ilUtil\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

@access public

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

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

1179 {
1180 global $ilDB, $ilLog;
1181
1182 // always call parent delete function first!!
1183 if (!parent::delete()) {
1184 return false;
1185 }
1186
1187 // delete meta data of scorm content object
1188 $this->deleteMetaData();
1189
1190 // delete data directory
1192
1193 // delete scorm learning module record
1194 $ilDB->manipulateF(
1195 'DELETE FROM sahs_lm WHERE id = %s',
1196 array('integer'),
1197 array($this->getId())
1198 );
1199
1200 $ilLog->write("SAHS Delete(SAHSLM), Subtype: " . $this->getSubType());
1201
1202 if ($this->getSubType() == "scorm") {
1203 // remove all scorm objects and scorm tree
1204 include_once("./Modules/ScormAicc/classes/SCORM/class.ilSCORMTree.php");
1205 include_once("./Modules/ScormAicc/classes/SCORM/class.ilSCORMObject.php");
1206 $sc_tree = new ilSCORMTree($this->getId());
1207 $r_id = $sc_tree->readRootId();
1208 if ($r_id > 0) {
1209 $items = $sc_tree->getSubTree($sc_tree->getNodeData($r_id));
1210 foreach ($items as $item) {
1211 $sc_object = ilSCORMObject::_getInstance($item["obj_id"], $this->getId());
1212 if (is_object($sc_object)) {
1213 $sc_object->delete();
1214 }
1215 }
1216 $sc_tree->removeTree($sc_tree->getTreeId());
1217 }
1218 }
1219
1220 if ($this->getSubType() != "scorm") {
1221 // delete aicc data
1222 $res = $ilDB->queryF(
1223 '
1224 SELECT aicc_object.obj_id FROM aicc_object, aicc_units
1225 WHERE aicc_object.obj_id = aicc_units.obj_id
1226 AND aicc_object.slm_id = %s',
1227 array('integer'),
1228 array($this->getId())
1229 );
1230
1231 while ($row = $ilDB->fetchAssoc($res)) {
1232 $obj_id = $row['obj_id'];
1233 $ilDB->manipulateF(
1234 '
1235 DELETE FROM aicc_units WHERE obj_id = %s',
1236 array('integer'),
1237 array($obj_id)
1238 );
1239 }
1240
1241 $res = $ilDB->queryF(
1242 '
1243 SELECT aicc_object.obj_id FROM aicc_object, aicc_course
1244 WHERE aicc_object.obj_id = aicc_course.obj_id
1245 AND aicc_object.slm_id = %s',
1246 array('integer'),
1247 array($this->getId())
1248 );
1249
1250 while ($row = $ilDB->fetchAssoc($res)) {
1251 $obj_id = $row['obj_id'];
1252 $ilDB->manipulateF(
1253 '
1254 DELETE FROM aicc_course WHERE obj_id = %s',
1255 array('integer'),
1256 array($obj_id)
1257 );
1258 }
1259
1260 $ilDB->manipulateF(
1261 '
1262 DELETE FROM aicc_object WHERE slm_id = %s',
1263 array('integer'),
1264 array($this->getId())
1265 );
1266 }
1267
1268 $q_log = "DELETE FROM scorm_tracking WHERE obj_id = " . $ilDB->quote($this->getId());
1269 $ilLog->write("SAHS Delete(SAHSLM): " . $q_log);
1270
1271 $ilDB->manipulateF(
1272 'DELETE FROM scorm_tracking WHERE obj_id = %s',
1273 array('integer'),
1274 array($this->getId())
1275 );
1276
1277 $q_log = "DELETE FROM sahs_user WHERE obj_id = " . $ilDB->quote($this->getId());
1278 $ilLog->write("SAHS Delete(SAHSLM): " . $q_log);
1279
1280 $ilDB->manipulateF(
1281 'DELETE FROM sahs_user WHERE obj_id = %s',
1282 array('integer'),
1283 array($this->getId())
1284 );
1285
1286 // always call parent delete function at the end!!
1287 return true;
1288 }
deleteMetaData()
delete meta data entry
static & _getInstance($a_id, $a_slm_id)
get instance of specialized GUI class
SCORM Object Tree.
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
foreach($_POST as $key=> $value) $res

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

+ 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 146 of file class.ilObjSAHSLearningModule.php.

147 {
148 global $ilDB, $lng;
149
150 $lm_set = $ilDB->queryF(
151 'SELECT localization FROM sahs_lm WHERE id = %s',
152 array('integer'),
153 array($a_id)
154 );
155 $lm_rec = $ilDB->fetchAssoc($lm_set);
156 $inst_lang = $lng->getInstalledLanguages();
157 if ($lm_rec["localization"] != "" && in_array($lm_rec["localization"], $inst_lang)) {
158 return $lm_rec["localization"];
159 }
160 return $lng->getLangKey();
161 }

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

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

+ Here is the caller graph for this function:

◆ getAPIAdapterName()

ilObjSAHSLearningModule::getAPIAdapterName ( )

get api adapter name

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

295 {
296 return $this->api_adapter;
297 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getAPIFunctionsPrefix()

ilObjSAHSLearningModule::getAPIFunctionsPrefix ( )

get api functions prefix

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

311 {
312 return $this->api_func_prefix;
313 }

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 1479 of file class.ilObjSAHSLearningModule.php.

1480 {
1481 global $ilias;
1482 $idSetting = $this->getIdSetting();
1483 $studentId = $ilias->account->getId();
1484 if ($idSetting%2 == 1) {
1485 $studentId = $ilias->account->getLogin();
1486 }
1487 if ($idSetting > 3) {
1488 $studentId .= '_o_' . $this->getId();
1489 } elseif ($idSetting > 1) {
1490 $studentId .= '_r_' . $_GET["ref_id"];
1491 }
1492 return $studentId;
1493 }
$_GET["client_id"]
getIdSetting()
update values for mastery_score / min_normalized_measure in database - not requested

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

+ 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 1499 of file class.ilObjSAHSLearningModule.php.

1500 {
1501 global $ilias, $lng;
1502 $studentName = " ";
1503 switch ($this->getNameSetting()) {
1504 case 0:
1505 $studentName = $ilias->account->getLastname() . ', ' . $ilias->account->getFirstname();
1506 break;
1507 case 1:
1508 $studentName = $ilias->account->getFirstname() . ' ' . $ilias->account->getLastname();
1509 break;
1510 case 2:
1511 $studentName = $ilias->account->getFullname();
1512 break;
1513 case 3:
1514 switch ($ilias->account->getGender()) {
1515 case 'f':
1516 $studentName = $lng->txt('salutation_f');
1517 break;
1518
1519 case 'm':
1520 $studentName = $lng->txt('salutation_m');
1521 break;
1522
1523 case 'n':
1524 $studentName = $lng->txt('salutation_n');
1525 break;
1526
1527 default:
1528 $studentName = $lng->txt('salutation');
1529 }
1530 $studentName .= ' ' . $ilias->account->getLastname();
1531 break;
1532 case 4:
1533 $studentName = $ilias->account->getFirstname();
1534 break;
1535 }
1536 return $studentName;
1537 }

References ilObject\$lng, and getNameSetting().

+ Here is the call graph for this function:

◆ getAssignedGlossary()

ilObjSAHSLearningModule::getAssignedGlossary ( )

get assigned glossary

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

434 {
435 return $this->assigned_glossary;
436 }

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

+ Here is the caller graph for this function:

◆ getAuto_last_visited()

ilObjSAHSLearningModule::getAuto_last_visited ( )

auto_last_visited

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

709 {
710 return $this->auto_last_visited;
711 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getAutoContinue()

ilObjSAHSLearningModule::getAutoContinue ( )

set auto continue

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

701 {
702 return $this->auto_continue;
703 }

Referenced by 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 385 of file class.ilObjSAHSLearningModule.php.

386 {
387 return ilUtil::yn2tf($this->auto_review);
388 }

References ilUtil\yn2tf().

+ Here is the call graph for this function:

◆ getAutoReviewChar()

ilObjSAHSLearningModule::getAutoReviewChar ( )

get auto review as Char for SCORM 2004

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

401 {
402 return $this->auto_review;
403 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getAutoSuspend()

ilObjSAHSLearningModule::getAutoSuspend ( )

set auto continue

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

750 {
751 return $this->auto_suspend;
752 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getCacheDeactivated()

ilObjSAHSLearningModule::getCacheDeactivated ( )

BrowserCacheDisabled for SCORM 2004 / ENABLE_JS_DEBUG.

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

505 {
506 global $ilSetting;
507 $lm_set = new ilSetting("lm");
508 if ($lm_set->get("scormdebug_disable_cache") == "1") {
509 return true;
510 }
511 return false;
512 }
ILIAS Setting Class.
global $ilSetting
Definition: privfeed.php:17

References $ilSetting, and $lm_set.

◆ getCheck_values()

ilObjSAHSLearningModule::getCheck_values ( )

check_values

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

635 {
636 return $this->check_values;
637 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getComments()

ilObjSAHSLearningModule::getComments ( )

comments

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

609 {
610 return $this->comments;
611 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getCreditMode()

ilObjSAHSLearningModule::getCreditMode ( )

get credit mode

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

327 {
328 return $this->credit_mode;
329 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getDataDirectory()

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

get data directory of lm

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

284 {
285 $lm_data_dir = ilUtil::getWebspaceDir($mode) . "/lm_data";
286 $lm_dir = $lm_data_dir . "/lm_" . $this->getId();
287
288 return $lm_dir;
289 }

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

Referenced by ilObjSCORM2004LearningModule\convert_1_2_to_2004(), createDataDirectory(), delete(), 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 ( )

debug

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

662 {
663 return $this->debug;
664 }
$debug
Definition: loganalyzer.php:16

References $debug.

Referenced by update().

+ Here is the caller graph for this function:

◆ getDebugActivated()

ilObjSAHSLearningModule::getDebugActivated ( )

debugActivated

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

531 {
532 global $ilSetting;
533 $lm_set = new ilSetting("lm");
534 if ($lm_set->get("scormdebug_global_activate") == "1") {
535 return true;
536 }
537 return false;
538 }

References $ilSetting, and $lm_set.

◆ getDebugPw()

ilObjSAHSLearningModule::getDebugPw ( )

debug pw

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

678 {
679 return $this->debug_pw;
680 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getDefaultLessonMode()

ilObjSAHSLearningModule::getDefaultLessonMode ( )

get default lesson mode

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

351 {
352 global $ilUser;
353 if ($ilUser->getId() == 13) {
354 return "browse";
355 }
356 return $this->lesson_mode;
357 }
$ilUser
Definition: imgupload.php:18

References $ilUser.

Referenced by update().

+ Here is the caller graph for this function:

◆ getDiskUsage()

ilObjSAHSLearningModule::getDiskUsage ( )

Gets the disk usage of the object in bytes.

@access public

Returns
integer the disk usage in bytes

Reimplemented from ilObject.

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

263 {
264 require_once("./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php");
266 }
static _lookupDiskUsage($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 ( )

Get Editable.

Returns
boolean Editable

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

198 {
199 return $this->editable;
200 }

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

+ Here is the caller graph for this function:

◆ getFourth_Edition()

ilObjSAHSLearningModule::getFourth_Edition ( )

SCORM 2004 4th edition features.

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

557 {
558 return $this->fourth_edition;
559 }

◆ getHeight()

ilObjSAHSLearningModule::getHeight ( )

height

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

790 {
791 return $this->height;
792 }

Referenced by getViewButton(), and update().

+ Here is the caller graph for this function:

◆ getHideNavig()

ilObjSAHSLearningModule::getHideNavig ( )

hide navigation tree

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

489 {
490 return $this->hide_navig;
491 }

Referenced by update().

+ 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 918 of file class.ilObjSAHSLearningModule.php.

919 {
920 return $this->id_setting;
921 }

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 iframesor frames and IE >=10

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

544 {
545 return $this->ie_force_render;
546 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getInteractions()

ilObjSAHSLearningModule::getInteractions ( )

interactions

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

583 {
584 return $this->interactions;
585 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getLocalization()

ilObjSAHSLearningModule::getLocalization ( )

Get localization.

Returns
string localization

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

239 {
240 return $this->localization;
241 }

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getMasteryScore()

ilObjSAHSLearningModule::getMasteryScore ( )

get mastery_score

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

803 {
804 return $this->mastery_score;
805 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getMasteryScoreValues()

ilObjSAHSLearningModule::getMasteryScoreValues ( )

get mastery_score_values

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

853 {
854 return $this->mastery_score_values;
855 }

◆ getMaxAttempt()

ilObjSAHSLearningModule::getMaxAttempt ( )

get max attempt

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

409 {
410 return $this->max_attempt;
411 }

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.

@access public

Returns
float

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

1321 {
1322 global $ilUser;
1323
1324 if (strcmp($this->getSubType(), 'scorm2004') == 0) {
1325 $res = ilObjSCORM2004LearningModule::_getMaxScoreForUser($this->getId(), $ilUser->getId());
1326 return $res;
1327 } else {
1328 return null;
1329 }
1330 }
static _getMaxScoreForUser($a_id, $a_user)
Returns score.max for the learning module, refered to the last sco where score.max is set.

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

+ Here is the call graph for this function:

◆ getModuleVersion()

ilObjSAHSLearningModule::getModuleVersion ( )

get module version

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

426 {
427 return $this->module_version;
428 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getNameSetting()

ilObjSAHSLearningModule::getNameSetting ( )

get name_setting

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

935 {
936 return $this->name_setting;
937 }

Referenced by getApiStudentName(), and update().

+ Here is the caller graph for this function:

◆ getNoMenu()

ilObjSAHSLearningModule::getNoMenu ( )

disable menu

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

473 {
474 return $this->no_menu;
475 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getObjectives()

ilObjSAHSLearningModule::getObjectives ( )

objectives

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

596 {
597 return $this->objectives;
598 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getOfflineMode()

ilObjSAHSLearningModule::getOfflineMode ( )

offlineMode

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

648 {
649 return $this->offline_mode;
650 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getOnline()

ilObjSAHSLearningModule::getOnline ( )

set online

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

1147 {
1148 return $this->online;
1149 }

Referenced by 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 765 of file class.ilObjSAHSLearningModule.php.

766 {
767 return $this->open_mode;
768 }

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 1295 of file class.ilObjSAHSLearningModule.php.

1296 {
1297 global $ilUser;
1298 if (strcmp($this->getSubType(), "scorm2004") == 0) {
1300 if (!is_null($res)) {
1301 return $res * 100.0;
1302 } else {
1303 return $res;
1304 }
1305 } else {
1306 return null;
1307 }
1308 }
static _getUniqueScaledScoreForUser($a_id, $a_user)
Get the Unique Scaled Score of a course Conditions: Only one SCO may set cmi.score....

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

+ 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

return

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

1101 {
1102 global $ilDB;
1103
1104 $set = $ilDB->query("SELECT DISTINCT id FROM sahs_lm WHERE " .
1105 " glossary = " . $ilDB->quote($a_glo_id, "integer"));
1106 $sms = array();
1107 while ($rec = $ilDB->fetchAssoc($set)) {
1108 if (ilObject::_hasUntrashedReference($rec["id"])) {
1109 $sms[] = $rec["id"];
1110 }
1111 }
1112 return $sms;
1113 }
static _hasUntrashedReference($a_obj_id)
checks wether an object has at least one reference that is not in trash

References $ilDB, and ilObject\_hasUntrashedReference().

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

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

◆ getSequencing()

ilObjSAHSLearningModule::getSequencing ( )

sequencing

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

570 {
571 return $this->sequencing;
572 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getSequencingExpertMode()

ilObjSAHSLearningModule::getSequencingExpertMode ( )

Get sequencing expert mode.

Returns
boolean sequencing expert mode

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

735 {
736 return $this->seq_exp_mode;
737 }

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getSession()

ilObjSAHSLearningModule::getSession ( )

get session setting

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

457 {
458 return $this->session;
459 }
$session

References $session.

Referenced by update().

+ Here is the caller graph for this function:

◆ getSessionDeactivated()

ilObjSAHSLearningModule::getSessionDeactivated ( )

sessionDisabled for SCORM 2004

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

518 {
519 global $ilSetting;
520 $lm_set = new ilSetting("lm");
521 if ($lm_set->get("scorm_without_session") == "1") {
522 return true;
523 }
524 return false;
525 }

References $ilSetting, and $lm_set.

◆ getStyleSheetId()

ilObjSAHSLearningModule::getStyleSheetId ( )

get ID of assigned style sheet object

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

362 {
363 return $this->style_id;
364 }

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

+ Here is the caller graph for this function:

◆ getSubType()

ilObjSAHSLearningModule::getSubType ( )

set sub type

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

1163 {
1164 return $this->sub_type;
1165 }

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

+ Here is the caller graph for this function:

◆ getTime_from_lms()

ilObjSAHSLearningModule::getTime_from_lms ( )

time_from_lms

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

622 {
623 return $this->time_from_lms;
624 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getTries()

ilObjSAHSLearningModule::getTries ( )

Get Tries.

Returns
boolean tries

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

219 {
220 return $this->tries;
221 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getViewButton()

ilObjSAHSLearningModule::getViewButton ( )

get button for view

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

1543 {
1544 $setUrl = "ilias.php?baseClass=ilSAHSPresentationGUI&amp;ref_id=" . $this->getRefID();
1545 // $setUrl = $this->getLinkTargetByClass("ilsahspresentationgui", "")."&amp;ref_id=".$this->getRefID();
1546 $setTarget = "ilContObj" . $this->getId();
1547 $om = $this->getOpenMode();
1548 $width = $this->getWidth();
1549 $height = $this->getHeight();
1550 if (($om == 5 || $om == 1) && $width > 0 && $height > 0) {
1551 $om++;
1552 }
1553 if ($om != 0) {
1554 $setUrl = "javascript:void(0); onclick=startSAHS('" . $setUrl . "','ilContObj" . $this->getId() . "'," . $om . "," . $width . "," . $height . ");";
1555 $setTarget = "";
1556 }
1557 include_once "Services/UIComponent/Button/classes/class.ilLinkButton.php";
1558 $button = ilLinkButton::getInstance();
1559 $button->setCaption("view");
1560 $button->setPrimary(true);
1561 $button->setUrl($setUrl);
1562 $button->setTarget($setTarget);
1563 return $button;
1564 }
static getInstance()
Factory.
getOpenMode()
open_mode 0: in Tab/new Window like in previous versions 1: in iFrame with width=100% and heigth=100%...

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

+ Here is the call graph for this function:

◆ getWidth()

ilObjSAHSLearningModule::getWidth ( )

width

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

778 {
779 return $this->width;
780 }

Referenced by getViewButton(), and update().

+ 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

return

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

1122 {
1123 global $ilDB;
1124
1125 $set = $ilDB->query("SELECT DISTINCT glossary FROM sahs_lm WHERE " .
1126 " id = " . $ilDB->quote($a_slm_id, "integer"));
1127 $rec = $ilDB->fetchAssoc($set);
1128 $glo_id = $rec["glossary"];
1129 if (ilObject::_lookupType($glo_id) == "glo") {
1130 return $glo_id;
1131 }
1132 return 0;
1133 }
static _lookupType($a_id, $a_reference=false)
lookup object type

References $ilDB, and ilObject\_lookupType().

Referenced by ilSCORM2004PageConfig\configureByObjectId().

+ 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

return

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

1342 {
1343 /*preg_match("/.*sahs_([0-9]*)\.zip/", $a_filename, $match);
1344 if (is_dir($a_dir."/sahs_".$match[1]))
1345 {
1346 $a_dir = $a_dir."/sahs_".$match[1];
1347 }*/
1348 ilUtil::rCopy($a_dir, $this->getDataDirectory());
1350 }
static rCopy($a_sdir, $a_tdir, $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
static renameExecutables($a_dir)
Rename uploaded executables for security reasons.

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

+ Here is the call graph for this function:

◆ read()

ilObjSAHSLearningModule::read ( )

read object

Reimplemented from ilObject.

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

66 {
67 global $ilDB;
68
69 parent::read();
70
71 $lm_set = $ilDB->queryF(
72 'SELECT * FROM sahs_lm WHERE id = %s',
73 array('integer'),
74 array($this->getId())
75 );
76
77 while ($lm_rec = $ilDB->fetchAssoc($lm_set)) {
78 $this->setOnline(ilUtil::yn2tf($lm_rec["c_online"]));
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 }
setAutoSuspend($a_auto_suspend)
get auto continue
setAutoContinue($a_auto_continue)
get auto continue
setSession($a_session)
set session setting
setNameSetting($a_name_setting)
set name_setting
setAuto_last_visited($a_auto_last_visited)
setAssignedGlossary($a_assigned_glossary)
set assigned glossary
setDefaultLessonMode($a_lesson_mode)
set default lesson mode
setModuleVersion($a_module_version)
set max attempt
setMaxAttempt($a_max_attempt)
set max attempt
setEditable($a_editable)
Set Editable.
setStyleSheetId($a_style_id)
set ID of assigned style sheet object
setLocalization($a_val)
Set localization.
setAPIAdapterName($a_api)
set api adapter name
setCreditMode($a_credit_mode)
set credit mode
setMasteryScore($a_mastery_score)
set mastery_score
setHideNavig($a_hide_navig)
disable menu
getStyleSheetId()
get ID of assigned style sheet object
setIdSetting($a_id_setting)
set id_setting
setAPIFunctionsPrefix($a_prefix)
set api functions prefix
setSequencingExpertMode($a_val)
Set sequencing expert mode.
setTries($a_tries)
Set default tries for questions.
setAutoReviewChar($a_auto_review)
set auto review as Char for SCORM 2004

References $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(), setOnline(), setOpenMode(), setSequencing(), setSequencingExpertMode(), setSession(), setStyleSheetId(), setSubType(), setTime_from_lms(), setTries(), setWidth(), and ilUtil\yn2tf().

+ Here is the call graph for this function:

◆ setAPIAdapterName()

ilObjSAHSLearningModule::setAPIAdapterName (   $a_api)

set api adapter name

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

303 {
304 $this->api_adapter = $a_api;
305 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAPIFunctionsPrefix()

ilObjSAHSLearningModule::setAPIFunctionsPrefix (   $a_prefix)

set api functions prefix

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

319 {
320 $this->api_func_prefix = $a_prefix;
321 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAssignedGlossary()

ilObjSAHSLearningModule::setAssignedGlossary (   $a_assigned_glossary)

set assigned glossary

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

442 {
443 $this->assigned_glossary = $a_assigned_glossary;
444 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAuto_last_visited()

ilObjSAHSLearningModule::setAuto_last_visited (   $a_auto_last_visited)

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

714 {
715 $this->auto_last_visited = $a_auto_last_visited;
716 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAutoContinue()

ilObjSAHSLearningModule::setAutoContinue (   $a_auto_continue)

get auto continue

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

694 {
695 $this->auto_continue = $a_auto_continue;
696 }

Referenced by read().

+ 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 378 of file class.ilObjSAHSLearningModule.php.

379 {
380 $this->auto_review = ilUtil::tf2yn($a_auto_review);
381 }
static tf2yn($a_tf)
convert true/false to "y"/"n"

References ilUtil\tf2yn().

+ 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 393 of file class.ilObjSAHSLearningModule.php.

394 {
395 $this->auto_review = $a_auto_review;
396 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setAutoSuspend()

ilObjSAHSLearningModule::setAutoSuspend (   $a_auto_suspend)

get auto continue

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

743 {
744 $this->auto_suspend = $a_auto_suspend;
745 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setCheck_values()

ilObjSAHSLearningModule::setCheck_values (   $a_check_values)

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

640 {
641 $this->check_values = $a_check_values;
642 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setComments()

ilObjSAHSLearningModule::setComments (   $a_comments)

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

614 {
615 $this->comments = $a_comments;
616 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setCreditMode()

ilObjSAHSLearningModule::setCreditMode (   $a_credit_mode)

set credit mode

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

335 {
336 $this->credit_mode = $a_credit_mode;
337 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDebug()

ilObjSAHSLearningModule::setDebug (   $a_debug)

debug

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

670 {
671 $this->debug = $a_debug;
672 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDebugPw()

ilObjSAHSLearningModule::setDebugPw (   $a_debug_pw)

debug pw

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

686 {
687 $this->debug_pw = $a_debug_pw;
688 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDefaultLessonMode()

ilObjSAHSLearningModule::setDefaultLessonMode (   $a_lesson_mode)

set default lesson mode

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

343 {
344 $this->lesson_mode = $a_lesson_mode;
345 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setEditable()

ilObjSAHSLearningModule::setEditable (   $a_editable)

Set Editable.

Parameters
boolean$a_editableEditable

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

188 {
189 $this->editable = $a_editable;
190 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setFourth_edition()

ilObjSAHSLearningModule::setFourth_edition (   $a_fourth_edition)

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

562 {
563 $this->fourth_edition = $a_fourth_edition;
564 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setHeight()

ilObjSAHSLearningModule::setHeight (   $a_height)

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

794 {
795 $this->height = $a_height;
796 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setHideNavig()

ilObjSAHSLearningModule::setHideNavig (   $a_hide_navig)

disable menu

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

497 {
498 $this->hide_navig = $a_hide_navig;
499 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setIdSetting()

ilObjSAHSLearningModule::setIdSetting (   $a_id_setting)

set id_setting

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

927 {
928 $this->id_setting = $a_id_setting;
929 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setIe_force_render()

ilObjSAHSLearningModule::setIe_force_render (   $a_ie_force_render)

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

549 {
550 $this->ie_force_render = $a_ie_force_render;
551 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInteractions()

ilObjSAHSLearningModule::setInteractions (   $a_interactions)

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

588 {
589 $this->interactions = $a_interactions;
590 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setLocalization()

ilObjSAHSLearningModule::setLocalization (   $a_val)

Set localization.

Parameters
string$a_vallocalization

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

229 {
230 $this->localization = $a_val;
231 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMasteryScore()

ilObjSAHSLearningModule::setMasteryScore (   $a_mastery_score)

set mastery_score

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

811 {
812 $this->mastery_score = $a_mastery_score;
813 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setMaxAttempt()

ilObjSAHSLearningModule::setMaxAttempt (   $a_max_attempt)

set max attempt

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

418 {
419 $this->max_attempt = $a_max_attempt;
420 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setModuleVersion()

ilObjSAHSLearningModule::setModuleVersion (   $a_module_version)

set max attempt

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

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

Referenced by read().

+ Here is the caller graph for this function:

◆ setNameSetting()

ilObjSAHSLearningModule::setNameSetting (   $a_name_setting)

set name_setting

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

943 {
944 $this->name_setting = $a_name_setting;
945 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setNoMenu()

ilObjSAHSLearningModule::setNoMenu (   $a_no_menu)

disable menu

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

481 {
482 $this->no_menu = $a_no_menu;
483 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setObjectives()

ilObjSAHSLearningModule::setObjectives (   $a_objectives)

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

601 {
602 $this->objectives = $a_objectives;
603 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOfflineMode()

ilObjSAHSLearningModule::setOfflineMode (   $a_offline_mode)

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

653 {
654 $this->offline_mode = $a_offline_mode;
655 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOnline()

ilObjSAHSLearningModule::setOnline (   $a_online)

get online

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

1139 {
1140 $this->online = $a_online;
1141 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOpenMode()

ilObjSAHSLearningModule::setOpenMode (   $a_open_mode)

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

770 {
771 $this->open_mode = $a_open_mode;
772 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setSequencing()

ilObjSAHSLearningModule::setSequencing (   $a_sequencing)

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

575 {
576 $this->sequencing = $a_sequencing;
577 }

Referenced by read().

+ 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 724 of file class.ilObjSAHSLearningModule.php.

725 {
726 $this->seq_exp_mode = $a_val;
727 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setSession()

ilObjSAHSLearningModule::setSession (   $a_session)

set session setting

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

465 {
466 $this->session = $a_session;
467 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setStyleSheetId()

ilObjSAHSLearningModule::setStyleSheetId (   $a_style_id)

set ID of assigned style sheet object

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

370 {
371 $this->style_id = $a_style_id;
372 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setSubType()

ilObjSAHSLearningModule::setSubType (   $a_sub_type)

get sub type

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

1155 {
1156 $this->sub_type = $a_sub_type;
1157 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setTime_from_lms()

ilObjSAHSLearningModule::setTime_from_lms (   $a_time_from_lms)

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

627 {
628 $this->time_from_lms = $a_time_from_lms;
629 }

Referenced by read().

+ 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 208 of file class.ilObjSAHSLearningModule.php.

209 {
210 $this->tries = $a_tries;
211 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setWidth()

ilObjSAHSLearningModule::setWidth (   $a_width)

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

782 {
783 $this->width = $a_width;
784 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilObjSAHSLearningModule::update ( )

update object data

@access public

Returns
boolean

Reimplemented from ilObject.

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

957 {
958 global $ilDB;
959
960 $this->updateMetaData();
962
963 $s_mastery_score = $this->getMasteryScore();
964 if ($s_mastery_score == "") {
965 $s_mastery_score = null;
966 }
967
968 $statement = $ilDB->manipulateF(
969 '
970 UPDATE sahs_lm
971 SET c_online = %s,
972 api_adapter = %s,
973 api_func_prefix = %s,
974 auto_review = %s,
975 default_lesson_mode = %s,
976 c_type = %s,
977 stylesheet = %s,
978 editable = %s,
979 max_attempt = %s,
980 module_version = %s,
981 credit = %s,
982 glossary = %s,
983 question_tries = %s,
984 unlimited_session = %s,
985 no_menu = %s,
986 hide_navig = %s,
987 fourth_edition =%s,
988 sequencing = %s,
989 interactions = %s,
990 objectives = %s,
991 comments = %s,
992 time_from_lms = %s,
993 debug = %s,
994 localization = %s,
995 seq_exp_mode = %s,
996 debugpw = %s,
997 open_mode = %s,
998 width = %s,
999 height = %s,
1000 auto_continue = %s,
1001 auto_last_visited = %s,
1002 check_values = %s,
1003 offline_mode = %s,
1004 auto_suspend = %s,
1005 ie_force_render = %s,
1006 mastery_score = %s,
1007 id_setting = %s,
1008 name_setting = %s
1009 WHERE id = %s',
1010 array( 'text',
1011 'text',
1012 'text',
1013 'text',
1014 'text',
1015 'text',
1016 'integer',
1017 'integer',
1018 'integer',
1019 'integer',
1020 'text',
1021 'integer',
1022 'integer',
1023 'text',
1024 'text',
1025 'text',
1026 'text',
1027 'text',
1028 'text',
1029 'text',
1030 'text',
1031 'text',
1032 'text',
1033 'text',
1034 'integer',
1035 'text',
1036 'integer',
1037 'integer',
1038 'integer',
1039 'text',
1040 'text',
1041 'text',
1042 'text',
1043 'text',
1044 'text',
1045 'integer',
1046 'integer',
1047 'integer',
1048 'integer'
1049 ),
1050 array( ilUtil::tf2yn($this->getOnline()),
1051 $this->getAPIAdapterName(),
1052 $this->getAPIFunctionsPrefix(),
1053 $this->getAutoReviewChar(),
1054 $this->getDefaultLessonMode(),
1055 $this->getSubType(),
1056 $this->getStyleSheetId(),
1057 $this->getEditable(),
1058 $this->getMaxAttempt(),
1059 $this->getModuleVersion(),
1060 $this->getCreditMode(),
1061 $this->getAssignedGlossary(),
1062 $this->getTries(),
1063 ilUtil::tf2yn($this->getSession()),
1064 ilUtil::tf2yn($this->getNoMenu()),
1065 ilUtil::tf2yn($this->getHideNavig()),
1066 ilUtil::tf2yn($this->getFourth_edition()),
1067 ilUtil::tf2yn($this->getSequencing()),
1069 ilUtil::tf2yn($this->getObjectives()),
1070 ilUtil::tf2yn($this->getComments()),
1072 ilUtil::tf2yn($this->getDebug()),
1073 $this->getLocalization(),
1074 $this->getSequencingExpertMode(),
1075 $this->getDebugPw(),
1076 $this->getOpenMode(),
1077 $this->getWidth(),
1078 $this->getHeight(),
1082 ilUtil::tf2yn($this->getOfflineMode()),
1083 ilUtil::tf2yn($this->getAutoSuspend()),
1085 $s_mastery_score,
1086 $this->getIdSetting(),
1087 $this->getNameSetting(),
1088 $this->getId())
1089 );
1090
1091 return true;
1092 }
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
getAssignedGlossary()
get assigned glossary
updateMetaData()
update meta data entry
update($pash, $contents, Config $config)

References $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(), getOnline(), getOpenMode(), getSequencing(), getSequencingExpertMode(), getSession(), getStyleSheetId(), getSubType(), getTime_from_lms(), getTries(), getWidth(), ilUtil\tf2yn(), League\Flysystem\Adapter\Polyfill\update(), and ilObject\updateMetaData().

+ Here is the call graph for this function:

◆ zipLmForOfflineMode()

ilObjSAHSLearningModule::zipLmForOfflineMode ( )

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

1470 {
1471 $lmDir=ilUtil::getWebspaceDir("filesystem") . "/lm_data/lm_" . $this->getId();
1472 $zipFile=ilUtil::getDataDir() . "/lm_data/lm_" . $this->getId();
1473 return ilUtil::zip($lmDir, $zipFile, true);
1474 }
static getDataDir()
get data directory (outside webspace)
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file

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

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