41 $this->db =
$DIC->database();
42 $this->log =
$DIC[
"ilLog"];
48 require_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004SeqTemplate.php");
52 $has_template =
false;
54 $mtree =
new ilTree($a_slm_id);
55 $mtree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
56 $mtree->setTreeTablePK(
"slm_id");
59 for (
$i=0;
$i<count($parents);
$i++) {
72 $parent_id = $tree->getParentId(
$id);
73 if ($parent_id != 0) {
74 array_push($a_parents, $parent_id);
86 $ilLog->write(
"SCORM: getLeftRightInfo");
87 $query =
"SELECT * FROM sahs_sc13_seq_tree WHERE (child = " .
91 $ilLog->write(
"SCORM: getLeftRightInfo executed" .
$query);
92 $obj_rec =
$ilDB->fetchAssoc($obj_set);
93 return array(
"left"=> $obj_rec[
"lft"],
"right" => $obj_rec[
"rgt"]);
102 $ilLog->write(
"SCORM: getSeqNodeId: " . $all_props[
"seqnodeid"]);
103 return $all_props[
"seqnodeid"];
110 $ilLog->write(
"SCORM: getSequencingId for" . $this->
getId());
111 $query =
"SELECT * FROM sahs_sc13_seq_item WHERE sahs_sc13_tree_node_id = " .
115 return $obj_rec[
'sequencingid'];
122 $ilLog->write(
"SCORM: getSequencingId for" . $this->
getId);
123 $query =
"SELECT * FROM sahs_sc13_seq_item WHERE sahs_sc13_tree_node_id = " .
127 return $obj_rec[
'seqnodeid'];
134 $ilLog->write(
"SCORM: getImportIdent for" . $this->
getId);
135 $query =
"SELECT * FROM sahs_sc13_seq_item WHERE sahs_sc13_tree_node_id = " .
139 return $obj_rec[
'importid'];
153 $ilLog->write(
"SCORM: getAllowedActions for" . $this->tree_node_id);
154 $query =
"SELECT * FROM sahs_sc13_seq_item WHERE sahs_sc13_tree_node_id = " .
158 return array(
"copy"=>!$obj_rec[
'nocopy'],
"move"=>!$obj_rec[
'nomove'],
"delete"=>!$obj_rec[
'nodelete']);
164 $query =
"SELECT * FROM sahs_sc13_seq_seq WHERE id = " .
168 $c_properties = array(
169 'flow' => $obj_rec[
'flow'],
170 'forwardOnly' => $obj_rec[
'forwardonly'],
171 'choice' => $obj_rec[
'choice'],
172 'choiceExit' => $obj_rec[
'choiceexit'] );
173 return $c_properties;
180 $query =
"SELECT * FROM sahs_sc13_seq_seq WHERE (id = " .
187 'importId' => $obj_rec[
'importid'],
188 'activityAbsoluteDurationLimit' => $obj_rec[
'activityabsolutedurationlimit'],
189 'activityExperiencedDurationLimit' => $obj_rec[
'activityexperienceddurlimit'],
190 'attemptAbsoluteDurationLimit' => $obj_rec[
'attemptabsolutedurationlimit'],
191 'attemptExperiencedDurationLimit' => $obj_rec[
'attemptexperienceddurlimit'],
192 'attemptLimit' => $obj_rec[
'attemptlimit'],
193 'beginTimeLimit' => $obj_rec[
'begintimelimit'],
194 'completionSetByContent' => $obj_rec[
'completionsetbycontent'],
195 'constrainChoice' => $obj_rec[
'constrainchoice'],
196 'seqNodeId' => $obj_rec[
'seqnodeid'],
197 'endTimeLimit' => $obj_rec[
'endtimelimit'],
198 'id' => $obj_rec[
'id'],
199 'measureSatisfactionIfActive' => $obj_rec[
'measuresatisfactionifactive'],
200 'objectiveMeasureWeight' => $obj_rec[
'objectivemeasureweight'],
201 'objectiveSetByContent' => $obj_rec[
'objectivesetbycontent'],
202 'preventActivation' => $obj_rec[
'preventactivation'],
203 'randomizationTiming' => $obj_rec[
'randomizationtiming'],
204 'reorderChildren' => $obj_rec[
'reorderchildren'],
205 'requiredForCompleted' => $obj_rec[
'requiredforcompleted'],
206 'requiredForIncomplete' => $obj_rec[
'requiredforincomplete'],
207 'requiredForNotSatisfied' => $obj_rec[
'requiredfornotsatisfied'],
208 'requiredForSatisfied' => $obj_rec[
'requiredforsatisfied'],
209 'rollupObjectiveSatisfied' => $obj_rec[
'rollupobjectivesatisfied'],
210 'rollupProgressCompletion' => $obj_rec[
'rollupprogresscompletion'],
211 'selectCount' => $obj_rec[
'selectcount'],
212 'selectionTiming' => $obj_rec[
'selectiontiming'],
213 'sequencingId' => $obj_rec[
'sequencingid'],
214 'tracked' => $obj_rec[
'tracked'],
215 'useCurrentAttemptObjectiveInfo' => $obj_rec[
'usecurrentattemptobjectiveinfo'],
216 'useCurrentAttemptProgressInfo' => $obj_rec[
'usecurrentattemptprogressinfo'],
217 'flow' => $obj_rec[
'flow'],
218 'forwardOnly' => $obj_rec[
'forwardonly'],
219 'choice' => $obj_rec[
'choice'],
220 'choiceExit' => $obj_rec[
'choiceexit'] );
An exception for terminatinating execution or to throw for unit testing.
static templateForChapter($a_chapter_id)
Class ilSCORM2004Utilities.
parentHasSeqTemplate($a_slm_id)
getParentsForNode($a_parents, $a_id)
getAllSequencingProperties()
getControlModeProperties()
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...