ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilQTIConditionvar Class Reference
+ Collaboration diagram for ilQTIConditionvar:

Public Member Functions

 ilQTIConditionvar ()
 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.

Member Function Documentation

ilQTIConditionvar::addAnd ( )

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

{
array_push($this->arr_and, 1);
array_push($this->order, array("field" => "arr_and", "index" => count($this->arr_and) - 1));
}
ilQTIConditionvar::addDurequal (   $a_durequal)

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

{
array_push($this->durequal, $a_durequal);
array_push($this->order, array("field" => "durequal", "index" => count($this->durequal) - 1));
}
ilQTIConditionvar::addDurgt (   $a_durgt)

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

{
array_push($this->durgt, $a_durgt);
array_push($this->order, array("field" => "durgt", "index" => count($this->durgt) - 1));
}
ilQTIConditionvar::addDurgte (   $a_durgte)

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

{
array_push($this->durgte, $a_durgte);
array_push($this->order, array("field" => "durgte", "index" => count($this->durgte) - 1));
}
ilQTIConditionvar::addDurlt (   $a_durlt)

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

{
array_push($this->durlt, $a_durlt);
array_push($this->order, array("field" => "durlt", "index" => count($this->durlt) - 1));
}
ilQTIConditionvar::addDurlte (   $a_durlte)

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

{
array_push($this->durlte, $a_durlte);
array_push($this->order, array("field" => "durlte", "index" => count($this->durlte) - 1));
}
ilQTIConditionvar::addNot ( )

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

{
array_push($this->arr_not, 1);
array_push($this->order, array("field" => "arr_not", "index" => count($this->arr_not) - 1));
}
ilQTIConditionvar::addOr ( )

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

{
array_push($this->arr_or, 1);
array_push($this->order, array("field" => "arr_or", "index" => count($this->arr_or) - 1));
}
ilQTIConditionvar::addOther (   $a_other)

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

{
array_push($this->other, $a_other);
array_push($this->order, array("field" => "other", "index" => count($this->other) - 1));
}
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.

{
switch ($a_responsevar->getVartype())
{
$this->addVarequal($a_responsevar);
break;
$this->addVarlt($a_responsevar);
break;
$this->addVarlte($a_responsevar);
break;
$this->addVargt($a_responsevar);
break;
$this->addVargte($a_responsevar);
break;
$this->addVarsubset($a_responsevar);
break;
$this->addVarinside($a_responsevar);
break;
$this->addVarsubstring($a_responsevar);
break;
}
}

+ Here is the call graph for this function:

ilQTIConditionvar::addUnanswered (   $a_unanswered)

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

{
array_push($this->unanswered, $a_unanswered);
array_push($this->order, array("field" => "unanswered", "index" => count($this->unanswered) - 1));
}
ilQTIConditionvar::addVarequal (   $a_varequal)

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

Referenced by addResponseVar().

{
array_push($this->varequal, $a_varequal);
array_push($this->order, array("field" => "varequal", "index" => count($this->varequal) - 1));
}

+ Here is the caller graph for this function:

ilQTIConditionvar::addVarextension (   $a_varextension)

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

{
array_push($this->varextension, $a_varextension);
array_push($this->order, array("field" => "varextension", "index" => count($this->varextension) - 1));
}
ilQTIConditionvar::addVargt (   $a_vargt)

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

Referenced by addResponseVar().

{
array_push($this->vargt, $a_vargt);
array_push($this->order, array("field" => "vargt", "index" => count($this->vargt) - 1));
}

+ Here is the caller graph for this function:

ilQTIConditionvar::addVargte (   $a_vargte)

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

Referenced by addResponseVar().

{
array_push($this->vargte, $a_vargte);
array_push($this->order, array("field" => "vargte", "index" => count($this->vargte) - 1));
}

+ Here is the caller graph for this function:

ilQTIConditionvar::addVarinside (   $a_varinside)

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

Referenced by addResponseVar().

{
array_push($this->varinside, $a_varinside);
array_push($this->order, array("field" => "varinside", "index" => count($this->varinside) - 1));
}

+ Here is the caller graph for this function:

ilQTIConditionvar::addVarlt (   $a_varlt)

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

Referenced by addResponseVar().

{
array_push($this->varlt, $a_varlt);
array_push($this->order, array("field" => "varlt", "index" => count($this->varlt) - 1));
}

+ Here is the caller graph for this function:

ilQTIConditionvar::addVarlte (   $a_varlte)

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

Referenced by addResponseVar().

{
array_push($this->varlte, $a_varlte);
array_push($this->order, array("field" => "varlte", "index" => count($this->varlte) - 1));
}

+ Here is the caller graph for this function:

ilQTIConditionvar::addVarsubset (   $a_varsubset)

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

Referenced by addResponseVar().

{
array_push($this->varsubset, $a_varsubset);
array_push($this->order, array("field" => "varsubset", "index" => count($this->varsubset) - 1));
}

+ Here is the caller graph for this function:

ilQTIConditionvar::addVarsubstring (   $a_varsubstring)

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

Referenced by addResponseVar().

{
array_push($this->varsubstring, $a_varsubstring);
array_push($this->order, array("field" => "varsubstring", "index" => count($this->varsubstring) - 1));
}

+ Here is the caller graph for this function:

ilQTIConditionvar::ilQTIConditionvar ( )

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

{
$this->arr_not = array();
$this->arr_and = array();
$this->arr_or = array();
$this->unanswered = array();
$this->other = array();
$this->varequal = array();
$this->varlt = array();
$this->varlte = array();
$this->vargt = array();
$this->vargte = array();
$this->varsubset = array();
$this->varinside = array();
$this->varsubstring = array();
$this->durequal = array();
$this->durlt = array();
$this->durlte = array();
$this->durgt = array();
$this->durgte = array();
$this->varextension = array();
$this->order = array();
}

Field Documentation

ilQTIConditionvar::$arr_and

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

ilQTIConditionvar::$arr_not

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

ilQTIConditionvar::$arr_or

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

ilQTIConditionvar::$durequal

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

ilQTIConditionvar::$durgt

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

ilQTIConditionvar::$durgte

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

ilQTIConditionvar::$durlt

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

ilQTIConditionvar::$durlte

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

ilQTIConditionvar::$order

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

ilQTIConditionvar::$other

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

ilQTIConditionvar::$unanswered

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

ilQTIConditionvar::$varequal

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

ilQTIConditionvar::$varextension

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

ilQTIConditionvar::$vargt

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

ilQTIConditionvar::$vargte

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

ilQTIConditionvar::$varinside

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

ilQTIConditionvar::$varlt

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

ilQTIConditionvar::$varlte

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

ilQTIConditionvar::$varsubset

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

ilQTIConditionvar::$varsubstring

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


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