ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilQTISetvar Class Reference
+ Collaboration diagram for ilQTISetvar:

Public Member Functions

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

Data Fields

const ACTION_SET = "1"
 
const ACTION_ADD = "2"
 
const ACTION_SUBTRACT = "3"
 
const ACTION_MULTIPLY = "4"
 
const ACTION_DIVIDE = "5"
 
string $varname = null
 
string $action = null
 
string $content = null
 

Detailed Description

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

Member Function Documentation

◆ getAction()

ilQTISetvar::getAction ( )

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

References $action.

77  : ?string
78  {
79  return $this->action;
80  }

◆ getContent()

ilQTISetvar::getContent ( )

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

References $content.

87  : ?string
88  {
89  return $this->content;
90  }

◆ getVarname()

ilQTISetvar::getVarname ( )

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

References $varname.

46  : ?string
47  {
48  return $this->varname;
49  }

◆ setAction()

ilQTISetvar::setAction ( string  $a_action)

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

51  : void
52  {
53  switch (strtolower($a_action)) {
54  case "set":
55  case "1":
56  $this->action = self::ACTION_SET;
57  break;
58  case "add":
59  case "2":
60  $this->action = self::ACTION_ADD;
61  break;
62  case "subtract":
63  case "3":
64  $this->action = self::ACTION_SUBTRACT;
65  break;
66  case "multiply":
67  case "4":
68  $this->action = self::ACTION_MULTIPLY;
69  break;
70  case "divide":
71  case "5":
72  $this->action = self::ACTION_DIVIDE;
73  break;
74  }
75  }

◆ setContent()

ilQTISetvar::setContent ( string  $a_content)

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

82  : void
83  {
84  $this->content = $a_content;
85  }

◆ setVarname()

ilQTISetvar::setVarname ( string  $a_varname)

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

41  : void
42  {
43  $this->varname = $a_varname;
44  }

Field Documentation

◆ $action

string ilQTISetvar::$action = null

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

Referenced by getAction().

◆ $content

string ilQTISetvar::$content = null

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

Referenced by getContent().

◆ $varname

string ilQTISetvar::$varname = null

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

Referenced by getVarname().

◆ ACTION_ADD

const ilQTISetvar::ACTION_ADD = "2"

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

Referenced by ilQTISetvarTest\actions(), and assTextSubsetImport\fromXML().

◆ ACTION_DIVIDE

const ilQTISetvar::ACTION_DIVIDE = "5"

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

Referenced by ilQTISetvarTest\actions().

◆ ACTION_MULTIPLY

const ilQTISetvar::ACTION_MULTIPLY = "4"

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

Referenced by ilQTISetvarTest\actions().

◆ ACTION_SET

const ilQTISetvar::ACTION_SET = "1"

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

Referenced by ilQTISetvarTest\actions().

◆ ACTION_SUBTRACT

const ilQTISetvar::ACTION_SUBTRACT = "3"

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

Referenced by ilQTISetvarTest\actions().


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