ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjSAHSLearningModule Class Reference

Class ilObjSCORMLearningModule. More...

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

Public Member Functions

 ilObjSAHSLearningModule ($a_id=0, $a_call_by_reference=true)
 Constructor public. More...
 
 create ($upload=false)
 create file based lm More...
 
 read ()
 read object More...
 
 _lookupOnline ($a_id)
 check wether scorm module is online More...
 
 getAffectiveLocalization ($a_id)
 Get affective localization. More...
 
 _lookupSubType ($a_obj_id)
 lookup subtype id (scorm, aicc, hacp) 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, HACP, SAHS, AICC More...
 
 getAutoReview ()
 get auto review as true/false for SCORM 1.2, HACP, SAHS, AICC 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 max attempt 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_compatibility ()
 set compatibility mode for Internet Exlorer manually More...
 
 setIe_compatibility ($a_ie_compatibility)
 
 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)
 
 update ()
 update meta data only 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...
 
 notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0)
 notifys an object about an event occured Based on the event happend, each object may decide how it reacts. 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...
 
 cloneObject ($a_target_id, $a_copy_id=0)
 Clone scorm object. More...
 
 zipLmForOfflineMode ()
 
- Public Member Functions inherited from ilObject
 ilObject ($a_id=0, $a_reference=true)
 Constructor public. More...
 
 withReferences ()
 determines wehter objects are referenced or not (got ref ids or not) More...
 
 read ($a_force_db=false)
 read object data from db into object More...
 
 getId ()
 get object id public More...
 
 setId ($a_id)
 set object id public More...
 
 setRefId ($a_id)
 set reference id public More...
 
 getRefId ()
 get reference id public More...
 
 getType ()
 get object type public More...
 
 setType ($a_type)
 set object type public More...
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 get object title public More...
 
 getUntranslatedTitle ()
 get untranslated object title public More...
 
 setTitle ($a_title)
 set object title More...
 
 getDescription ()
 get object description More...
 
 setDescription ($a_desc)
 set object description More...
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 get import id More...
 
 setImportId ($a_import_id)
 set import id More...
 
 getOwner ()
 get object owner More...
 
 getOwnerName ()
 
 _lookupOwnerName ($a_owner_id)
 lookup owner name for owner id More...
 
 setOwner ($a_owner)
 set object owner More...
 
 getCreateDate ()
 get create date public More...
 
 getLastUpdateDate ()
 get last update date public More...
 
 getDiskUsage ()
 Gets the disk usage of the object in bytes. More...
 
 setObjDataRecord ($a_record)
 set object_data record (note: this method should only be called from the ilObjectFactory class) 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...
 
 _getIdForImportId ($a_import_id)
 get current object id for import id (static) More...
 
 _lookupOwner ($a_id)
 lookup object owner More...
 
 _lookupLastUpdate ($a_id, $a_as_string=false)
 lookup last update More...
 
 _getLastUpdateOfObjects ($a_objs)
 Get last update for a set of media objects. More...
 
 _setDeletedDate ($a_ref_id)
 only called in ilTree::saveSubTree More...
 
 _resetDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
 _lookupDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
 _writeTitle ($a_obj_id, $a_title)
 write title to db (static) More...
 
 _writeDescription ($a_obj_id, $a_desc)
 write description to db (static) More...
 
 _writeImportId ($a_obj_id, $a_import_id)
 write import id to db (static) More...
 
 _isInTrash ($a_ref_id)
 checks wether object is in trash More...
 
 _hasUntrashedReference ($a_obj_id)
 checks wether an object has at least one reference that is not in trash More...
 
 _getObjectsDataForType ($a_type, $a_omit_trash=false)
 get all objects of a certain type More...
 
 putInTree ($a_parent_ref)
 maybe this method should be in tree object!? More...
 
 setPermissions ($a_parent_ref)
 set permissions of object 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) public More...
 
 createRoleFolder ()
 creates a local role folder More...
 
 applyDidacticTemplate ($a_tpl_id)
 Apply template. More...
 
 notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0)
 notifys an object about an event occured Based on the event passed, each object may decide how it reacts. More...
 
 setRegisterMode ($a_bool)
 
 isUserRegistered ($a_user_id=0)
 
 requireRegistration ()
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 cloneObject ($a_target_id, $a_copy_id=0, $a_omit_tree=false)
 Clone object permissions, put in tree ... More...
 
 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...
 
 _lookupCreationDate ($a_id)
 Lookup creation date. More...
 

Static Public Member Functions

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 _getAllReferences ($a_id)
 get all reference ids of object More...
 
static _lookupTitle ($a_id)
 lookup object title More...
 
static _getIdsForTitle ($title, $type='', $partialmatch=false)
 
static _lookupDescription ($a_id)
 lookup object description More...
 
static _lookupObjId ($a_id)
 
static setDeletedDates ($a_ref_ids)
 Set deleted date type $ilDB. More...
 
static _lookupType ($a_id, $a_reference=false)
 lookup object type More...
 
static _lookupObjectId ($a_ref_id)
 lookup object id More...
 
static _exists ($a_id, $a_reference=false, $a_type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType ($a_obj_type="", $a_owner="")
 Get objects by type. More...
 
static _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true)
 Prepare copy wizard object selection. More...
 
static _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 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
 
 $ilias
 
 $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
 
 $obj_data_record
 object_data record More...
 

Detailed Description

Member Function Documentation

◆ _getTries()

static ilObjSAHSLearningModule::_getTries (   $a_id)
static

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

References $lm_set.

Referenced by ilPCQuestionGUI\edit().

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

◆ _lookupOnline()

ilObjSAHSLearningModule::_lookupOnline (   $a_id)

check wether scorm module is online

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

References $lm_set, and ilUtil\yn2tf().

122  {
123  global $ilDB;
124 
125  $lm_set = $ilDB->queryF('SELECT c_online FROM sahs_lm WHERE id = %s',
126  array('integer'), array($a_id));
127  $lm_rec = $ilDB->fetchAssoc($lm_set);
128 
129  return ilUtil::yn2tf($lm_rec["c_online"]);
130  }
$lm_set
static yn2tf($a_yn)
convert "y"/"n" to true/false
+ Here is the call graph for this function:

◆ _lookupSubType()

◆ cloneObject()

ilObjSAHSLearningModule::cloneObject (   $a_target_id,
  $a_copy_id = 0 
)

Clone scorm object.

Parameters
inttarget ref_id
intcopy id

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

References ilObject\$ilias, $ilUser, ilObject\cloneMetaData(), getAPIAdapterName(), getAPIFunctionsPrefix(), getAssignedGlossary(), getAuto_last_visited(), getAutoContinue(), getAutoReviewChar(), getAutoSuspend(), getCheck_values(), getComments(), getCreditMode(), getDebug(), getDebugPw(), getDefaultLessonMode(), ilObject\getDescription(), getEditable(), getHeight(), getHideNavig(), getIe_compatibility(), getIe_force_render(), getInteractions(), getLocalization(), getMaxAttempt(), getModuleVersion(), getNoMenu(), getObjectives(), getOfflineMode(), getOpenMode(), ilObject\getRefId(), getSequencing(), getSequencingExpertMode(), getSession(), getStyleSheetId(), getSubType(), getTime_from_lms(), ilObject\getTitle(), getTries(), getWidth(), and populateByDirectoy().

1281  {
1282  global $ilDB, $ilUser, $ilias;
1283 
1284  $new_obj = parent::cloneObject($a_target_id,$a_copy_id);
1285  $this->cloneMetaData($new_obj);
1286 
1287  // copy properties
1288  $new_obj->setTitle($this->getTitle());
1289  $new_obj->setDescription($this->getDescription());
1290  $new_obj->setSubType($this->getSubType());
1291  $new_obj->setAPIAdapterName($this->getAPIAdapterName());
1292  $new_obj->setAPIFunctionsPrefix($this->getAPIFunctionsPrefix());
1293  $new_obj->setAutoReviewChar($this->getAutoReviewChar());
1294  $new_obj->setDefaultLessonMode($this->getDefaultLessonMode());
1295  $new_obj->setEditable($this->getEditable());
1296  $new_obj->setMaxAttempt($this->getMaxAttempt());
1297  $new_obj->setModuleVersion($this->getModuleVersion());
1298  $new_obj->setModuleVersion(1);
1299  $new_obj->setCreditMode($this->getCreditMode());
1300  $new_obj->setAssignedGlossary($this->getAssignedGlossary());
1301  $new_obj->setTries($this->getTries());
1302  $new_obj->setSession($this->getSession());
1303  $new_obj->setNoMenu($this->getNoMenu());
1304  $new_obj->setHideNavig($this->getHideNavig());
1305  $new_obj->setFourth_edition($this->getFourth_edition());
1306  $new_obj->setSequencing($this->getSequencing());
1307  $new_obj->setInteractions($this->getInteractions());
1308  $new_obj->setObjectives($this->getObjectives());
1309  $new_obj->setComments($this->getComments());
1310  $new_obj->setTime_from_lms($this->getTime_from_lms());
1311  $new_obj->setDebug($this->getDebug());
1312  $new_obj->setLocalization($this->getLocalization());
1313  $new_obj->setSequencingExpertMode($this->getSequencingExpertMode());
1314  $new_obj->setDebugPw($this->getDebugPw());
1315  $new_obj->setOpenMode($this->getOpenMode());
1316  $new_obj->setWidth($this->getWidth());
1317  $new_obj->setHeight($this->getHeight());
1318  $new_obj->setAutoContinue($this->getAutoContinue());
1319  $new_obj->setAuto_last_visited($this->getAuto_last_visited());
1320  $new_obj->setCheck_values($this->getCheck_values());
1321  $new_obj->setOfflineMode($this->getOfflineMode());
1322  $new_obj->setAutoSuspend($this->getAutoSuspend());
1323  $new_obj->setIe_compatibility($this->getIe_compatibility());
1324  $new_obj->setIe_force_render($this->getIe_force_render());
1325  $new_obj->setStyleSheetId($this->getStyleSheetId());
1326  $new_obj->update();
1327 
1328 
1329  // set/copy stylesheet
1330 /* include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
1331  $style_id = $this->getStyleSheetId();
1332  if ($style_id > 0 && !ilObjStyleSheet::_lookupStandard($style_id))
1333  {
1334  $style_obj = $ilias->obj_factory->getInstanceByObjId($style_id);
1335  $new_id = $style_obj->ilClone();
1336  $new_obj->setStyleSheetId($new_id);
1337  $new_obj->update();
1338  }*/
1339 
1340  // up to this point $new_obj is of type ilobjsahslearning module
1341 
1342  // create instance of correct subtype and call forward it to
1343  // cloneIntoNewObject method
1344  switch ($this->getSubType())
1345  {
1346  case "scorm":
1347  include_once("./Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php");
1348  $source_obj = new ilObjSCORMLearningModule($this->getRefId());
1349  $new_obj = new ilObjSCORMLearningModule($new_obj->getRefId());
1350  break;
1351 
1352  case "scorm2004":
1353  include_once("./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php");
1354  $source_obj = new ilObjSCORM2004LearningModule($this->getRefId());
1355  $new_obj = new ilObjSCORM2004LearningModule($new_obj->getRefId());
1356  break;
1357 
1358  case "aicc":
1359  include_once("./Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php");
1360  $source_obj = new ilObjAICCLearningModule($this->getRefId());
1361  $new_obj = new ilObjAICCLearningModule($new_obj->getRefId());
1362  break;
1363 
1364  case "hacp":
1365  include_once("./Modules/ScormAicc/classes/class.ilObjHACPLearningModule.php");
1366  $source_obj = new ilObjHACPLearningModule($this->getRefId());
1367  $new_obj = new ilObjHACPLearningModule($new_obj->getRefId());
1368  break;
1369 
1370  }
1371 
1372  // copy data directory
1373  $new_obj->populateByDirectoy($source_obj->getDataDirectory());
1374 
1375  // copy authored content ...
1376  if ($new_obj->getEditable())
1377  {
1378  $source_obj->copyAuthoredContent($new_obj);
1379  }
1380  else
1381  {
1382  // ... or read manifest file
1383  $new_obj->readObject();
1384  }
1385 
1386  return $new_obj;
1387  }
getSequencingExpertMode()
Get sequencing expert mode.
getStyleSheetId()
get ID of assigned style sheet object
getIe_compatibility()
set compatibility mode for Internet Exlorer manually
Class ilObjAICCLearningModule.
Class ilObjAICCLearningModule.
getAutoReviewChar()
get auto review as Char for SCORM 2004
getAPIAdapterName()
get api adapter name
getAssignedGlossary()
get assigned glossary
getAPIFunctionsPrefix()
get api functions prefix
populateByDirectoy($a_dir, $a_filename="")
Populate by directory.
getIe_force_render()
force Internet Explorer to render again after some Milliseconds - useful for learning Modules with a ...
getOpenMode()
open_mode 0: in Tab/new Window like in previous versions 1: in iFrame with width=100% and heigth=100%...
getTitle()
get object title public
getDescription()
get object description
cloneMetaData($target_obj)
Copy meta data.
global $ilUser
Definition: imgupload.php:15
Class ilObjSCORM2004LearningModule.
getRefId()
get reference id public
getDefaultLessonMode()
get default lesson mode
Class ilObjSCORMLearningModule.
+ Here is the call graph for this function:

◆ create()

ilObjSAHSLearningModule::create (   $upload = false)

create file based lm

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

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

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

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

Referenced by create().

257  {
258  $lm_data_dir = ilUtil::getWebspaceDir()."/lm_data";
259  ilUtil::makeDir($lm_data_dir);
261  }
getDataDirectory($mode="filesystem")
get data directory of lm
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
static getWebspaceDir($mode="filesystem")
get webspace directory
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilObjSAHSLearningModule::delete ( )

delete SCORM learning module and all related data

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

public

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

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

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

1039  {
1040  global $ilDB, $ilLog;
1041 
1042  // always call parent delete function first!!
1043  if (!parent::delete())
1044  {
1045  return false;
1046  }
1047 
1048  // delete meta data of scorm content object
1049 /*
1050  $nested = new ilNestedSetXML();
1051  $nested->init($this->getId(), $this->getType());
1052  $nested->deleteAllDBData();
1053 */
1054  $this->deleteMetaData();
1055 
1056  // delete data directory
1057  ilUtil::delDir($this->getDataDirectory());
1058 
1059  // delete scorm learning module record
1060  $ilDB->manipulateF('DELETE FROM sahs_lm WHERE id = %s',
1061  array('integer'), array($this->getId()));
1062 
1063  $ilLog->write("SAHS Delete(SAHSLM), Subtype: ".$this->getSubType());
1064 
1065  if ($this->getSubType() == "scorm")
1066  {
1067  // remove all scorm objects and scorm tree
1068  include_once("./Modules/ScormAicc/classes/SCORM/class.ilSCORMTree.php");
1069  include_once("./Modules/ScormAicc/classes/SCORM/class.ilSCORMObject.php");
1070  $sc_tree = new ilSCORMTree($this->getId());
1071  $r_id = $sc_tree->readRootId();
1072  if ($r_id > 0)
1073  {
1074  $items = $sc_tree->getSubTree($sc_tree->getNodeData($r_id));
1075  foreach($items as $item)
1076  {
1077  $sc_object =& ilSCORMObject::_getInstance($item["obj_id"], $this->getId());
1078  if (is_object($sc_object))
1079  {
1080  $sc_object->delete();
1081  }
1082  }
1083  $sc_tree->removeTree($sc_tree->getTreeId());
1084  }
1085  }
1086 
1087  if ($this->getSubType() != "scorm")
1088  {
1089  // delete aicc data
1090  $res = $ilDB->queryF('
1091  SELECT aicc_object.obj_id FROM aicc_object, aicc_units
1092  WHERE aicc_object.obj_id = aicc_units.obj_id
1093  AND aicc_object.slm_id = %s',
1094  array('integer'), array($this->getId()));
1095 
1096  while($row = $ilDB->fetchAssoc($res))
1097  {
1098  $obj_id = $row['obj_id'];
1099  $ilDB->manipulateF('
1100  DELETE FROM aicc_units WHERE obj_id = %s',
1101  array('integer'), array($obj_id));
1102  }
1103 
1104  $res = $ilDB->queryF('
1105  SELECT aicc_object.obj_id FROM aicc_object, aicc_course
1106  WHERE aicc_object.obj_id = aicc_course.obj_id
1107  AND aicc_object.slm_id = %s',
1108  array('integer'), array($this->getId()));
1109 
1110  while($row = $ilDB->fetchAssoc($res))
1111  {
1112  $obj_id = $row['obj_id'];
1113  $ilDB->manipulateF('
1114  DELETE FROM aicc_course WHERE obj_id = %s',
1115  array('integer'), array($obj_id));
1116  }
1117 
1118  $ilDB->manipulateF('
1119  DELETE FROM aicc_object WHERE slm_id = %s',
1120  array('integer'), array($this->getId()));
1121  }
1122 
1123  $q_log = "DELETE FROM scorm_tracking WHERE obj_id = ".$ilDB->quote($this->getId());
1124  $ilLog->write("SAHS Delete(SAHSLM): ".$q_log);
1125 
1126  $ilDB->manipulateF('DELETE FROM scorm_tracking WHERE obj_id = %s',
1127  array('integer'), array($this->getId()));
1128 
1129  $q_log = "DELETE FROM sahs_user WHERE obj_id = ".$ilDB->quote($this->getId());
1130  $ilLog->write("SAHS Delete(SAHSLM): ".$q_log);
1131 
1132  $ilDB->manipulateF('DELETE FROM sahs_user WHERE obj_id = %s',
1133  array('integer'), array($this->getId()));
1134 
1135  // always call parent delete function at the end!!
1136  return true;
1137  }
getDataDirectory($mode="filesystem")
get data directory of lm
getId()
get object id public
SCORM Object Tree.
deleteMetaData()
delete meta data entry
& _getInstance($a_id, $a_slm_id)
get instance of specialized GUI class
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
+ Here is the call graph for this function:

◆ getAffectiveLocalization()

ilObjSAHSLearningModule::getAffectiveLocalization (   $a_id)

Get affective localization.

Parameters
int$a_idscorm lm id

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

References $lm_set, and ilObject\$lng.

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

138  {
139  global $ilDB, $lng;
140 
141  $lm_set = $ilDB->queryF('SELECT localization FROM sahs_lm WHERE id = %s',
142  array('integer'), array($a_id));
143  $lm_rec = $ilDB->fetchAssoc($lm_set);
144  $inst_lang = $lng->getInstalledLanguages();
145  if ($lm_rec["localization"] != "" && in_array($lm_rec["localization"], $inst_lang))
146  {
147  return $lm_rec["localization"];
148  }
149  return $lng->getLangKey();
150  }
$lm_set
+ Here is the caller graph for this function:

◆ getAPIAdapterName()

ilObjSAHSLearningModule::getAPIAdapterName ( )

get api adapter name

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

Referenced by cloneObject(), and update().

278  {
279  return $this->api_adapter;
280  }
+ Here is the caller graph for this function:

◆ getAPIFunctionsPrefix()

ilObjSAHSLearningModule::getAPIFunctionsPrefix ( )

get api functions prefix

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

Referenced by cloneObject(), and update().

294  {
295  return $this->api_func_prefix;
296  }
+ Here is the caller graph for this function:

◆ getAssignedGlossary()

ilObjSAHSLearningModule::getAssignedGlossary ( )

get assigned glossary

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

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

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

◆ getAuto_last_visited()

ilObjSAHSLearningModule::getAuto_last_visited ( )

auto_last_visited

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

Referenced by cloneObject(), and update().

695  {
696  return $this->auto_last_visited;
697  }
+ Here is the caller graph for this function:

◆ getAutoContinue()

ilObjSAHSLearningModule::getAutoContinue ( )

set auto continue

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

Referenced by cloneObject(), and update().

687  {
688  return $this->auto_continue;
689  }
+ Here is the caller graph for this function:

◆ getAutoReview()

ilObjSAHSLearningModule::getAutoReview ( )

get auto review as true/false for SCORM 1.2, HACP, SAHS, AICC

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

References ilUtil\yn2tf().

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

◆ getAutoReviewChar()

ilObjSAHSLearningModule::getAutoReviewChar ( )

get auto review as Char for SCORM 2004

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

Referenced by cloneObject(), and update().

380  {
381  return $this->auto_review;
382  }
+ Here is the caller graph for this function:

◆ getAutoSuspend()

ilObjSAHSLearningModule::getAutoSuspend ( )

set auto continue

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

Referenced by cloneObject(), and update().

736  {
737  return $this->auto_suspend;
738  }
+ Here is the caller graph for this function:

◆ getCacheDeactivated()

ilObjSAHSLearningModule::getCacheDeactivated ( )

BrowserCacheDisabled for SCORM 2004 / ENABLE_JS_DEBUG.

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

References $ilSetting, and $lm_set.

484  {
485  global $ilSetting;
486  $lm_set = new ilSetting("lm");
487  if ($lm_set->get("scormdebug_disable_cache") == "1") return true;
488  return false;
489  }
ILIAS Setting Class.
$lm_set
global $ilSetting
Definition: privfeed.php:40

◆ getCheck_values()

ilObjSAHSLearningModule::getCheck_values ( )

check_values

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

Referenced by cloneObject(), and update().

621  {
622  return $this->check_values;
623  }
+ Here is the caller graph for this function:

◆ getComments()

ilObjSAHSLearningModule::getComments ( )

comments

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

Referenced by cloneObject(), and update().

595  {
596  return $this->comments;
597  }
+ Here is the caller graph for this function:

◆ getCreditMode()

ilObjSAHSLearningModule::getCreditMode ( )

get credit mode

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

Referenced by cloneObject(), and update().

310  {
311  return $this->credit_mode;
312  }
+ Here is the caller graph for this function:

◆ getDataDirectory()

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

get data directory of lm

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

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

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

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

◆ getDebug()

ilObjSAHSLearningModule::getDebug ( )

debug

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

Referenced by cloneObject(), and update().

648  {
649  return $this->debug;
650  }
+ Here is the caller graph for this function:

◆ getDebugActivated()

ilObjSAHSLearningModule::getDebugActivated ( )

debugActivated

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

References $ilSetting, and $lm_set.

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

◆ getDebugPw()

ilObjSAHSLearningModule::getDebugPw ( )

debug pw

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

Referenced by cloneObject(), and update().

664  {
665  return $this->debug_pw;
666  }
+ Here is the caller graph for this function:

◆ getDefaultLessonMode()

ilObjSAHSLearningModule::getDefaultLessonMode ( )

get default lesson mode

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

Referenced by cloneObject(), and update().

334  {
335  return $this->lesson_mode;
336  }
+ Here is the caller graph for this function:

◆ getDiskUsage()

ilObjSAHSLearningModule::getDiskUsage ( )

Gets the disk usage of the object in bytes.

public

Returns
integer the disk usage in bytes

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

References ilObjSAHSLearningModuleAccess\_lookupDiskUsage().

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

◆ getEditable()

ilObjSAHSLearningModule::getEditable ( )

Get Editable.

Returns
boolean Editable

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

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

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

◆ getFourth_Edition()

ilObjSAHSLearningModule::getFourth_Edition ( )

SCORM 2004 4th edition features.

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

543  {
544  return $this->fourth_edition;
545  }

◆ getHeight()

ilObjSAHSLearningModule::getHeight ( )

height

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

Referenced by cloneObject(), and update().

776  {
777  return $this->height;
778  }
+ Here is the caller graph for this function:

◆ getHideNavig()

ilObjSAHSLearningModule::getHideNavig ( )

hide navigation tree

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

Referenced by cloneObject(), and update().

468  {
469  return $this->hide_navig;
470  }
+ Here is the caller graph for this function:

◆ getIe_compatibility()

ilObjSAHSLearningModule::getIe_compatibility ( )

set compatibility mode for Internet Exlorer manually

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

Referenced by cloneObject(), and update().

517  {
518  return $this->ie_compatibility;
519  }
+ 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 529 of file class.ilObjSAHSLearningModule.php.

Referenced by cloneObject(), and update().

530  {
531  return $this->ie_force_render;
532  }
+ Here is the caller graph for this function:

◆ getInteractions()

ilObjSAHSLearningModule::getInteractions ( )

interactions

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

Referenced by cloneObject(), and update().

569  {
570  return $this->interactions;
571  }
+ Here is the caller graph for this function:

◆ getLocalization()

ilObjSAHSLearningModule::getLocalization ( )

Get localization.

Returns
string localization

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

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

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

◆ getMaxAttempt()

ilObjSAHSLearningModule::getMaxAttempt ( )

get max attempt

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

Referenced by cloneObject(), and update().

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

◆ getMaxPoints()

ilObjSAHSLearningModule::getMaxPoints ( )

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

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

public

Returns
float

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

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

1239  {
1240  global $ilUser;
1241 
1242  if(strcmp($this->getSubType(), 'scorm2004') == 0)
1243  {
1244  $res = ilObjSCORM2004LearningModule::_getMaxScoreForUser($this->getId(), $ilUser->getId());
1245  return $res;
1246  }
1247  else
1248  {
1249  return null;
1250  }
1251  }
getId()
get object id public
global $ilUser
Definition: imgupload.php:15
static _getMaxScoreForUser($a_id, $a_user)
Returns score.max for the learning module, refered to the last sco where score.max is set...
+ Here is the call graph for this function:

◆ getModuleVersion()

ilObjSAHSLearningModule::getModuleVersion ( )

get max attempt

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

Referenced by cloneObject(), and update().

405  {
406  return $this->module_version;
407  }
+ Here is the caller graph for this function:

◆ getNoMenu()

ilObjSAHSLearningModule::getNoMenu ( )

disable menu

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

Referenced by cloneObject(), and update().

452  {
453  return $this->no_menu;
454  }
+ Here is the caller graph for this function:

◆ getObjectives()

ilObjSAHSLearningModule::getObjectives ( )

objectives

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

Referenced by cloneObject(), and update().

582  {
583  return $this->objectives;
584  }
+ Here is the caller graph for this function:

◆ getOfflineMode()

ilObjSAHSLearningModule::getOfflineMode ( )

offlineMode

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

Referenced by cloneObject(), and update().

634  {
635  return $this->offline_mode;
636  }
+ Here is the caller graph for this function:

◆ getOnline()

ilObjSAHSLearningModule::getOnline ( )

set online

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

Referenced by update().

1007  {
1008  return $this->online;
1009  }
+ 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 751 of file class.ilObjSAHSLearningModule.php.

Referenced by cloneObject(), and update().

752  {
753  return $this->open_mode;
754  }
+ 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 1207 of file class.ilObjSAHSLearningModule.php.

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

1208  {
1209  global $ilUser;
1210  if (strcmp($this->getSubType(), "scorm2004") == 0)
1211  {
1213  if (!is_null($res))
1214  {
1215  return $res * 100.0;
1216  }
1217  else
1218  {
1219  return $res;
1220  }
1221  }
1222  else
1223  {
1224  return null;
1225  }
1226  }
getId()
get object id public
static _getUniqueScaledScoreForUser($a_id, $a_user)
Get the Unique Scaled Score of a course Conditions: Only one SCO may set cmi.score.scaled.
global $ilUser
Definition: imgupload.php:15
+ Here is the call graph for this function:

◆ getScormModulesForGlossary()

static ilObjSAHSLearningModule::getScormModulesForGlossary (   $a_glo_id)
static

Get SCORM modules that assign a certain glossary.

Parameters

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

References ilObject\_hasUntrashedReference().

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

958  {
959  global $ilDB;
960 
961  $set = $ilDB->query("SELECT DISTINCT id FROM sahs_lm WHERE ".
962  " glossary = ".$ilDB->quote($a_glo_id, "integer"));
963  $sms = array();
964  while ($rec = $ilDB->fetchAssoc($set))
965  {
966  if (ilObject::_hasUntrashedReference($rec["id"]))
967  {
968  $sms[] = $rec["id"];
969  }
970  }
971  return $sms;
972  }
_hasUntrashedReference($a_obj_id)
checks wether an object has at least one reference that is not in trash
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSequencing()

ilObjSAHSLearningModule::getSequencing ( )

sequencing

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

Referenced by cloneObject(), and update().

556  {
557  return $this->sequencing;
558  }
+ Here is the caller graph for this function:

◆ getSequencingExpertMode()

ilObjSAHSLearningModule::getSequencingExpertMode ( )

Get sequencing expert mode.

Returns
boolean sequencing expert mode

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

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

721  {
722  return $this->seq_exp_mode;
723  }
+ Here is the caller graph for this function:

◆ getSession()

ilObjSAHSLearningModule::getSession ( )

get session setting

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

Referenced by cloneObject(), and update().

436  {
437  return $this->session;
438  }
+ Here is the caller graph for this function:

◆ getSessionDeactivated()

ilObjSAHSLearningModule::getSessionDeactivated ( )

sessionDisabled for SCORM 2004

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

References $ilSetting, and $lm_set.

495  {
496  global $ilSetting;
497  $lm_set = new ilSetting("lm");
498  if ($lm_set->get("scorm_without_session") == "1") return true;
499  return false;
500  }
ILIAS Setting Class.
$lm_set
global $ilSetting
Definition: privfeed.php:40

◆ getStyleSheetId()

ilObjSAHSLearningModule::getStyleSheetId ( )

get ID of assigned style sheet object

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

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

341  {
342  return $this->style_id;
343  }
+ Here is the caller graph for this function:

◆ getSubType()

ilObjSAHSLearningModule::getSubType ( )

set sub type

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

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

1023  {
1024  return $this->sub_type;
1025  }
+ Here is the caller graph for this function:

◆ getTime_from_lms()

ilObjSAHSLearningModule::getTime_from_lms ( )

time_from_lms

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

Referenced by cloneObject(), and update().

