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

Class ilSCORM2004Condition. More...

+ Inheritance diagram for ilSCORM2004Condition:
+ Collaboration diagram for ilSCORM2004Condition:

Public Member Functions

 __construct ()
 Constructor public. More...
 
 getSeqNodeId ()
 
 getId ()
 
 getReferencedObjective ()
 
 getCondition ()
 
 getMeasureThreshold ()
 
 getOperator ()
 
 setSeqNodeId ($a_seqnodeid)
 
 setId ($a_id)
 
 setReferencedObjective ($a_objective)
 
 setCondition ($a_condition)
 
 setMeasureThreshold ($a_measure)
 
 setOperator ($a_operator)
 
 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)
 

Private Attributes

 $id = null
 
 $seqNodeId = null
 
 $referencedObjective = null
 
 $condition = null
 
 $measureThreshold = 0.0
 
 $operator=null
 

Additional Inherited Members

- Protected Attributes inherited from ilSCORM2004SeqNode
 $db = 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 15 of file class.ilSCORM2004Condition.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004Condition::__construct ( )

Constructor public.

Definition at line 31 of file class.ilSCORM2004Condition.php.

References ilSCORM2004SeqNode\setNodeName().

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

Member Function Documentation

◆ getCondition()

ilSCORM2004Condition::getCondition ( )

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

References $condition.

◆ getId()

ilSCORM2004Condition::getId ( )

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

References $id.

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

◆ getMeasureThreshold()

ilSCORM2004Condition::getMeasureThreshold ( )

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

References $measureThreshold.

◆ getOperator()

ilSCORM2004Condition::getOperator ( )

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

69  {
70  return $this->operator;
71  }

◆ getReferencedObjective()

ilSCORM2004Condition::getReferencedObjective ( )

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

References $referencedObjective.

◆ getSeqNodeId()

ilSCORM2004Condition::getSeqNodeId ( )

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

References $seqNodeId.

◆ insert()

ilSCORM2004Condition::insert (   $a_insert_node = false)

Definition at line 111 of file class.ilSCORM2004Condition.php.

References $result, and setSeqNodeId().

112  {
113  if ($a_insert_node==true) {
114  $this->setSeqNodeId(parent::insert());
115  }
116  $sql = "INSERT INTO sahs_sc13_seq_cond (seqnodeid,referencedobjective,cond,measurethreshold,operator)" .
117  " values(" .
118  $this->db->quote($this->seqNodeId, "integer") . "," .
119  $this->db->quote($this->referencedObjective, "text") . "," .
120  $this->db->quote($this->condition, "text") . "," .
121  $this->db->quote($this->measureThreshold, "text") . "," .
122  $this->db->quote($this->operator, "text") . ");";
123  $result = $this->db->manipulate($sql);
124  return true;
125  }
$result
+ Here is the call graph for this function:

◆ setCondition()

ilSCORM2004Condition::setCondition (   $a_condition)

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

93  {
94  $this->condition = $a_condition;
95  }

◆ setId()

ilSCORM2004Condition::setId (   $a_id)

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

83  {
84  $this->id = $a_id;
85  }

◆ setMeasureThreshold()

ilSCORM2004Condition::setMeasureThreshold (   $a_measure)

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

98  {
99  $this->measureThreshold = $a_measure;
100  }

◆ setOperator()

ilSCORM2004Condition::setOperator (   $a_operator)

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

103  {
104  $this->operator = $a_operator;
105  }

◆ setReferencedObjective()

ilSCORM2004Condition::setReferencedObjective (   $a_objective)

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

88  {
89  $this->referencedObjective = $a_objective;
90  }

◆ setSeqNodeId()

ilSCORM2004Condition::setSeqNodeId (   $a_seqnodeid)

Definition at line 77 of file class.ilSCORM2004Condition.php.

Referenced by insert().

78  {
79  $this->seqNodeId = $a_seqnodeid;
80  }
+ Here is the caller graph for this function:

Field Documentation

◆ $condition

ilSCORM2004Condition::$condition = null
private

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

Referenced by getCondition().

◆ $id

ilSCORM2004Condition::$id = null
private

Definition at line 20 of file class.ilSCORM2004Condition.php.

Referenced by getId().

◆ $measureThreshold

ilSCORM2004Condition::$measureThreshold = 0.0
private

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

Referenced by getMeasureThreshold().

◆ $operator=null

ilSCORM2004Condition::$operator=null
private

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

◆ $referencedObjective

ilSCORM2004Condition::$referencedObjective = null
private

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

Referenced by getReferencedObjective().

◆ $seqNodeId

ilSCORM2004Condition::$seqNodeId = null
private

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

Referenced by getSeqNodeId().


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