104 $this->seqNodeId = $a_seqnodeid;
114 $this->targetObjectiveID = $a_id;
119 $this->readSatisfiedStatus = $a_status;
124 $this->readNormalizedMeasure = $a_measure;
129 $this->writeSatisfiedStatus = $a_status ;
134 $this->writeNormalizedMeasure = $a_measure;
142 public function insert($a_insert_node =
false)
144 if ($a_insert_node==
true) {$this->
setSeqNodeId(parent::insert());}
145 $sql =
"INSERT INTO sahs_sc13_seq_mapinfo (seqnodeid,targetobjectiveid,readsatisfiedstatus,readnormalizedmeasure,writesatisfiedstatus,writemormalizedmeasure)".
147 $this->db->quote($this->seqNodeId,
"integer").
",".
148 $this->db->quote($this->targetObjectiveID,
"text").
",".
149 $this->db->quote($this->readSatisfiedStatus,
"integer").
",".
150 $this->db->quote($this->readNormalizedMeasure,
"integer").
",".
151 $this->db->quote($this->writeSatisfiedStatus,
"integer").
",".
152 $this->db->quote($this->writeNormalizedMeasure,
"integer").
");";
153 $result = $this->db->manipulate($sql);
161 $sql =
"SELECT * FROM sahs_sc13_seq_mapinfo WHERE seqnodeid=".
162 $ilDB->quote($a_seq_node_id,
"integer").
";";
163 $result = $ilDB->query($sql);
164 $row = $ilDB->fetchAssoc($result);
166 $obj->setSeqNodeId(
$row[
"seqnodeid"]);
167 $obj->setTargetObjectiveID(
$row[
"targetobjectiveid"]);
168 $obj->setReadSatisfiedStatus(
$row[
"readsatisfiedstatus"]);
169 $obj->setReadNormalizedMeasure(
$row[
"readnormalizedmeasure"]);
170 $obj->setWriteSatisfiedStatus(
$row[
"writesatisfiedstatus"]);
171 $obj->setWriteNormalizedMeasure(
$row[
"writemormalizedmeasure"]);