function __construct($id = 1) { // Get the Quest (Skill) based on the id if (is_numeric($id)) { $hotspot_row = get_hotspot($id); $this->build($hotspot_row); } }
function get_hotspot_info() { $hotspot_id = $_POST['hotspot_id']; $hotspot = get_hotspot($hotspot_id); echo $hotspot->hotspot_info; }