608  {
609  return $this->time_from_lms;
610  }
+ Here is the caller graph for this function:

◆ getTries()

ilObjSAHSLearningModule::getTries ( )

Get Tries.

Returns
boolean tries

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

Referenced by cloneObject(), and update().

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

◆ getWidth()

ilObjSAHSLearningModule::getWidth ( )

width

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

Referenced by cloneObject(), and update().

764  {
765  return $this->width;
766  }
+ Here is the caller graph for this function:

◆ ilObjSAHSLearningModule()

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

Constructor public.

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

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

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

◆ lookupAssignedGlossary()

static ilObjSAHSLearningModule::lookupAssignedGlossary (   $a_slm_id)
static

Get SCORM modules that assign a certain glossary.

Parameters

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

References ilObject\_lookupType().

Referenced by ilSCORM2004PageConfig\configureByObjectId().

981  {
982  global $ilDB;
983 
984  $set = $ilDB->query("SELECT DISTINCT glossary FROM sahs_lm WHERE ".
985  " id = ".$ilDB->quote($a_slm_id, "integer"));
986  $rec = $ilDB->fetchAssoc($set);
987  $glo_id = $rec["glossary"];
988  if (ilObject::_lookupType($glo_id) == "glo")
989  {
990  return $glo_id;
991  }
992  return 0;
993  }
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify()

ilObjSAHSLearningModule::notify (   $a_event,
  $a_ref_id,
  $a_parent_non_rbac_id,
  $a_node_id,
  $a_params = 0 
)

notifys an object about an event occured Based on the event happend, each object may decide how it reacts.

public

Parameters
stringevent
integerreference id of object where the event occured
arraypasses optional paramters if required
Returns
boolean

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

References $_GET, and ilObject\getType().

1150  {
1151  global $tree;
1152 
1153  switch ($a_event)
1154  {
1155  case "link":
1156 
1157  //var_dump("<pre>",$a_params,"</pre>");
1158  //echo "SCORMLearningModule ".$this->getRefId()." triggered by link event. Objects linked into target object ref_id: ".$a_ref_id;
1159  //exit;
1160  break;
1161 
1162  case "cut":
1163 
1164  //echo "SCORMLearningModule ".$this->getRefId()." triggered by cut event. Objects are removed from target object ref_id: ".$a_ref_id;
1165  //exit;
1166  break;
1167 
1168  case "copy":
1169 
1170  //var_dump("<pre>",$a_params,"</pre>");
1171  //echo "SCORMLearningModule ".$this->getRefId()." triggered by copy event. Objects are copied into target object ref_id: ".$a_ref_id;
1172  //exit;
1173  break;
1174 
1175  case "paste":
1176 
1177  //echo "SCORMLearningModule ".$this->getRefId()." triggered by paste (cut) event. Objects are pasted into target object ref_id: ".$a_ref_id;
1178  //exit;
1179  break;
1180 
1181  case "new":
1182 
1183  //echo "SCORMLearningModule ".$this->getRefId()." triggered by paste (new) event. Objects are applied to target object ref_id: ".$a_ref_id;
1184  //exit;
1185  break;
1186  }
1187 
1188  // At the beginning of the recursive process it avoids second call of the notify function with the same parameter
1189  if ($a_node_id==$_GET["ref_id"])
1190  {
1191  $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
1192  $parent_type = $parent_obj->getType();
1193  if($parent_type == $this->getType())
1194  {
1195  $a_node_id = (int) $tree->getParentId($a_node_id);
1196  }
1197  }
1198 
1199  parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);
1200  }
$_GET["client_id"]
redirection script todo: (a better solution should control the processing via a xml file) ...
getType()
get object type public
+ Here is the call graph for this function:

◆ populateByDirectoy()

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

Populate by directory.

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

Parameters

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

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

Referenced by cloneObject().

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

◆ read()

ilObjSAHSLearningModule::read ( )

read object

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

References $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(), setIe_compatibility(), setIe_force_render(), setInteractions(), setLocalization(), setMaxAttempt(), setModuleVersion(), setNoMenu(), setObjectives(), setOfflineMode(), setOnline(), setOpenMode(), setSequencing(), setSequencingExpertMode(), setSession(), setStyleSheetId(), setSubType(), setTime_from_lms(), setTries(), setWidth(), and ilUtil\yn2tf().

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

◆ setAPIAdapterName()

ilObjSAHSLearningModule::setAPIAdapterName (   $a_api)

set api adapter name

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

Referenced by read().

286  {
287  $this->api_adapter = $a_api;
288  }
+ Here is the caller graph for this function:

◆ setAPIFunctionsPrefix()

ilObjSAHSLearningModule::setAPIFunctionsPrefix (   $a_prefix)

set api functions prefix

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

Referenced by read().

302  {
303  $this->api_func_prefix = $a_prefix;
304  }
+ Here is the caller graph for this function:

◆ setAssignedGlossary()

ilObjSAHSLearningModule::setAssignedGlossary (   $a_assigned_glossary)

set assigned glossary

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

Referenced by read().

421  {
422  $this->assigned_glossary = $a_assigned_glossary;
423  }
+ Here is the caller graph for this function:

◆ setAuto_last_visited()

ilObjSAHSLearningModule::setAuto_last_visited (   $a_auto_last_visited)

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

Referenced by read().

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

◆ setAutoContinue()

ilObjSAHSLearningModule::setAutoContinue (   $a_auto_continue)

get auto continue

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

Referenced by read().

680  {
681  $this->auto_continue = $a_auto_continue;
682  }
+ Here is the caller graph for this function:

◆ setAutoReview()

ilObjSAHSLearningModule::setAutoReview (   $a_auto_review)

set auto review as true/false for SCORM 1.2, HACP, SAHS, AICC

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

References ilUtil\tf2yn().

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

◆ setAutoReviewChar()

ilObjSAHSLearningModule::setAutoReviewChar (   $a_auto_review)

set auto review as Char for SCORM 2004

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

Referenced by read().

373  {
374  $this->auto_review = $a_auto_review;
375  }
+ Here is the caller graph for this function:

◆ setAutoSuspend()

ilObjSAHSLearningModule::setAutoSuspend (   $a_auto_suspend)

get auto continue

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

Referenced by read().

729  {
730  $this->auto_suspend = $a_auto_suspend;
731  }
+ Here is the caller graph for this function:

◆ setCheck_values()

ilObjSAHSLearningModule::setCheck_values (   $a_check_values)

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

Referenced by read().

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

◆ setComments()

ilObjSAHSLearningModule::setComments (   $a_comments)

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

Referenced by read().

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

◆ setCreditMode()

ilObjSAHSLearningModule::setCreditMode (   $a_credit_mode)

set credit mode

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

Referenced by read().

318  {
319  $this->credit_mode = $a_credit_mode;
320  }
+ Here is the caller graph for this function:

◆ setDebug()

ilObjSAHSLearningModule::setDebug (   $a_debug)

debug

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

Referenced by read().

656  {
657  $this->debug = $a_debug;
658  }
+ Here is the caller graph for this function:

◆ setDebugPw()

ilObjSAHSLearningModule::setDebugPw (   $a_debug_pw)

debug pw

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

Referenced by read().

672  {
673  $this->debug_pw = $a_debug_pw;
674  }
+ Here is the caller graph for this function:

◆ setDefaultLessonMode()

ilObjSAHSLearningModule::setDefaultLessonMode (   $a_lesson_mode)

set default lesson mode

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

Referenced by read().

326  {
327  $this->lesson_mode = $a_lesson_mode;
328  }
+ Here is the caller graph for this function:

◆ setEditable()

ilObjSAHSLearningModule::setEditable (   $a_editable)

Set Editable.

Parameters
boolean$a_editableEditable

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

Referenced by read().

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

◆ setFourth_edition()

ilObjSAHSLearningModule::setFourth_edition (   $a_fourth_edition)

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

Referenced by read().

548  {
549  $this->fourth_edition = $a_fourth_edition;
550  }
+ Here is the caller graph for this function:

◆ setHeight()

ilObjSAHSLearningModule::setHeight (   $a_height)

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

Referenced by read().

780  {
781  $this->height = $a_height;
782  }
+ Here is the caller graph for this function:

◆ setHideNavig()

ilObjSAHSLearningModule::setHideNavig (   $a_hide_navig)

disable menu

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

Referenced by read().

476  {
477  $this->hide_navig = $a_hide_navig;
478  }
+ Here is the caller graph for this function:

◆ setIe_compatibility()

ilObjSAHSLearningModule::setIe_compatibility (   $a_ie_compatibility)

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

Referenced by read().

522  {
523  $this->ie_compatibility = $a_ie_compatibility;
524  }
+ Here is the caller graph for this function:

◆ setIe_force_render()

ilObjSAHSLearningModule::setIe_force_render (   $a_ie_force_render)

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

Referenced by read().

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

◆ setInteractions()

ilObjSAHSLearningModule::setInteractions (   $a_interactions)

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

Referenced by read().

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

◆ setLocalization()

ilObjSAHSLearningModule::setLocalization (   $a_val)

Set localization.

Parameters
string$a_vallocalization

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

Referenced by read().

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

◆ setMaxAttempt()

ilObjSAHSLearningModule::setMaxAttempt (   $a_max_attempt)

set max attempt

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

Referenced by read().

397  {
398  $this->max_attempt = $a_max_attempt;
399  }
+ Here is the caller graph for this function:

◆ setModuleVersion()

ilObjSAHSLearningModule::setModuleVersion (   $a_module_version)

set max attempt

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

Referenced by read().

428  {
429  $this->module_version = $a_module_version;
430  }
+ Here is the caller graph for this function:

◆ setNoMenu()

ilObjSAHSLearningModule::setNoMenu (   $a_no_menu)

disable menu

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

Referenced by read().

460  {
461  $this->no_menu = $a_no_menu;
462  }
+ Here is the caller graph for this function:

◆ setObjectives()

ilObjSAHSLearningModule::setObjectives (   $a_objectives)

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

Referenced by read().

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

◆ setOfflineMode()

ilObjSAHSLearningModule::setOfflineMode (   $a_offline_mode)

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

Referenced by read().

639  {
640  $this->offline_mode = $a_offline_mode;
641  }
+ Here is the caller graph for this function:

◆ setOnline()

ilObjSAHSLearningModule::setOnline (   $a_online)

get online

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

Referenced by read().

999  {
1000  $this->online = $a_online;
1001  }
+ Here is the caller graph for this function:

◆ setOpenMode()

ilObjSAHSLearningModule::setOpenMode (   $a_open_mode)

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

Referenced by read().

756  {
757  $this->open_mode = $a_open_mode;
758  }
+ Here is the caller graph for this function:

◆ setSequencing()

ilObjSAHSLearningModule::setSequencing (   $a_sequencing)

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

Referenced by read().

561  {
562  $this->sequencing = $a_sequencing;
563  }
+ 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 710 of file class.ilObjSAHSLearningModule.php.

Referenced by read().

711  {
712  $this->seq_exp_mode = $a_val;
713  }
+ Here is the caller graph for this function:

◆ setSession()

ilObjSAHSLearningModule::setSession (   $a_session)

set session setting

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

Referenced by read().

444  {
445  $this->session = $a_session;
446  }
+ Here is the caller graph for this function:

◆ setStyleSheetId()

ilObjSAHSLearningModule::setStyleSheetId (   $a_style_id)

set ID of assigned style sheet object

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

Referenced by read().

349  {
350  $this->style_id = $a_style_id;
351  }
+ Here is the caller graph for this function:

◆ setSubType()

ilObjSAHSLearningModule::setSubType (   $a_sub_type)

get sub type

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

Referenced by read().

1015  {
1016  $this->sub_type = $a_sub_type;
1017  }
+ Here is the caller graph for this function:

◆ setTime_from_lms()

ilObjSAHSLearningModule::setTime_from_lms (   $a_time_from_lms)

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

Referenced by read().

613  {
614  $this->time_from_lms = $a_time_from_lms;
615  }
+ 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 194 of file class.ilObjSAHSLearningModule.php.

Referenced by read().

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

◆ setWidth()

ilObjSAHSLearningModule::setWidth (   $a_width)

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

Referenced by read().

768  {
769  $this->width = $a_width;
770  }
+ Here is the caller graph for this function:

◆ update()

ilObjSAHSLearningModule::update ( )

update meta data only

update object data

public

Returns
boolean

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

References getAPIAdapterName(), getAPIFunctionsPrefix(), getAssignedGlossary(), getAuto_last_visited(), getAutoContinue(), getAutoReviewChar(), getAutoSuspend(), getCheck_values(), getComments(), getCreditMode(), getDebug(), getDebugPw(), getDefaultLessonMode(), getEditable(), getHeight(), getHideNavig(), ilObject\getId(), getIe_compatibility(), getIe_force_render(), getInteractions(), getLocalization(), getMaxAttempt(), getModuleVersion(), getNoMenu(), getObjectives(), getOfflineMode(), getOnline(), getOpenMode(), getSequencing(), getSequencingExpertMode(), getSession(), getStyleSheetId(), getSubType(), getTime_from_lms(), getTries(), getWidth(), ilUtil\tf2yn(), and ilObject\updateMetaData().

817  {
818  global $ilDB;
819 
820  $this->updateMetaData();
821  parent::update();
822  //Workaround for fields where Null is not allowed!
823  $uStyleSheetId = $this->getStyleSheetId();
824  if ($uStyleSheetId == null) $uStyleSheetId=0;
825  $uOpenMode = $this->getOpenMode();
826  if ($uOpenMode == null) $uOpenMode=0;
827  $uWidth = $this->getWidth();
828  if ($uWidth == null) $uWidth=950;
829  $uHeight = $this->getHeight();
830  if ($uHeight == null) $uHeight=650;
831 
832  $statement = $ilDB->manipulateF('
833  UPDATE sahs_lm
834  SET c_online = %s,
835  api_adapter = %s,
836  api_func_prefix = %s,
837  auto_review = %s,
838  default_lesson_mode = %s,
839  c_type = %s,
840  stylesheet = %s,
841  editable = %s,
842  max_attempt = %s,
843  module_version = %s,
844  credit = %s,
845  glossary = %s,
846  question_tries = %s,
847  unlimited_session = %s,
848  no_menu = %s,
849  hide_navig = %s,
850  fourth_edition =%s,
851  sequencing = %s,
852  interactions = %s,
853  objectives = %s,
854  comments = %s,
855  time_from_lms = %s,
856  debug = %s,
857  localization = %s,
858  seq_exp_mode = %s,
859  debugpw = %s,
860  open_mode = %s,
861  width = %s,
862  height = %s,
863  auto_continue = %s,
864  auto_last_visited = %s,
865  check_values = %s,
866  offline_mode = %s,
867  auto_suspend = %s,
868  ie_compatibility = %s,
869  ie_force_render = %s
870  WHERE id = %s',
871  array( 'text',
872  'text',
873  'text',
874  'text',
875  'text',
876  'text',
877  'integer',
878  'integer',
879  'integer',
880  'integer',
881  'text',
882  'integer',
883  'integer',
884  'text',
885  'text',
886  'text',
887  'text',
888  'text',
889  'text',
890  'text',
891  'text',
892  'text',
893  'text',
894  'text',
895  'integer',
896  'text',
897  'integer',
898  'integer',
899  'integer',
900  'text',
901  'text',
902  'text',
903  'text',
904  'text',
905  'text',
906  'text',
907  'integer'
908  ),
909  array( ilUtil::tf2yn($this->getOnline()),
910  $this->getAPIAdapterName(),
911  $this->getAPIFunctionsPrefix(),
912  $this->getAutoReviewChar(),
913  $this->getDefaultLessonMode(),
914  $this->getSubType(),
915  $uStyleSheetId,
916  $this->getEditable(),
917  $this->getMaxAttempt(),
918  $this->getModuleVersion(),
919  $this->getCreditMode(),
920  $this->getAssignedGlossary(),
921  $this->getTries(),
922  ilUtil::tf2yn($this->getSession()),
923  ilUtil::tf2yn($this->getNoMenu()),
924  ilUtil::tf2yn($this->getHideNavig()),
925  ilUtil::tf2yn($this->getFourth_edition()),
926  ilUtil::tf2yn($this->getSequencing()),
927  ilUtil::tf2yn($this->getInteractions()),
928  ilUtil::tf2yn($this->getObjectives()),
929  ilUtil::tf2yn($this->getComments()),
931  ilUtil::tf2yn($this->getDebug()),
932  $this->getLocalization(),
933  $this->getSequencingExpertMode(),
934  $this->getDebugPw(),
935  $uOpenMode,
936  $uWidth,
937  $uHeight,
938  ilUtil::tf2yn($this->getAutoContinue()),
940  ilUtil::tf2yn($this->getCheck_values()),
941  ilUtil::tf2yn($this->getOfflineMode()),
942  ilUtil::tf2yn($this->getAutoSuspend()),
945  $this->getId())
946  );
947 
948  return true;
949  }
getSequencingExpertMode()
Get sequencing expert mode.
getStyleSheetId()
get ID of assigned style sheet object
static tf2yn($a_tf)
convert true/false to "y"/"n"
getIe_compatibility()
set compatibility mode for Internet Exlorer manually
updateMetaData()
update meta data entry
getAutoReviewChar()
get auto review as Char for SCORM 2004
getAPIAdapterName()
get api adapter name
getAssignedGlossary()
get assigned glossary
getAPIFunctionsPrefix()
get api functions prefix
getIe_force_render()
force Internet Explorer to render again after some Milliseconds - useful for learning Modules with a ...
getId()
get object id public
getOpenMode()
open_mode 0: in Tab/new Window like in previous versions 1: in iFrame with width=100% and heigth=100%...
getDefaultLessonMode()
get default lesson mode
+ Here is the call graph for this function:

◆ zipLmForOfflineMode()

ilObjSAHSLearningModule::zipLmForOfflineMode ( )

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

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

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

Field Documentation

◆ $validator

ilObjSAHSLearningModule::$validator

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


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