ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSCORM2004Rule Class Reference

Class ilSCORM2004Rule. More...

+ Inheritance diagram for ilSCORM2004Rule:
+ Collaboration diagram for ilSCORM2004Rule:

Public Member Functions

 __construct ()
 Constructor public. More...
 
 getSeqNodeId ()
 
 getId ()
 
 getType ()
 
 getAction ()
 
 setSeqNodeId ($a_seqnodeid)
 
 setId ($a_id)
 
 setType ($a_type)
 
 setAction ($a_action)
 
 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
 
 $type = null
 
 $action = true
 

Additional Inherited Members

- Protected Attributes inherited from ilSCORM2004SeqNode
 $db = null
 

Detailed Description

Class ilSCORM2004Rule.

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.ilSCORM2004Rule.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORM2004Rule::__construct ( )

Constructor public.

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

References ilSCORM2004SeqNode\setNodeName().

28  {
29  parent::__construct();
30  $this->setNodeName("rule");
31  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getAction()

ilSCORM2004Rule::getAction ( )

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

References $action.

54  {
55  return $this->action;
56  }

◆ getId()

ilSCORM2004Rule::getId ( )

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

References $id.

44  {
45  return $this->id;
46  }

◆ getSeqNodeId()

ilSCORM2004Rule::getSeqNodeId ( )

Definition at line 38 of file class.ilSCORM2004Rule.php.

References $seqNodeId.

39  {
40  return $this->seqNodeId;
41  }

◆ getType()

ilSCORM2004Rule::getType ( )

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

References $type.

49  {
50  return $this->type;
51  }

◆ insert()

ilSCORM2004Rule::insert (   $a_insert_node = false)

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

References $result, and setSeqNodeId().

88  {
89  if ($a_insert_node==true) {$this->setSeqNodeId(parent::insert());}
90  $sql = "INSERT INTO sahs_sc13_seq_rule (seqnodeid,type,action)".
91  " values(".
92  $this->db->quote($this->seqNodeId, "integer").",".
93  $this->db->quote($this->type, "text").",".
94  $this->db->quote($this->action, "text").");";
95  $result = $this->db->manipulate($sql);
96  return true;
97  }
$result
setSeqNodeId($a_seqnodeid)
+ Here is the call graph for this function:

◆ setAction()

ilSCORM2004Rule::setAction (   $a_action)

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

78  {
79  $this->action = $a_action;
80  }

◆ setId()

ilSCORM2004Rule::setId (   $a_id)

Definition at line 67 of file class.ilSCORM2004Rule.php.

68  {
69  $this->id = $a_id;
70  }

◆ setSeqNodeId()

ilSCORM2004Rule::setSeqNodeId (   $a_seqnodeid)

Definition at line 62 of file class.ilSCORM2004Rule.php.

Referenced by insert().

63  {
64  $this->seqNodeId = $a_seqnodeid;
65  }
+ Here is the caller graph for this function:

◆ setType()

ilSCORM2004Rule::setType (   $a_type)

Definition at line 72 of file class.ilSCORM2004Rule.php.

References $a_type.

73  {
74  $this->type = $a_type;
75  }
$a_type
Definition: workflow.php:93

Field Documentation

◆ $action

ilSCORM2004Rule::$action = true
private

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

Referenced by getAction().

◆ $id

ilSCORM2004Rule::$id = null
private

Definition at line 19 of file class.ilSCORM2004Rule.php.

Referenced by getId().

◆ $seqNodeId

ilSCORM2004Rule::$seqNodeId = null
private

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

Referenced by getSeqNodeId().

◆ $type

ilSCORM2004Rule::$type = null
private

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

Referenced by getType().


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