34 require_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004SeqTemplate.php");
37 $has_template =
false;
39 $mtree =
new ilTree($a_slm_id);
40 $mtree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
41 $mtree->setTreeTablePK(
"slm_id");
44 for ($i=0;$i<count($parents);$i++)
57 $parent_id = $tree->getParentId(
$id);
58 if ($parent_id != 0) {
59 array_push($a_parents,$parent_id);
70 $ilLog->write(
"SCORM: getLeftRightInfo");
71 $query =
"SELECT * FROM sahs_sc13_seq_tree WHERE (child = ".
73 " AND importid=".$ilDB->quote($this->
getImportIdent(),
"text").
")";
74 $obj_set = $ilDB->query(
$query);
75 $ilLog->write(
"SCORM: getLeftRightInfo executed".
$query);
76 $obj_rec = $ilDB->fetchAssoc($obj_set);
77 return array(
"left"=> $obj_rec[
"lft"],
"right" => $obj_rec[
"rgt"]);
85 $ilLog->write(
"SCORM: getSeqNodeId: ".$all_props[
"seqnodeid"]);
86 return $all_props[
"seqnodeid"];
92 $ilLog->write(
"SCORM: getSequencingId for".$this->
getId());
93 $query =
"SELECT * FROM sahs_sc13_seq_item WHERE sahs_sc13_tree_node_id = ".
94 $ilDB->quote($this->
getId(),
"integer");
95 $obj_set = $ilDB->query(
$query);
97 return $obj_rec[
'sequencingid'];
103 $ilLog->write(
"SCORM: getSequencingId for".$this->
getId);
104 $query =
"SELECT * FROM sahs_sc13_seq_item WHERE sahs_sc13_tree_node_id = ".
105 $ilDB->quote($this->
getId(),
"integer");
106 $obj_set = $ilDB->query(
$query);
108 return $obj_rec[
'seqnodeid'];
114 $ilLog->write(
"SCORM: getImportIdent for".$this->
getId);
115 $query =
"SELECT * FROM sahs_sc13_seq_item WHERE sahs_sc13_tree_node_id = ".
116 $ilDB->quote($this->
getId(),
"integer");
117 $obj_set = $ilDB->query(
$query);
119 return $obj_rec[
'importid'];
132 $ilLog->write(
"SCORM: getAllowedActions for".$this->tree_node_id);
133 $query =
"SELECT * FROM sahs_sc13_seq_item WHERE sahs_sc13_tree_node_id = ".
134 $ilDB->quote($this->
getId(),
"integer");
135 $obj_set = $ilDB->query(
$query);
137 return array(
"copy"=>!$obj_rec[
'nocopy'],
"move"=>!$obj_rec[
'nomove'],
"delete"=>!$obj_rec[
'nodelete']);
143 $query =
"SELECT * FROM sahs_sc13_seq_seq WHERE id = ".
145 $obj_set = $ilDB->query(
$query);
147 $c_properties =
array(
148 'flow' => $obj_rec[
'flow'],
149 'forwardOnly' => $obj_rec[
'forwardonly'],
150 'choice' => $obj_rec[
'choice'],
151 'choiceExit' => $obj_rec[
'choiceexit'] );
152 return $c_properties;
158 $query =
"SELECT * FROM sahs_sc13_seq_seq WHERE (id = ".
160 " AND importid=".$ilDB->quote($this->
getImportIdent(),
"text").
")";
161 $obj_set = $ilDB->query(
$query);
162 $ilLog->write(
"SCORM: getAllSequencingProperties for".$this->
getSequencingId());
165 'importId' => $obj_rec[
'importid'],
166 'activityAbsoluteDurationLimit' => $obj_rec[
'activityabsolutedurationlimit'],
167 'activityExperiencedDurationLimit' => $obj_rec[
'activityexperienceddurlimit'],
168 'attemptAbsoluteDurationLimit' => $obj_rec[
'attemptabsolutedurationlimit'],
169 'attemptExperiencedDurationLimit' => $obj_rec[
'attemptexperienceddurlimit'],
170 'attemptLimit' => $obj_rec[
'attemptlimit'],
171 'beginTimeLimit' => $obj_rec[
'begintimelimit'],
172 'completionSetByContent' => $obj_rec[
'completionsetbycontent'],
173 'constrainChoice' => $obj_rec[
'constrainchoice'],
174 'seqNodeId' => $obj_rec[
'seqnodeid'],
175 'endTimeLimit' => $obj_rec[
'endtimelimit'],
176 'id' => $obj_rec[
'id'],
177 'measureSatisfactionIfActive' => $obj_rec[
'measuresatisfactionifactive'],
178 'objectiveMeasureWeight' => $obj_rec[
'objectivemeasureweight'],
179 'objectiveSetByContent' => $obj_rec[
'objectivesetbycontent'],
180 'preventActivation' => $obj_rec[
'preventactivation'],
181 'randomizationTiming' => $obj_rec[
'randomizationtiming'],
182 'reorderChildren' => $obj_rec[
'reorderchildren'],
183 'requiredForCompleted' => $obj_rec[
'requiredforcompleted'],
184 'requiredForIncomplete' => $obj_rec[
'requiredforincomplete'],
185 'requiredForNotSatisfied' => $obj_rec[
'requiredfornotsatisfied'],
186 'requiredForSatisfied' => $obj_rec[
'requiredforsatisfied'],
187 'rollupObjectiveSatisfied' => $obj_rec[
'rollupobjectivesatisfied'],
188 'rollupProgressCompletion' => $obj_rec[
'rollupprogresscompletion'],
189 'selectCount' => $obj_rec[
'selectcount'],
190 'selectionTiming' => $obj_rec[
'selectiontiming'],
191 'sequencingId' => $obj_rec[
'sequencingid'],
192 'tracked' => $obj_rec[
'tracked'],
193 'useCurrentAttemptObjectiveInfo' => $obj_rec[
'usecurrentattemptobjectiveinfo'],
194 'useCurrentAttemptProgressInfo' => $obj_rec[
'usecurrentattemptprogressinfo'],
195 'flow' => $obj_rec[
'flow'],
196 'forwardOnly' => $obj_rec[
'forwardonly'],
197 'choice' => $obj_rec[
'choice'],
198 'choiceExit' => $obj_rec[
'choiceexit'] );
getParentsForNode($a_parents, $a_id)
parentHasSeqTemplate($a_slm_id)
Class ilSCORM2004Utilities.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Create styles array
The data for the language used.
getControlModeProperties()
getAllSequencingProperties()
static templateForChapter($a_chapter_id)