ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilSCORM2004Condition.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
16{
17
18
19 //db fields
20 private $id = null;
21 private $seqNodeId = null;
22 private $referencedObjective = null;
23 private $condition = null;
24 private $measureThreshold = 0.0;
25 private $operator = null;
26
32 {
33 parent::ilSCORM2004SeqNode();
34 $this->setNodeName("condition");
35 }
36
37
38 // **********************
39 // GETTER METHODS
40 // **********************
41
42 public function getSeqNodeId()
43 {
44 return $this->seqNodeId;
45 }
46
47 public function getId()
48 {
49 return $this->id;
50 }
51
52
53 public function getReferencedObjective()
54 {
56 }
57
58 public function getCondition()
59 {
60 return $this->condition;
61 }
62
63 public function getMeasureThreshold()
64 {
66 }
67
68 public function getOperator()
69 {
70 return $this->operator;
71 }
72
73 // **********************
74 // Setter METHODS
75 // **********************
76
77 public function setSeqNodeId($a_seqnodeid)
78 {
79 $this->seqNodeId = $a_seqnodeid;
80 }
81
82 public function setId($a_id)
83 {
84 $this->id = $a_id;
85 }
86
87 public function setReferencedObjective($a_objective)
88 {
89 $this->referencedObjective = $a_objective;
90 }
91
92 public function setCondition($a_condition)
93 {
94 $this->condition = $a_condition;
95 }
96
97 public function setMeasureThreshold($a_measure)
98 {
99 $this->measureThreshold = $a_measure;
100 }
101
102 public function setOperator($a_operator)
103 {
104 $this->operator = $a_operator;
105 }
106
107 // **********************
108 // Standard DB Operations for Object
109 // **********************
110
111 public function insert($a_insert_node = false)
112 {
113 if ($a_insert_node==true) {$this->setSeqNodeId(parent::insert());}
114 $sql = "INSERT INTO sahs_sc13_seq_cond (seqnodeid,referencedobjective,cond,measurethreshold,operator)".
115 " values(".
116 $this->db->quote($this->seqNodeId, "integer").",".
117 $this->db->quote($this->referencedObjective, "text").",".
118 $this->db->quote($this->condition, "text").",".
119 $this->db->quote($this->measureThreshold, "text").",".
120 $this->db->quote($this->operator, "text").");";
121 $result = $this->db->manipulate($sql);
122 return true;
123 }
124
125
126}
127?>
$result
Class ilSCORM2004Condition.
ilSCORM2004Condition()
Constructor @access public.
Class ilSCORM2004Condition.