ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilQTIDecvar Class Reference
+ Collaboration diagram for ilQTIDecvar:

Public Member Functions

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

Member Function Documentation

ilQTIDecvar::addInterpretvar (   $a_interpretvar)

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

{
array_push($this->interpretvar, $a_interpretvar);
}
ilQTIDecvar::getContent ( )

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

References $content.

{
}
ilQTIDecvar::getCutvalue ( )

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

References $cutvalue.

{
}
ilQTIDecvar::getDefaultval ( )

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

References $defaultval.

{
}
ilQTIDecvar::getMaxvalue ( )

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

References $maxvalue.

{
}
ilQTIDecvar::getMembers ( )

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

References $members.

{
}
ilQTIDecvar::getMinvalue ( )

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

References $minvalue.

{
}
ilQTIDecvar::getVarname ( )

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

References $varname.

{
}
ilQTIDecvar::getVartype ( )

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

References $vartype.

{
}
ilQTIDecvar::ilQTIDecvar ( )

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

{
$this->interpretvar = array();
}
ilQTIDecvar::setContent (   $a_content)

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

{
$this->content = $a_content;
}
ilQTIDecvar::setCutvalue (   $a_cutvalue)

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

{
$this->cutvalue = $a_cutvalue;
}
ilQTIDecvar::setDefaultval (   $a_defaultval)

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

{
$this->defaultval = $a_defaultval;
}
ilQTIDecvar::setMaxvalue (   $a_maxvalue)

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

{
$this->maxvalue = $a_maxvalue;
}
ilQTIDecvar::setMembers (   $a_members)

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

{
$this->members = $a_members;
}
ilQTIDecvar::setMinvalue (   $a_minvalue)

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

{
$this->minvalue = $a_minvalue;
}
ilQTIDecvar::setVarname (   $a_varname)

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

{
$this->varname = $a_varname;
}
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.

{
switch (strtolower($a_vartype))
{
case "integer":
case "1":
$this->vartype = VARTYPE_INTEGER;
break;
case "string":
case "2":
$this->vartype = VARTYPE_STRING;
break;
case "decimal":
case "3":
$this->vartype = VARTYPE_DECIMAL;
break;
case "scientific":
case "4":
$this->vartype = VARTYPE_SCIENTIFIC;
break;
case "boolean":
case "5":
$this->vartype = VARTYPE_BOOLEAN;
break;
case "enumerated":
case "6":
$this->vartype = VARTYPE_ENUMERATED;
break;
case "set":
case "7":
$this->vartype = VARTYPE_SET;
break;
}
}

Field Documentation

ilQTIDecvar::$content

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

Referenced by getContent().

ilQTIDecvar::$cutvalue

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

Referenced by getCutvalue().

ilQTIDecvar::$defaultval

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

Referenced by getDefaultval().

ilQTIDecvar::$interpretvar

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

ilQTIDecvar::$maxvalue

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

Referenced by getMaxvalue().

ilQTIDecvar::$members

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

Referenced by getMembers().

ilQTIDecvar::$minvalue

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

Referenced by getMinvalue().

ilQTIDecvar::$varname

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

Referenced by getVarname().

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: