20        $this->options = array();
 
   34        $this->numeric = $a_value;
 
   45            foreach (array_keys($a_values) as 
$key) {
 
   46                if (!is_numeric(
$key)) {
 
   47                    throw new Exception(
"ilADTEnum was expecting numeric option keys");
 
   52        $this->options = $a_values;
 
   70            $class = 
"ilADTEnumNumeric";
 
   72            $class = 
"ilADTEnumText";
 
   74        include_once 
"Services/ADT/classes/Types/Enum/class.ilADTEnum.php";
 
   75        include_once 
"Services/ADT/classes/Types/Enum/class." . $class . 
".php";
 
   76        return new $class($this);
 
An exception for terminatinating execution or to throw for unit testing.
ADT definition base class.
setOptions(array $a_values)
isComparableTo(ilADT $a_adt)
Check if given ADT is comparable to self.
reset()
Init property defaults.
getType()
Get type (from class/instance)