url = $data['url']; $this->target = $data['target']; $this->category = isset($data['category']) ? $data['category'] : $data['target']; } /* Get the download URL for the demo. */ public function getURL() { return $this->url; } /* Get the target name for the demo. */ public function getTarget() { return $this->target; } /* Get the category for the demo. */ public function getCategory() { return $this->category; } }