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

Public Member Functions

 __construct ()
 
 addNot ()
 
 addAnd ()
 
 addOr ()
 
 addUnanswered ($a_unanswered)
 
 addOther ($a_other)
 
 addVarequal ($a_varequal)
 
 addVarlt ($a_varlt)
 
 addVarlte ($a_varlte)
 
 addVargt ($a_vargt)
 
 addVargte ($a_vargte)
 
 addVarsubset ($a_varsubset)
 
 addVarinside ($a_varinside)
 
 addVarsubstring ($a_varsubstring)
 
 addDurequal ($a_durequal)
 
 addDurlt ($a_durlt)
 
 addDurlte ($a_durlte)
 
 addDurgt ($a_durgt)
 
 addDurgte ($a_durgte)
 
 addVarextension ($a_varextension)
 
 addResponseVar ($a_responsevar)
 

Data Fields

 $arr_not
 
 $arr_and
 
 $arr_or
 
 $unanswered
 
 $other
 
 $varequal
 
 $varlt
 
 $varlte
 
 $vargt
 
 $vargte
 
 $varsubset
 
 $varinside
 
 $varsubstring
 
 $durequal
 
 $durlt
 
 $durlte
 
 $durgt
 
 $durgte
 
 $varextension
 
 $order
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilQTIConditionvar::__construct ( )

Definition at line 55 of file class.ilQTIConditionvar.php.

56  {
57  $this->arr_not = array();
58  $this->arr_and = array();
59  $this->arr_or = array();
60  $this->unanswered = array();
61  $this->other = array();
62  $this->varequal = array();
63  $this->varlt = array();
64  $this->varlte = array();
65  $this->vargt = array();
66  $this->vargte = array();
67  $this->varsubset = array();
68  $this->varinside = array();
69  $this->varsubstring = array();
70  $this->durequal = array();
71  $this->durlt = array();
72  $this->durlte = array();
73  $this->durgt = array();
74  $this->durgte = array();
75  $this->varextension = array();
76  $this->order = array();
77  }

Member Function Documentation

◆ addAnd()

ilQTIConditionvar::addAnd ( )

Definition at line 85 of file class.ilQTIConditionvar.php.

86  {
87  array_push($this->arr_and, 1);
88  array_push($this->order, array("field" => "arr_and", "index" => count($this->arr_and) - 1));
89  }

◆ addDurequal()

ilQTIConditionvar::addDurequal (   $a_durequal)

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

158  {
159  array_push($this->durequal, $a_durequal);
160  array_push($this->order, array("field" => "durequal", "index" => count($this->durequal) - 1));
161  }

◆ addDurgt()

ilQTIConditionvar::addDurgt (   $a_durgt)

Definition at line 175 of file class.ilQTIConditionvar.php.

176  {
177  array_push($this->durgt, $a_durgt);
178  array_push($this->order, array("field" => "durgt", "index" => count($this->durgt) - 1));
179  }

◆ addDurgte()

ilQTIConditionvar::addDurgte (   $a_durgte)

Definition at line 181 of file class.ilQTIConditionvar.php.

182  {
183  array_push($this->durgte, $a_durgte);
184  array_push($this->order, array("field" => "durgte", "index" => count($this->durgte) - 1));
185  }

◆ addDurlt()

ilQTIConditionvar::addDurlt (   $a_durlt)

Definition at line 163 of file class.ilQTIConditionvar.php.

164  {
165  array_push($this->durlt, $a_durlt);
166  array_push($this->order, array("field" => "durlt", "index" => count($this->durlt) - 1));
167  }

◆ addDurlte()

ilQTIConditionvar::addDurlte (   $a_durlte)

Definition at line 169 of file class.ilQTIConditionvar.php.

170  {
171  array_push($this->durlte, $a_durlte);
172  array_push($this->order, array("field" => "durlte", "index" => count($this->durlte) - 1));
173  }

◆ addNot()

ilQTIConditionvar::addNot ( )

Definition at line 79 of file class.ilQTIConditionvar.php.

80  {
81  array_push($this->arr_not, 1);
82  array_push($this->order, array("field" => "arr_not", "index" => count($this->arr_not) - 1));
83  }

◆ addOr()

ilQTIConditionvar::addOr ( )

Definition at line 91 of file class.ilQTIConditionvar.php.

92  {
93  array_push($this->arr_or, 1);
94  array_push($this->order, array("field" => "arr_or", "index" => count($this->arr_or) - 1));
95  }

◆ addOther()

ilQTIConditionvar::addOther (   $a_other)

Definition at line 103 of file class.ilQTIConditionvar.php.

104  {
105  array_push($this->other, $a_other);
106  array_push($this->order, array("field" => "other", "index" => count($this->other) - 1));
107  }

◆ addResponseVar()

ilQTIConditionvar::addResponseVar (   $a_responsevar)

Definition at line 193 of file class.ilQTIConditionvar.php.

References addVarequal(), addVargt(), addVargte(), addVarinside(), addVarlt(), addVarlte(), addVarsubset(), addVarsubstring(), RESPONSEVAR_EQUAL, RESPONSEVAR_GT, RESPONSEVAR_GTE, RESPONSEVAR_INSIDE, RESPONSEVAR_LT, RESPONSEVAR_LTE, RESPONSEVAR_SUBSET, and RESPONSEVAR_SUBSTRING.

194  {
195  switch ($a_responsevar->getVartype()) {
196  case RESPONSEVAR_EQUAL:
197  $this->addVarequal($a_responsevar);
198  break;
199  case RESPONSEVAR_LT:
200  $this->addVarlt($a_responsevar);
201  break;
202  case RESPONSEVAR_LTE:
203  $this->addVarlte($a_responsevar);
204  break;
205  case RESPONSEVAR_GT:
206  $this->addVargt($a_responsevar);
207  break;
208  case RESPONSEVAR_GTE:
209  $this->addVargte($a_responsevar);
210  break;
211  case RESPONSEVAR_SUBSET:
212  $this->addVarsubset($a_responsevar);
213  break;
214  case RESPONSEVAR_INSIDE:
215  $this->addVarinside($a_responsevar);
216  break;
218  $this->addVarsubstring($a_responsevar);
219  break;
220  }
221  }
const RESPONSEVAR_LTE
const RESPONSEVAR_INSIDE
const RESPONSEVAR_SUBSTRING
const RESPONSEVAR_LT
const RESPONSEVAR_GT
const RESPONSEVAR_GTE
const RESPONSEVAR_EQUAL
addVarsubstring($a_varsubstring)
const RESPONSEVAR_SUBSET
+ Here is the call graph for this function:

◆ addUnanswered()

ilQTIConditionvar::addUnanswered (   $a_unanswered)

Definition at line 97 of file class.ilQTIConditionvar.php.

98  {
99  array_push($this->unanswered, $a_unanswered);
100  array_push($this->order, array("field" => "unanswered", "index" => count($this->unanswered) - 1));
101  }

◆ addVarequal()

ilQTIConditionvar::addVarequal (   $a_varequal)

Definition at line 109 of file class.ilQTIConditionvar.php.

Referenced by addResponseVar().

110  {
111  array_push($this->varequal, $a_varequal);
112  array_push($this->order, array("field" => "varequal", "index" => count($this->varequal) - 1));
113  }
+ Here is the caller graph for this function:

◆ addVarextension()

ilQTIConditionvar::addVarextension (   $a_varextension)

Definition at line 187 of file class.ilQTIConditionvar.php.

188  {
189  array_push($this->varextension, $a_varextension);
190  array_push($this->order, array("field" => "varextension", "index" => count($this->varextension) - 1));
191  }

◆ addVargt()

ilQTIConditionvar::addVargt (   $a_vargt)

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

