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

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

◆ getContent()

ilQTIDecvar::getContent ( )

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

References $content.

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

◆ getCutvalue()

ilQTIDecvar::getCutvalue ( )

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

References $cutvalue.

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

◆ getDefaultval()

ilQTIDecvar::getDefaultval ( )

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

References $defaultval.

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

◆ getMaxvalue()

ilQTIDecvar::getMaxvalue ( )

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

References $maxvalue.

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

◆ getMembers()

ilQTIDecvar::getMembers ( )

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

References $members.

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

◆ getMinvalue()

ilQTIDecvar::getMinvalue ( )

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

References $minvalue.

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

◆ 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 102 of file class.ilQTIDecvar.php.

References $vartype.

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

◆ setContent()

ilQTIDecvar::setContent (   $a_content)

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

References $a_content.

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

◆ setCutvalue()

ilQTIDecvar::setCutvalue (   $a_cutvalue)

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

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

◆ setDefaultval()

ilQTIDecvar::setDefaultval (   $a_defaultval)

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

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

◆ setMaxvalue()

ilQTIDecvar::setMaxvalue (   $a_maxvalue)

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

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

◆ setMembers()

ilQTIDecvar::setMembers (   $a_members)

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

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

◆ setMinvalue()

ilQTIDecvar::setMinvalue (   $a_minvalue)

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

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

◆ 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  {
71  case "integer":
72  case "1":
73  $this->vartype = VARTYPE_INTEGER;
74  break;
75  case "string":
76  case "2":
77  $this->vartype = VARTYPE_STRING;
78  break;
79  case "decimal":
80  case "3":
81  $this->vartype = VARTYPE_DECIMAL;
82  break;
83  case "scientific":
84  case "4":
85  $this->vartype = VARTYPE_SCIENTIFIC;
86  break;
87  case "boolean":
88  case "5":
89  $this->vartype = VARTYPE_BOOLEAN;
90  break;
91  case "enumerated":
92  case "6":
93  $this->vartype = VARTYPE_ENUMERATED;
94  break;
95  case "set":
96  case "7":
97  $this->vartype = VARTYPE_SET;
98  break;
99  }
100  }
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: