type = $t; $this->reference = $ref; $this->name = $n; switch ($this->type) { case "Questionnaire": $this->imageURL = "images/icons/questionnaire2.png"; break; case "Dashboard": $this->imageURL = "images/icons/dashboard2.png"; break; case "Application": $this->imageURL = "images/icons/application2.png"; break; case "Notice": $this->imageURL = "images/icons/notice2.png"; break; default: $this->imageURL = null; break; } //output a display object echo '
'.$this->name.'