Referenced by addResponseVar().

128  {
129  array_push($this->vargt, $a_vargt);
130  array_push($this->order, array("field" => "vargt", "index" => count($this->vargt) - 1));
131  }
+ Here is the caller graph for this function:

◆ addVargte()

ilQTIConditionvar::addVargte (   $a_vargte)

Definition at line 133 of file class.ilQTIConditionvar.php.

Referenced by addResponseVar().

134  {
135  array_push($this->vargte, $a_vargte);
136  array_push($this->order, array("field" => "vargte", "index" => count($this->vargte) - 1));
137  }
+ Here is the caller graph for this function:

◆ addVarinside()

ilQTIConditionvar::addVarinside (   $a_varinside)

Definition at line 145 of file class.ilQTIConditionvar.php.

Referenced by addResponseVar().

146  {
147  array_push($this->varinside, $a_varinside);
148  array_push($this->order, array("field" => "varinside", "index" => count($this->varinside) - 1));
149  }
+ Here is the caller graph for this function:

◆ addVarlt()

ilQTIConditionvar::addVarlt (   $a_varlt)

Definition at line 115 of file class.ilQTIConditionvar.php.

Referenced by addResponseVar().

116  {
117  array_push($this->varlt, $a_varlt);
118  array_push($this->order, array("field" => "varlt", "index" => count($this->varlt) - 1));
119  }
+ Here is the caller graph for this function:

◆ addVarlte()

ilQTIConditionvar::addVarlte (   $a_varlte)

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

Referenced by addResponseVar().

122  {
123  array_push($this->varlte, $a_varlte);
124  array_push($this->order, array("field" => "varlte", "index" => count($this->varlte) - 1));
125  }
+ Here is the caller graph for this function:

◆ addVarsubset()

ilQTIConditionvar::addVarsubset (   $a_varsubset)

Definition at line 139 of file class.ilQTIConditionvar.php.

Referenced by addResponseVar().

140  {
141  array_push($this->varsubset, $a_varsubset);
142  array_push($this->order, array("field" => "varsubset", "index" => count($this->varsubset) - 1));
143  }
+ Here is the caller graph for this function:

◆ addVarsubstring()

ilQTIConditionvar::addVarsubstring (   $a_varsubstring)

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

Referenced by addResponseVar().

152  {
153  array_push($this->varsubstring, $a_varsubstring);
154  array_push($this->order, array("field" => "varsubstring", "index" => count($this->varsubstring) - 1));
155  }
+ Here is the caller graph for this function:

Field Documentation

◆ $arr_and

ilQTIConditionvar::$arr_and

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

◆ $arr_not

ilQTIConditionvar::$arr_not

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

◆ $arr_or

ilQTIConditionvar::$arr_or

Definition at line 36 of file class.ilQTIConditionvar.php.

◆ $durequal

ilQTIConditionvar::$durequal

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

◆ $durgt

ilQTIConditionvar::$durgt

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

◆ $durgte

ilQTIConditionvar::$durgte

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

◆ $durlt

ilQTIConditionvar::$durlt

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

◆ $durlte

ilQTIConditionvar::$durlte

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

◆ $order

ilQTIConditionvar::$order

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

◆ $other

ilQTIConditionvar::$other

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

◆ $unanswered

ilQTIConditionvar::$unanswered

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

◆ $varequal

ilQTIConditionvar::$varequal

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

◆ $varextension

ilQTIConditionvar::$varextension

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

◆ $vargt

ilQTIConditionvar::$vargt

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

◆ $vargte

ilQTIConditionvar::$vargte

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

◆ $varinside

ilQTIConditionvar::$varinside

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

◆ $varlt

ilQTIConditionvar::$varlt

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

◆ $varlte

ilQTIConditionvar::$varlte

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

◆ $varsubset

ilQTIConditionvar::$varsubset

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

◆ $varsubstring

ilQTIConditionvar::$varsubstring

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


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