ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORM2004SeqNode Class Reference

Class ilSCORM2004Condition. More...

+ Inheritance diagram for ilSCORM2004SeqNode:
+ Collaboration diagram for ilSCORM2004SeqNode:

Public Member Functions

 ilSCORM2004SeqNode ()
 Constructor public.
 getNodeName ()
 getTreenodeId ()
 setNodeName ($a_nodeName)
 setTreenodeId ($a_treenodeId)
 insert ()
 update ($a_seq_node_id)

Protected Attributes

 $db = null

Private Attributes

 $nodeName = null
 $treenodeId = null

Detailed Description

Class ilSCORM2004Condition.

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 35 of file class.ilSCORM2004SeqNode.php.

Member Function Documentation

ilSCORM2004SeqNode::getNodeName ( )

Definition at line 60 of file class.ilSCORM2004SeqNode.php.

References $nodeName.

{
}
ilSCORM2004SeqNode::getTreenodeId ( )

Definition at line 65 of file class.ilSCORM2004SeqNode.php.

References $treenodeId.

{
}
ilSCORM2004SeqNode::ilSCORM2004SeqNode ( )

Constructor public.

Definition at line 49 of file class.ilSCORM2004SeqNode.php.

References $ilDB.

Referenced by ilSCORM2004Condition\ilSCORM2004Condition(), ilSCORM2004MapInfo\ilSCORM2004MapInfo(), ilSCORM2004Rule\ilSCORM2004Rule(), and ilSCORM2004SeqTemplate\ilSCORM2004SeqTemplate().

{
global $ilDB;
$this->db = $ilDB;
}

+ Here is the caller graph for this function:

ilSCORM2004SeqNode::insert ( )

Definition at line 90 of file class.ilSCORM2004SeqNode.php.

References $result.

{
$next_id = $this->db->nextId("sahs_sc13_seq_node");
$sql = "INSERT INTO sahs_sc13_seq_node (seqnodeid, tree_node_id,nodename)".
" values(".
$this->db->quote($next_id, "integer").",".
$this->db->quote($this->treenodeId, "integer").",".
$this->db->quote($this->nodeName, "text").");";
$result = $this->db->manipulate($sql);
return $next_id();
}
ilSCORM2004SeqNode::setNodeName (   $a_nodeName)

Definition at line 75 of file class.ilSCORM2004SeqNode.php.

Referenced by ilSCORM2004Condition\ilSCORM2004Condition(), ilSCORM2004MapInfo\ilSCORM2004MapInfo(), ilSCORM2004Rule\ilSCORM2004Rule(), and ilSCORM2004SeqTemplate\ilSCORM2004SeqTemplate().

{
$this->nodeName = $a_nodeName;
}

+ Here is the caller graph for this function:

ilSCORM2004SeqNode::setTreenodeId (   $a_treenodeId)

Definition at line 80 of file class.ilSCORM2004SeqNode.php.

{
$this->treenodeId = $a_treenodeId;
}
ilSCORM2004SeqNode::update (   $a_seq_node_id)

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

References $result.

{
$sql = "UPDATE sahs_sc13_seq_node SET ".
"tree_node_id = ".$this->db->quote($this->treenodeId, "integer").",".
"nodename=".$this->db->quote($this->nodeName, "text").
" WHERE seqnodeid=".$this->db->quote($a_seq_node_id, "integer");
$result = $this->db->manipulate($sql);
return;
}

Field Documentation

ilSCORM2004SeqNode::$db = null
protected

Definition at line 39 of file class.ilSCORM2004SeqNode.php.

ilSCORM2004SeqNode::$nodeName = null
private

Definition at line 42 of file class.ilSCORM2004SeqNode.php.

Referenced by getNodeName().

ilSCORM2004SeqNode::$treenodeId = null
private

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

Referenced by getTreenodeId().


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