ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSCORM2004MapInfo Class Reference

Class ilSCORM2004MapInfo. More...

+ Inheritance diagram for ilSCORM2004MapInfo:
+ Collaboration diagram for ilSCORM2004MapInfo:

Public Member Functions

 __construct ()
 Constructor public. More...
 
 getSeqNodeId ()
 
 getId ()
 
 getTargetObjectiveID ()
 
 getReadSatisfiedStatus ()
 
 getReadNormalizedMeasure ()
 
 getWriteSatisfiedStatus ()
 
 getWriteNormalizedMeasure ()
 
 setSeqNodeId ($a_seqnodeid)
 
 setId ($a_id)
 
 setTargetObjectiveID ($a_id)
 
 setReadSatisfiedStatus ($a_status)
 
 setReadNormalizedMeasure ($a_measure)
 
 setWriteSatisfiedStatus ($a_status)
 
 setWriteNormalizedMeasure ($a_measure)
 
 insert ($a_insert_node=false)
 
- Public Member Functions inherited from ilSCORM2004SeqNode
 __construct ()
 Constructor public. More...
 
 getNodeName ()
 
 getTreenodeId ()
 
 setNodeName ($a_nodeName)
 
 setTreenodeId ($a_treenodeId)
 
 insert ()
 
 update ($a_seq_node_id)
 

Static Public Member Functions

static fetchmapInfo ($a_seq_node_id)
 

Private Attributes

 $id = null
 
 $seqNodeId = null
 
 $targetObjectiveID = null
 
 $readSatisfiedStatus = true
 
 $readNormalizedMeasure = true
 
 $writeSatisfiedStatus = false
 
 $writeNormalizedMeasure = false
 

Additional Inherited Members

- Protected Attributes inherited from ilSCORM2004SeqNode
 $db = null
 

Detailed Description

Class ilSCORM2004MapInfo.

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 15 of file class.ilSCORM2004MapInfo.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004MapInfo::__construct ( )

Constructor public.

Definition at line 32 of file class.ilSCORM2004MapInfo.php.

References ilSCORM2004SeqNode\setNodeName().

33  {
34  parent::__construct();
35  $this->setNodeName("mapinfo");
36  }
+ Here is the call graph for this function:

Member Function Documentation

◆ fetchmapInfo()

static ilSCORM2004MapInfo::fetchmapInfo (   $a_seq_node_id)
static

Definition at line 139 of file class.ilSCORM2004MapInfo.php.

References $DIC, $ilDB, $result, and $row.

140  {
141  global $DIC;
142 
143  $ilDB = $DIC->database();
144 
145  $sql = "SELECT * FROM sahs_sc13_seq_mapinfo WHERE seqnodeid=" .
146  $ilDB->quote($a_seq_node_id, "integer") . ";";
147  $result = $ilDB->query($sql);
148  $row = $ilDB->fetchAssoc($result);
149  $obj = new ilSCORM2004MapInfo();
150  $obj->setSeqNodeId($row["seqnodeid"]);
151  $obj->setTargetObjectiveID($row["targetobjectiveid"]);
152  $obj->setReadSatisfiedStatus($row["readsatisfiedstatus"]);
153  $obj->setReadNormalizedMeasure($row["readnormalizedmeasure"]);
154  $obj->setWriteSatisfiedStatus($row["writesatisfiedstatus"]);
155  $obj->setWriteNormalizedMeasure($row["writemormalizedmeasure"]);
156  /*foreach ($row as $key=>$value) {
157  $method = "set".ucwords($key);
158  if (method_exists($obj,$method)) {$obj->$method($value);}
159  }*/
160  return $obj;
161  }
$result
global $DIC
Definition: saml.php:7
global $ilDB
Class ilSCORM2004MapInfo.

◆ getId()

ilSCORM2004MapInfo::getId ( )

Definition at line 48 of file class.ilSCORM2004MapInfo.php.

References $id.

49  {
50  return $this->id;
51  }

◆ getReadNormalizedMeasure()

ilSCORM2004MapInfo::getReadNormalizedMeasure ( )

Definition at line 63 of file class.ilSCORM2004MapInfo.php.

References $readNormalizedMeasure.

◆ getReadSatisfiedStatus()

ilSCORM2004MapInfo::getReadSatisfiedStatus ( )

Definition at line 58 of file class.ilSCORM2004MapInfo.php.

References $readSatisfiedStatus.

◆ getSeqNodeId()

ilSCORM2004MapInfo::getSeqNodeId ( )

Definition at line 43 of file class.ilSCORM2004MapInfo.php.

References $seqNodeId.

44  {
45  return $this->seqNodeId;
46  }

◆ getTargetObjectiveID()

ilSCORM2004MapInfo::getTargetObjectiveID ( )

Definition at line 53 of file class.ilSCORM2004MapInfo.php.

References $targetObjectiveID.

◆ getWriteNormalizedMeasure()

ilSCORM2004MapInfo::getWriteNormalizedMeasure ( )

Definition at line 73 of file class.ilSCORM2004MapInfo.php.

References $writeNormalizedMeasure.

◆ getWriteSatisfiedStatus()

ilSCORM2004MapInfo::getWriteSatisfiedStatus ( )

Definition at line 68 of file class.ilSCORM2004MapInfo.php.

References $writeSatisfiedStatus.

◆ insert()

ilSCORM2004MapInfo::insert (   $a_insert_node = false)

Definition at line 122 of file class.ilSCORM2004MapInfo.php.

References $result, and setSeqNodeId().

123  {
124  if ($a_insert_node==true) {
125  $this->setSeqNodeId(parent::insert());
126  }
127  $sql = "INSERT INTO sahs_sc13_seq_mapinfo (seqnodeid,targetobjectiveid,readsatisfiedstatus,readnormalizedmeasure,writesatisfiedstatus,writemormalizedmeasure)" .
128  " values(" .
129  $this->db->quote($this->seqNodeId, "integer") . "," .
130  $this->db->quote($this->targetObjectiveID, "text") . "," .
131  $this->db->quote($this->readSatisfiedStatus, "integer") . "," .
132  $this->db->quote($this->readNormalizedMeasure, "integer") . "," .
133  $this->db->quote($this->writeSatisfiedStatus, "integer") . "," .
134  $this->db->quote($this->writeNormalizedMeasure, "integer") . ");";
135  $result = $this->db->manipulate($sql);
136  return true;
137  }
$result
+ Here is the call graph for this function:

◆ setId()

ilSCORM2004MapInfo::setId (   $a_id)

Definition at line 87 of file class.ilSCORM2004MapInfo.php.

88  {
89  $this->id = $a_id;
90  }

◆ setReadNormalizedMeasure()

ilSCORM2004MapInfo::setReadNormalizedMeasure (   $a_measure)

Definition at line 102 of file class.ilSCORM2004MapInfo.php.

103  {
104  $this->readNormalizedMeasure = $a_measure;
105  }

◆ setReadSatisfiedStatus()

ilSCORM2004MapInfo::setReadSatisfiedStatus (   $a_status)

Definition at line 97 of file class.ilSCORM2004MapInfo.php.

98  {
99  $this->readSatisfiedStatus = $a_status;
100  }

◆ setSeqNodeId()

ilSCORM2004MapInfo::setSeqNodeId (   $a_seqnodeid)

Definition at line 82 of file class.ilSCORM2004MapInfo.php.

Referenced by insert().

83  {
84  $this->seqNodeId = $a_seqnodeid;
85  }
+ Here is the caller graph for this function:

◆ setTargetObjectiveID()

ilSCORM2004MapInfo::setTargetObjectiveID (   $a_id)

Definition at line 92 of file class.ilSCORM2004MapInfo.php.

93  {
94  $this->targetObjectiveID = $a_id;
95  }

◆ setWriteNormalizedMeasure()

ilSCORM2004MapInfo::setWriteNormalizedMeasure (   $a_measure)

Definition at line 112 of file class.ilSCORM2004MapInfo.php.

113  {
114  $this->writeNormalizedMeasure = $a_measure;
115  }

◆ setWriteSatisfiedStatus()

ilSCORM2004MapInfo::setWriteSatisfiedStatus (   $a_status)

Definition at line 107 of file class.ilSCORM2004MapInfo.php.

108  {
109  $this->writeSatisfiedStatus = $a_status ;
110  }

Field Documentation

◆ $id

ilSCORM2004MapInfo::$id = null
private

Definition at line 21 of file class.ilSCORM2004MapInfo.php.

Referenced by getId().

◆ $readNormalizedMeasure

ilSCORM2004MapInfo::$readNormalizedMeasure = true
private

Definition at line 25 of file class.ilSCORM2004MapInfo.php.

Referenced by getReadNormalizedMeasure().

◆ $readSatisfiedStatus

ilSCORM2004MapInfo::$readSatisfiedStatus = true
private

Definition at line 24 of file class.ilSCORM2004MapInfo.php.

Referenced by getReadSatisfiedStatus().

◆ $seqNodeId

ilSCORM2004MapInfo::$seqNodeId = null
private

Definition at line 22 of file class.ilSCORM2004MapInfo.php.

Referenced by getSeqNodeId().

◆ $targetObjectiveID

ilSCORM2004MapInfo::$targetObjectiveID = null
private

Definition at line 23 of file class.ilSCORM2004MapInfo.php.

Referenced by getTargetObjectiveID().

◆ $writeNormalizedMeasure

ilSCORM2004MapInfo::$writeNormalizedMeasure = false
private

Definition at line 27 of file class.ilSCORM2004MapInfo.php.

Referenced by getWriteNormalizedMeasure().

◆ $writeSatisfiedStatus

ilSCORM2004MapInfo::$writeSatisfiedStatus = false
private

Definition at line 26 of file class.ilSCORM2004MapInfo.php.

Referenced by getWriteSatisfiedStatus().


The documentation for this class was generated from the following file: