ILIAS  release_7 Revision v7.30-3-g800a261c036
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...
 
 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...
 
 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 @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...
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type 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 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, $a_deleted_by)
 
static setDeletedDates ($a_ref_ids, $a_user_id)
 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@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 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ _getTries()

static ilObjSAHSLearningModule::_getTries (   $a_id)
static

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

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: goto.php:24
global $ilDB
$lm_set

References $DIC, $ilDB, and $lm_set.

Referenced by ilPCQuestionGUI\edit().

+ Here is the caller 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 809 of file class.ilObjSAHSLearningModule.php.

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 }
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )

References $DIC, $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 $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.
createDataDirectory()
creates data directory for package files ("./data/lm_data/lm_<id>")
createMetaData()
create meta data entry
getId()
get object id @access public

References $DIC, $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 261 of file class.ilObjSAHSLearningModule.php.

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

Reimplemented from ilObject.

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

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
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 }
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 $DIC, $ilDB, $res, 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 130 of file class.ilObjSAHSLearningModule.php.

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 }

References $DIC, $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 282 of file class.ilObjSAHSLearningModule.php.

283 {
284 return $this->api_adapter;
285 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getAPIFunctionsPrefix()

ilObjSAHSLearningModule::getAPIFunctionsPrefix ( )

get api functions prefix

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

299 {
300 return $this->api_func_prefix;
301 }

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

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 }
$_GET["client_id"]
getIdSetting()
update values for mastery_score / min_normalized_measure in database - not requested

References $_GET, $DIC, 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 1486 of file class.ilObjSAHSLearningModule.php.

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 }

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

+ Here is the call graph for this function:

◆ getAssignedGlossary()

ilObjSAHSLearningModule::getAssignedGlossary ( )

get assigned glossary

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

422 {
423 return $this->assigned_glossary;
424 }

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

