ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 85 of file class.ilQTISetvar.php.

References $action.

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

◆ getContent()

ilQTISetvar::getContent ( )

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

References $content.

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

◆ 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  {
62  case "set":
63  case "1":
64  $this->action = ACTION_SET;
65  break;
66  case "add":
67  case "2":
68  $this->action = ACTION_ADD;
69  break;
70  case "subtract":
71  case "3":
72  $this->action = ACTION_SUBTRACT;
73  break;
74  case "multiply":
75  case "4":
76  $this->action = ACTION_MULTIPLY;
77  break;
78  case "divide":
79  case "5":
80  $this->action = ACTION_DIVIDE;
81  break;
82  }
83  }
const ACTION_MULTIPLY
const ACTION_SET
const ACTION_ADD
const ACTION_DIVIDE
const ACTION_SUBTRACT

◆ setContent()

ilQTISetvar::setContent (   $a_content)

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

References $a_content.

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

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