ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilSCORM2004Condition Class Reference

Class ilSCORM2004Condition. More...

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

Public Member Functions

 ilSCORM2004Condition ()
 Constructor @access 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
 ilSCORM2004SeqNode ()
 Constructor @access 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.

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.

◆ 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.

References $operator.

◆ getReferencedObjective()

ilSCORM2004Condition::getReferencedObjective ( )

◆ getSeqNodeId()

ilSCORM2004Condition::getSeqNodeId ( )

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

References $seqNodeId.

◆ ilSCORM2004Condition()

ilSCORM2004Condition::ilSCORM2004Condition ( )

Constructor @access public.

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

32 {
33 parent::ilSCORM2004SeqNode();
34 $this->setNodeName("condition");
35 }

References ilSCORM2004SeqNode\setNodeName().

+ Here is the call graph for this function:

◆ insert()

ilSCORM2004Condition::insert (   $a_insert_node = false)

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

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

References $result, and setSeqNodeId().

+ 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.

78 {
79 $this->seqNodeId = $a_seqnodeid;
80 }

Referenced by insert().

+ 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

ilSCORM2004Condition::$operator = null
private

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

Referenced by getOperator().

◆ $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: