ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORM2004MapInfo Class Reference

Class ilSCORM2004MapInfo. More...

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

Public Member Functions

 ilSCORM2004MapInfo ()
 Constructor public.
 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
 ilSCORM2004SeqNode ()
 Constructor public.
 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.

Member Function Documentation

static ilSCORM2004MapInfo::fetchmapInfo (   $a_seq_node_id)
static

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

References $result, $row, and ilSCORM2004MapInfo().

{
global $ilDB;
$sql = "SELECT * FROM sahs_sc13_seq_mapinfo WHERE seqnodeid=".
$ilDB->quote($a_seq_node_id, "integer").";";
$result = $ilDB->query($sql);
$row = $ilDB->fetchAssoc($result);
$obj = new ilSCORM2004MapInfo();
$obj->setSeqNodeId($row["seqnodeid"]);
$obj->setTargetObjectiveID($row["targetobjectiveid"]);
$obj->setReadSatisfiedStatus($row["readsatisfiedstatus"]);
$obj->setReadNormalizedMeasure($row["readnormalizedmeasure"]);
$obj->setWriteSatisfiedStatus($row["writesatisfiedstatus"]);
$obj->setWriteNormalizedMeasure($row["writemormalizedmeasure"]);
/*foreach ($row as $key=>$value) {
$method = "set".ucwords($key);
if (method_exists($obj,$method)) {$obj->$method($value);}
}*/
return $obj;
}

+ Here is the call graph for this function:

ilSCORM2004MapInfo::getId ( )

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

References $id.

{
return $this->id;
}
ilSCORM2004MapInfo::getReadNormalizedMeasure ( )

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

References $readNormalizedMeasure.

ilSCORM2004MapInfo::getReadSatisfiedStatus ( )

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

References $readSatisfiedStatus.

ilSCORM2004MapInfo::getSeqNodeId ( )

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

References $seqNodeId.

{
}
ilSCORM2004MapInfo::getTargetObjectiveID ( )

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

References $targetObjectiveID.

ilSCORM2004MapInfo::getWriteNormalizedMeasure ( )

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

References $writeNormalizedMeasure.

ilSCORM2004MapInfo::getWriteSatisfiedStatus ( )

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

References $writeSatisfiedStatus.

ilSCORM2004MapInfo::ilSCORM2004MapInfo ( )

Constructor public.

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

References ilSCORM2004SeqNode\ilSCORM2004SeqNode(), and ilSCORM2004SeqNode\setNodeName().

Referenced by fetchmapInfo().

{
$this->setNodeName("mapinfo");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSCORM2004MapInfo::insert (   $a_insert_node = false)

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

References $result, and setSeqNodeId().

{
if ($a_insert_node==true) {$this->setSeqNodeId(parent::insert());}
$sql = "INSERT INTO sahs_sc13_seq_mapinfo (seqnodeid,targetobjectiveid,readsatisfiedstatus,readnormalizedmeasure,writesatisfiedstatus,writemormalizedmeasure)".
" values(".
$this->db->quote($this->seqNodeId, "integer").",".
$this->db->quote($this->targetObjectiveID, "text").",".
$this->db->quote($this->readSatisfiedStatus, "integer").",".
$this->db->quote($this->readNormalizedMeasure, "integer").",".
$this->db->quote($this->writeSatisfiedStatus, "integer").",".
$this->db->quote($this->writeNormalizedMeasure, "integer").");";
$result = $this->db->manipulate($sql);
return true;
}

+ Here is the call graph for this function:

ilSCORM2004MapInfo::setId (   $a_id)

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

{
$this->id = $a_id;
}
ilSCORM2004MapInfo::setReadNormalizedMeasure (   $a_measure)

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

{
$this->readNormalizedMeasure = $a_measure;
}
ilSCORM2004MapInfo::setReadSatisfiedStatus (   $a_status)

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

{
$this->readSatisfiedStatus = $a_status;
}
ilSCORM2004MapInfo::setSeqNodeId (   $a_seqnodeid)

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

Referenced by insert().

{
$this->seqNodeId = $a_seqnodeid;
}

+ Here is the caller graph for this function:

ilSCORM2004MapInfo::setTargetObjectiveID (   $a_id)

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

{
$this->targetObjectiveID = $a_id;
}
ilSCORM2004MapInfo::setWriteNormalizedMeasure (   $a_measure)

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

{
$this->writeNormalizedMeasure = $a_measure;
}
ilSCORM2004MapInfo::setWriteSatisfiedStatus (   $a_status)

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

{
$this->writeSatisfiedStatus = $a_status ;
}

Field Documentation

ilSCORM2004MapInfo::$id = null
private

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

Referenced by getId().

ilSCORM2004MapInfo::$readNormalizedMeasure = true
private

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

Referenced by getReadNormalizedMeasure().

ilSCORM2004MapInfo::$readSatisfiedStatus = true
private

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

Referenced by getReadSatisfiedStatus().

ilSCORM2004MapInfo::$seqNodeId = null
private

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

Referenced by getSeqNodeId().

ilSCORM2004MapInfo::$targetObjectiveID = null
private

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

Referenced by getTargetObjectiveID().

ilSCORM2004MapInfo::$writeNormalizedMeasure = false
private

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

Referenced by getWriteNormalizedMeasure().

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: