name = $name; $this->id = $id; $this->type = $type; } function serialize() { return serialize($this); } function unserialize($str) { return unserialize($str); } function getHTML() { $html .= "\n\t
  • type ."\">"; $html .= "\n\t\t" . $this->name . ""; $html .= "\n\t
  • "; return $html; } function getName() { return $this->name; } function getId() { return $this->id; } } ?>