ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSCORM2004SeqNode Class Reference

Class ilSCORM2004Condition. More...

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

Public Member Functions

 __construct ()
 Constructor public. More...
 
 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.

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004SeqNode::__construct ( )

Constructor public.

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

References $DIC, and $ilDB.

48  {
49  global $DIC;
50 
51  $ilDB = $DIC->database();
52  $this->db = $ilDB;
53  }
global $DIC
Definition: saml.php:7
global $ilDB

Member Function Documentation

◆ getNodeName()

ilSCORM2004SeqNode::getNodeName ( )

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

References $nodeName.

61  {
62  return $this->nodeName;
63  }

◆ getTreenodeId()

ilSCORM2004SeqNode::getTreenodeId ( )

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

References $treenodeId.

66  {
67  return $this->treenodeId;
68  }

◆ insert()

ilSCORM2004SeqNode::insert ( )

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

References $result.

91  {
92  $next_id = $this->db->nextId("sahs_sc13_seq_node");
93  $sql = "INSERT INTO sahs_sc13_seq_node (seqnodeid, tree_node_id,nodename)" .
94  " values(" .
95  $this->db->quote($next_id, "integer") . "," .
96  $this->db->quote($this->treenodeId, "integer") . "," .
97  $this->db->quote($this->nodeName, "text") . ");";
98  $result = $this->db->manipulate($sql);
99  return $next_id();
100  }
$result

◆ setNodeName()

ilSCORM2004SeqNode::setNodeName (   $a_nodeName)

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

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

76  {
77  $this->nodeName = $a_nodeName;
78  }
+ Here is the caller graph for this function:

◆ setTreenodeId()

ilSCORM2004SeqNode::setTreenodeId (   $a_treenodeId)

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

81  {
82  $this->treenodeId = $a_treenodeId;
83  }

◆ update()

ilSCORM2004SeqNode::update (   $a_seq_node_id)

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

References $result.

103  {
104  $sql = "UPDATE sahs_sc13_seq_node SET " .
105  "tree_node_id = " . $this->db->quote($this->treenodeId, "integer") . "," .
106  "nodename=" . $this->db->quote($this->nodeName, "text") .
107  " WHERE seqnodeid=" . $this->db->quote($a_seq_node_id, "integer");
108  $result = $this->db->manipulate($sql);
109  return;
110  }
$result

Field Documentation

◆ $db

ilSCORM2004SeqNode::$db = null
protected

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

Referenced by ilSCORM2004SeqTemplate\importTemplate().

◆ $nodeName

ilSCORM2004SeqNode::$nodeName = null
private

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

Referenced by getNodeName().

◆ $treenodeId

ilSCORM2004SeqNode::$treenodeId = null
private

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

Referenced by getTreenodeId().


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