type = $t; $this->name = $n; $this->id = $i; } else { die("Invalid type given: " . $t . "\n $n $i"); } switch (strtolower($this->type)) { case "questionnaire": $this->imageURL = "images/icons/questionnaire.png"; break; case "dashboard": $this->imageURL = "images/icons/dashboard.png"; break; case "application": $this->imageURL = "images/icons/application.png"; break; default: $this->imageURL = "images/icons/unknowntype.png"; break; } } public function AdjustID($offset) { $this->id += $offset; } public function DrawStep() { if (isset($this->type) && isset($this->imageURL) && isset($this->name)) { ?>