700 {
701 return $this->auto_last_visited;
702 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getAutoContinue()

ilObjSAHSLearningModule::getAutoContinue ( )

set auto continue

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

692 {
693 return $this->auto_continue;
694 }

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

374 {
375 return ilUtil::yn2tf($this->auto_review);
376 }
static yn2tf($a_yn)
convert "y"/"n" to true/false

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

389 {
390 return $this->auto_review;
391 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getAutoSuspend()

ilObjSAHSLearningModule::getAutoSuspend ( )

set auto continue

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

741 {
742 return $this->auto_suspend;
743 }

Referenced by update().

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

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 }
ILIAS Setting Class.
global $ilSetting
Definition: privfeed.php:17

References $DIC, $ilSetting, and $lm_set.

◆ getCheck_values()

ilObjSAHSLearningModule::getCheck_values ( )

check_values

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

626 {
627 return $this->check_values;
628 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getComments()

ilObjSAHSLearningModule::getComments ( )

comments

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

600 {
601 return $this->comments;
602 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getCreditMode()

ilObjSAHSLearningModule::getCreditMode ( )

get credit mode

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

315 {
316 return $this->credit_mode;
317 }

Referenced by update().

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

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 }

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

653 {
654 return $this->debug;
655 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getDebugActivated()

ilObjSAHSLearningModule::getDebugActivated ( )

debugActivated

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

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 }

References $DIC, $ilSetting, and $lm_set.

◆ getDebugPw()

ilObjSAHSLearningModule::getDebugPw ( )

debug pw

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

669 {
670 return $this->debug_pw;
671 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getDefaultLessonMode()

ilObjSAHSLearningModule::getDefaultLessonMode ( )

get default lesson mode

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

339 {
340 global $DIC;
341 if ($DIC['ilUser']->getId() == 13) {
342 return "browse";
343 }
344 return $this->lesson_mode;
345 }

References $DIC, and ilObject\getId().

Referenced by update().

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

@access public

Returns
integer the disk usage in bytes

Reimplemented from ilObject.

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

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.

References ilObjSAHSLearningModuleAccess\_lookupDiskUsage().

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

185 {
186 return $this->editable;
187 }

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

781 {
782 return $this->height;
783 }

Referenced by getViewButton(), and update().

+ Here is the caller graph for this function:

◆ getHideNavig()

ilObjSAHSLearningModule::getHideNavig ( )

hide navigation tree

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

477 {
478 return $this->hide_navig;
479 }

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

912 {
913 return $this->id_setting;
914 }

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

535 {
536 return $this->ie_force_render;
537 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getInteractions()

ilObjSAHSLearningModule::getInteractions ( )

interactions

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

574 {
575 return $this->interactions;
576 }

Referenced by update().

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

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

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getMasteryScore()

ilObjSAHSLearningModule::getMasteryScore ( )

get mastery_score

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

794 {
795 return $this->mastery_score;
796 }

Referenced by update().

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

397 {
398 return $this->max_attempt;
399 }

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

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 }
static _getMaxScoreForUser($a_id, $a_user)
Returns score.max for the learning module, refered to the last sco where score.max is set.
$ilUser
Definition: imgupload.php:18

References $DIC, $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 413 of file class.ilObjSAHSLearningModule.php.

414 {
415 return $this->module_version;
416 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getNameSetting()

ilObjSAHSLearningModule::getNameSetting ( )

get name_setting

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

928 {
929 return $this->name_setting;
930 }

Referenced by getApiStudentName(), and update().

+ Here is the caller graph for this function:

◆ getNoMenu()

ilObjSAHSLearningModule::getNoMenu ( )

disable menu

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

461 {
462 return $this->no_menu;
463 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getObjectives()

ilObjSAHSLearningModule::getObjectives ( )

objectives

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

587 {
588 return $this->objectives;
589 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getOfflineMode()

ilObjSAHSLearningModule::getOfflineMode ( )

offlineMode

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

639 {
640 return $this->offline_mode;
641 }

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

757 {
758 return $this->open_mode;
759 }

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

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 }
static _getUniqueScaledScoreForUser($a_id, $a_user)
Get the Unique Scaled Score of a course Conditions: Only one SCO may set cmi.score....

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

+ Here is the call graph for this function:

◆ getScormModulesForGlossary()

static ilObjSAHSLearningModule::getScormModulesForGlossary (   $a_glo_id)
static

Get SCORM modules that assign a certain glossary.

Parameters

return

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

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

References $DIC, $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 560 of file class.ilObjSAHSLearningModule.php.

561 {
562 return $this->sequencing;
563 }

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

726 {
727 return $this->seq_exp_mode;
728 }

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getSession()

ilObjSAHSLearningModule::getSession ( )

get session setting

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

445 {
446 return $this->session;
447 }
$session

References $session.

Referenced by update().

+ Here is the caller graph for this function:

◆ getSessionDeactivated()

ilObjSAHSLearningModule::getSessionDeactivated ( )

sessionDisabled for SCORM 2004

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

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 }

References $DIC, $ilSetting, and $lm_set.

◆ getStyleSheetId()

ilObjSAHSLearningModule::getStyleSheetId ( )

get ID of assigned style sheet object

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

350 {
351 return $this->style_id;
352 }

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

1141 {
1142 return $this->sub_type;
1143 }

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

613 {
614 return $this->time_from_lms;
615 }

Referenced by update().

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

206 {
207 return $this->tries;
208 }

Referenced by update().

+ Here is the caller graph for this function:

◆ getViewButton()

ilObjSAHSLearningModule::getViewButton ( )

get button for view

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

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

769 {
770 return $this->width;
771 }

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

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 }
static _lookupType($a_id, $a_reference=false)
lookup object type

References $DIC, $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 1323 of file class.ilObjSAHSLearningModule.php.

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

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

291 {
292 $this->api_adapter = $a_api;
293 }

Referenced by read().

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

307 {
308 $this->api_func_prefix = $a_prefix;
309 }

Referenced by read().

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

430 {
431 $this->assigned_glossary = $a_assigned_glossary;
432 }

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

705 {
706 $this->auto_last_visited = $a_auto_last_visited;
707 }

Referenced by read().

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

685 {
686 $this->auto_continue = $a_auto_continue;
687 }

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

367 {
368 $this->auto_review = ilUtil::tf2yn($a_auto_review);
369 }
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 381 of file class.ilObjSAHSLearningModule.php.

382 {
383 $this->auto_review = $a_auto_review;
384 }

Referenced by read().

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

734 {
735 $this->auto_suspend = $a_auto_suspend;
736 }

Referenced by read().

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

631 {
632 $this->check_values = $a_check_values;
633 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setComments()

ilObjSAHSLearningModule::setComments (   $a_comments)

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

605 {
606 $this->comments = $a_comments;
607 }

Referenced by read().

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

323 {
324 $this->credit_mode = $a_credit_mode;
325 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDebug()

ilObjSAHSLearningModule::setDebug (   $a_debug)

debug

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

661 {
662 $this->debug = $a_debug;
663 }

Referenced by read().

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

677 {
678 $this->debug_pw = $a_debug_pw;
679 }

Referenced by read().

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

331 {
332 $this->lesson_mode = $a_lesson_mode;
333 }

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

175 {
176 $this->editable = $a_editable;
177 }

Referenced by read().

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

553 {
554 $this->fourth_edition = $a_fourth_edition;
555 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setHeight()

ilObjSAHSLearningModule::setHeight (   $a_height)

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

785 {
786 $this->height = $a_height;
787 }

Referenced by read().

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

485 {
486 $this->hide_navig = $a_hide_navig;
487 }

Referenced by read().

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

920 {
921 $this->id_setting = $a_id_setting;
922 }

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

540 {
541 $this->ie_force_render = $a_ie_force_render;
542 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setInteractions()

ilObjSAHSLearningModule::setInteractions (   $a_interactions)

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

579 {
580 $this->interactions = $a_interactions;
581 }

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

216 {
217 $this->localization = $a_val;
218 }

Referenced by read().

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

802 {
803 $this->mastery_score = $a_mastery_score;
804 }

Referenced by read().

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

406 {
407 $this->max_attempt = $a_max_attempt;
408 }

Referenced by read().

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

437 {
438 $this->module_version = $a_module_version;
439 }

Referenced by read().

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

936 {
937 $this->name_setting = $a_name_setting;
938 }

Referenced by read().

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

469 {
470 $this->no_menu = $a_no_menu;
471 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setObjectives()

ilObjSAHSLearningModule::setObjectives (   $a_objectives)

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

592 {
593 $this->objectives = $a_objectives;
594 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOfflineMode()

ilObjSAHSLearningModule::setOfflineMode (   $a_offline_mode)

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

644 {
645 $this->offline_mode = $a_offline_mode;
646 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setOpenMode()

ilObjSAHSLearningModule::setOpenMode (   $a_open_mode)

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

761 {
762 $this->open_mode = $a_open_mode;
763 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setSequencing()

ilObjSAHSLearningModule::setSequencing (   $a_sequencing)

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

566 {
567 $this->sequencing = $a_sequencing;
568 }

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

716 {
717 $this->seq_exp_mode = $a_val;
718 }

Referenced by read().

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

453 {
454 $this->session = $a_session;
455 }

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

358 {
359 $this->style_id = $a_style_id;
360 }

Referenced by read().

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

1133 {
1134 $this->sub_type = $a_sub_type;
1135 }

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

618 {
619 $this->time_from_lms = $a_time_from_lms;
620 }

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

196 {
197 $this->tries = $a_tries;
198 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setWidth()

ilObjSAHSLearningModule::setWidth (   $a_width)

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

773 {
774 $this->width = $a_width;
775 }

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

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()),
1060 ilUtil::tf2yn($this->getObjectives()),
1061 ilUtil::tf2yn($this->getComments()),
1063 ilUtil::tf2yn($this->getDebug()),
1064 $this->getLocalization(),
1065 $this->getSequencingExpertMode(),
1066 $this->getDebugPw(),
1067 $this->getOpenMode(),
1068 $this->getWidth(),
1069 $this->getHeight(),
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 }
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

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(), and ilObject\updateMetaData().

+ Here is the call graph for this function:

◆ zipLmForOfflineMode()

ilObjSAHSLearningModule::zipLmForOfflineMode ( )

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

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