ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilQTISetvar Class Reference
+ Collaboration diagram for ilQTISetvar:

Public Member Functions

 __construct ()
 
 setVarname ($a_varname)
 
 getVarname ()
 
 setAction ($a_action)
 
 getAction ()
 
 setContent ($a_content)
 
 getContent ()
 

Data Fields

 $varname
 
 $action
 
 $content
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilQTISetvar::__construct ( )

Definition at line 44 of file class.ilQTISetvar.php.

45  {
46  }

Member Function Documentation

◆ getAction()

ilQTISetvar::getAction ( )

Definition at line 84 of file class.ilQTISetvar.php.

References $action.

85  {
86  return $this->action;
87  }

◆ getContent()

ilQTISetvar::getContent ( )

Definition at line 94 of file class.ilQTISetvar.php.

References $content.

95  {
96  return $this->content;
97  }

◆ getVarname()

ilQTISetvar::getVarname ( )

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

References $varname.

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

◆ setAction()

ilQTISetvar::setAction (   $a_action)

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

References ACTION_ADD, ACTION_DIVIDE, ACTION_MULTIPLY, ACTION_SET, and ACTION_SUBTRACT.

59  {
60  switch (strtolower($a_action)) {
61  case "set":
62  case "1":
63  $this->action = ACTION_SET;
64  break;
65  case "add":
66  case "2":
67  $this->action = ACTION_ADD;
68  break;
69  case "subtract":
70  case "3":
71  $this->action = ACTION_SUBTRACT;
72  break;
73  case "multiply":
74  case "4":
75  $this->action = ACTION_MULTIPLY;
76  break;
77  case "divide":
78  case "5":
79  $this->action = ACTION_DIVIDE;
80  break;
81  }
82  }
const ACTION_MULTIPLY
const ACTION_SET
const ACTION_ADD
const ACTION_DIVIDE
const ACTION_SUBTRACT

◆ setContent()

ilQTISetvar::setContent (   $a_content)

Definition at line 89 of file class.ilQTISetvar.php.

References $a_content.

90  {
91  $this->content = $a_content;
92  }
$a_content
Definition: workflow.php:93

◆ setVarname()

ilQTISetvar::setVarname (   $a_varname)

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

49  {
50  $this->varname = $a_varname;
51  }

Field Documentation

◆ $action

ilQTISetvar::$action

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

Referenced by getAction().

◆ $content

ilQTISetvar::$content

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

Referenced by getContent().

◆ $varname

ilQTISetvar::$varname

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

Referenced by getVarname().


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