name = $n; $this->type = $t; $this->id = $i; } else { die("Invalid type given: ".$t."\n $n $i"); } } } ?>