ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilQTIDecvar Class Reference
+ Collaboration diagram for ilQTIDecvar:

Public Member Functions

 __construct ()
 
 setVarname ($a_varname)
 
 getVarname ()
 
 setVartype ($a_vartype)
 
 getVartype ()
 
 setDefaultval ($a_defaultval)
 
 getDefaultval ()
 
 setMinvalue ($a_minvalue)
 
 getMinvalue ()
 
 setMaxvalue ($a_maxvalue)
 
 getMaxvalue ()
 
 setMembers ($a_members)
 
 getMembers ()
 
 setCutvalue ($a_cutvalue)
 
 getCutvalue ()
 
 setContent ($a_content)
 
 getContent ()
 
 addInterpretvar ($a_interpretvar)
 

Data Fields

 $varname
 
 $vartype
 
 $defaultval
 
 $minvalue
 
 $maxvalue
 
 $members
 
 $cutvalue
 
 $content
 
 $interpretvar
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilQTIDecvar::__construct ( )

Definition at line 52 of file class.ilQTIDecvar.php.

References array.

53  {
54  $this->interpretvar = array();
55  }
Create styles array
The data for the language used.

Member Function Documentation

◆ addInterpretvar()

ilQTIDecvar::addInterpretvar (   $a_interpretvar)

Definition at line 166 of file class.ilQTIDecvar.php.

167  {
168  array_push($this->interpretvar, $a_interpretvar);
169  }

◆ getContent()

ilQTIDecvar::getContent ( )

Definition at line 161 of file class.ilQTIDecvar.php.

References $content.

162  {
163  return $this->content;
164  }

◆ getCutvalue()

ilQTIDecvar::getCutvalue ( )

Definition at line 151 of file class.ilQTIDecvar.php.

References $cutvalue.

152  {
153  return $this->cutvalue;
154  }

◆ getDefaultval()

ilQTIDecvar::getDefaultval ( )

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

References $defaultval.

112  {
113  return $this->defaultval;
114  }

◆ getMaxvalue()

ilQTIDecvar::getMaxvalue ( )

Definition at line 131 of file class.ilQTIDecvar.php.

References $maxvalue.

132  {
133  return $this->maxvalue;
134  }

◆ getMembers()

ilQTIDecvar::getMembers ( )

Definition at line 141 of file class.ilQTIDecvar.php.

References $members.

142  {
143  return $this->members;
144  }

◆ getMinvalue()

ilQTIDecvar::getMinvalue ( )

Definition at line 121 of file class.ilQTIDecvar.php.

References $minvalue.

122  {
123  return $this->minvalue;
124  }

◆ getVarname()

ilQTIDecvar::getVarname ( )

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

References $varname.

63  {
64  return $this->varname;
65  }

◆ getVartype()

ilQTIDecvar::getVartype ( )

Definition at line 101 of file class.ilQTIDecvar.php.

References $vartype.

102  {
103  return $this->vartype;
104  }

◆ setContent()

ilQTIDecvar::setContent (   $a_content)

Definition at line 156 of file class.ilQTIDecvar.php.

References $a_content.

157  {
158  $this->content = $a_content;
159  }
$a_content
Definition: workflow.php:93

◆ setCutvalue()

ilQTIDecvar::setCutvalue (   $a_cutvalue)

Definition at line 146 of file class.ilQTIDecvar.php.

147  {
148  $this->cutvalue = $a_cutvalue;
149  }

◆ setDefaultval()

ilQTIDecvar::setDefaultval (   $a_defaultval)

Definition at line 106 of file class.ilQTIDecvar.php.

107  {
108  $this->defaultval = $a_defaultval;
109  }

◆ setMaxvalue()

ilQTIDecvar::setMaxvalue (   $a_maxvalue)

Definition at line 126 of file class.ilQTIDecvar.php.

127  {
128  $this->maxvalue = $a_maxvalue;
129  }

◆ setMembers()

ilQTIDecvar::setMembers (   $a_members)

Definition at line 136 of file class.ilQTIDecvar.php.

137  {
138  $this->members = $a_members;
139  }

◆ setMinvalue()

ilQTIDecvar::setMinvalue (   $a_minvalue)

Definition at line 116 of file class.ilQTIDecvar.php.

117  {
118  $this->minvalue = $a_minvalue;
119  }

◆ setVarname()

ilQTIDecvar::setVarname (   $a_varname)

Definition at line 57 of file class.ilQTIDecvar.php.

58  {
59  $this->varname = $a_varname;
60  }

◆ setVartype()

ilQTIDecvar::setVartype (   $a_vartype)

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

References VARTYPE_BOOLEAN, VARTYPE_DECIMAL, VARTYPE_ENUMERATED, VARTYPE_INTEGER, VARTYPE_SCIENTIFIC, VARTYPE_SET, and VARTYPE_STRING.

68  {
69  switch (strtolower($a_vartype)) {
70  case "integer":
71  case "1":
72  $this->vartype = VARTYPE_INTEGER;
73  break;
74  case "string":
75  case "2":
76  $this->vartype = VARTYPE_STRING;
77  break;
78  case "decimal":
79  case "3":
80  $this->vartype = VARTYPE_DECIMAL;
81  break;
82  case "scientific":
83  case "4":
84  $this->vartype = VARTYPE_SCIENTIFIC;
85  break;
86  case "boolean":
87  case "5":
88  $this->vartype = VARTYPE_BOOLEAN;
89  break;
90  case "enumerated":
91  case "6":
92  $this->vartype = VARTYPE_ENUMERATED;
93  break;
94  case "set":
95  case "7":
96  $this->vartype = VARTYPE_SET;
97  break;
98  }
99  }
const VARTYPE_INTEGER
const VARTYPE_SET
const VARTYPE_DECIMAL
const VARTYPE_BOOLEAN
const VARTYPE_ENUMERATED
const VARTYPE_STRING
const VARTYPE_SCIENTIFIC

Field Documentation

◆ $content

ilQTIDecvar::$content

Definition at line 49 of file class.ilQTIDecvar.php.

Referenced by getContent().

◆ $cutvalue

ilQTIDecvar::$cutvalue

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

Referenced by getCutvalue().

◆ $defaultval

ilQTIDecvar::$defaultval

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

Referenced by getDefaultval().

◆ $interpretvar

ilQTIDecvar::$interpretvar

Definition at line 50 of file class.ilQTIDecvar.php.

◆ $maxvalue

ilQTIDecvar::$maxvalue

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

Referenced by getMaxvalue().

◆ $members

ilQTIDecvar::$members

Definition at line 47 of file class.ilQTIDecvar.php.

Referenced by getMembers().

◆ $minvalue

ilQTIDecvar::$minvalue

Definition at line 45 of file class.ilQTIDecvar.php.

Referenced by getMinvalue().

◆ $varname

ilQTIDecvar::$varname

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

Referenced by getVarname().

◆ $vartype

ilQTIDecvar::$vartype

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

Referenced by getVartype().


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