Class ilSCORM2004Objective.
More...
Class ilSCORM2004Objective.
Sequencing Template class for SCORM 2004 Editing
- Author
- Hendrik Holtmann holtm.nosp@m.ann@.nosp@m.me.co.nosp@m.m
- Version
- $Id$
Definition at line 19 of file class.ilSCORM2004Objective.php.
◆ __construct()
ilSCORM2004Objective::__construct |
( |
|
$a_treeid = null , |
|
|
|
$a_obj_id = null |
|
) |
| |
Constructor public.
Definition at line 40 of file class.ilSCORM2004Objective.php.
References setNode().
42 parent::__construct($a_treeid);
44 if ($a_obj_id !=null && $a_treeid != null) {
45 $xpath_obj =
new DOMXPath($this->dom);
46 $obj_node_list = $xpath_obj->query(
'//objective[@objectiveID = "' . $a_obj_id .
'"] | ' .
47 '//primaryObjective[@objectiveID = "' . $a_obj_id .
'"]');
48 $this->
setNode($obj_node_list->item(0));
50 if ($a_obj_id ==null && $a_treeid != null) {
51 $obj_con = $this->dom->createElement(
"objectives");
52 $obj = $this->dom->createElement(
"primaryObjective");
53 $root = $this->dom->getElementsByTagName(
"sequencing")->item(0);
54 $obj_con->appendChild($obj);
55 $root->appendChild($obj_con);
56 $this->node =$this->dom->getElementsByTagName(
"primaryObjective")->item(0);
◆ fetchAllObjectives()
static ilSCORM2004Objective::fetchAllObjectives |
( |
|
$a_slm_object, |
|
|
|
$a_tree_node_id |
|
) |
| |
|
static |
Definition at line 157 of file class.ilSCORM2004Objective.php.
References $DIC, $i, $ilDB, and array.
Referenced by ilSCORM2004Node\getObjectives().
161 $ilDB = $DIC->database();
163 $objectives =
array();
165 $xpath_obj =
new DOMXPath($seq_item->dom);
166 $obj_node_list = $xpath_obj->query(
'//objective | //primaryObjective');
167 for (
$i=0;
$i<$obj_node_list->length;
$i++) {
169 $obj->setNode($obj_node_list->item(
$i));
170 $mapping_node_list = $xpath_obj->query(
'//objective | //primaryObjective');
172 array_push($objectives, $obj);
Class ilSCORM2004Condition.
Create styles array
The data for the language used.
Class ilSCORM2004Objective.
◆ getId()
ilSCORM2004Objective::getId |
( |
| ) |
|
◆ getMappings()
ilSCORM2004Objective::getMappings |
( |
| ) |
|
◆ getMinNormalizedMeasure()
ilSCORM2004Objective::getMinNormalizedMeasure |
( |
| ) |
|
◆ getObjectiveID()
ilSCORM2004Objective::getObjectiveID |
( |
| ) |
|
◆ getPrimary()
ilSCORM2004Objective::getPrimary |
( |
| ) |
|
◆ getSatisfiedByMeasure()
ilSCORM2004Objective::getSatisfiedByMeasure |
( |
| ) |
|
◆ setDom()
ilSCORM2004Objective::setDom |
( |
|
$a_dom | ) |
|
◆ setId()
ilSCORM2004Objective::setId |
( |
|
$a_id | ) |
|
◆ setMappings()
ilSCORM2004Objective::setMappings |
( |
|
$a_mappings | ) |
|
◆ setMinNormalizedMeasure()
ilSCORM2004Objective::setMinNormalizedMeasure |
( |
|
$a_minmeasure | ) |
|
◆ setNode()
ilSCORM2004Objective::setNode |
( |
|
$a_node | ) |
|
◆ setObjectiveID()
ilSCORM2004Objective::setObjectiveID |
( |
|
$a_objectiveid | ) |
|
◆ setPrimary()
ilSCORM2004Objective::setPrimary |
( |
|
$a_primary | ) |
|
◆ setSatisfiedByMeasure()
ilSCORM2004Objective::setSatisfiedByMeasure |
( |
|
$a_satisfied | ) |
|
◆ setSeqNodeId()
ilSCORM2004Objective::setSeqNodeId |
( |
|
$a_seqnodeid | ) |
|
◆ updateObjective()
ilSCORM2004Objective::updateObjective |
( |
| ) |
|
◆ $id
ilSCORM2004Objective::$id = null |
|
private |
◆ $mappings
ilSCORM2004Objective::$mappings =array() |
|
private |
◆ $minNormalizedMeasure
ilSCORM2004Objective::$minNormalizedMeasure = 1.0 |
|
private |
◆ $node
ilSCORM2004Objective::$node = null |
|
private |
◆ $objectiveID
ilSCORM2004Objective::$objectiveID = null |
|
private |
◆ $primary
ilSCORM2004Objective::$primary = true |
|
private |
◆ $satisfiedByMeasure
ilSCORM2004Objective::$satisfiedByMeasure = false |
|
private |
The documentation for this class was generated from the following file: