view = PATH::VIEW . "optimizer.php"; $s = $this->build_query(); $q = $db->query($s); while ($r = $q->fetchArray(SQLITE3_ASSOC)){ array_push($this->teams, new Team($r["id"])); } $s = " SELECT id FROM unit WHERE unit.uid = '$UID'; "; $this->title = "Optmizer - SWDB"; $this->description = "Optimizer"; $this->canonical = URL::BASE . "optmizer/"; } /** * Builds the query to the rune table using the selected or default * filters. * * @return string The query to be executed. */ private function build_query(){ global $UID; $s = " SELECT id FROM team WHERE uid = '$UID' ORDER BY area_type, area "; return $s; } } ?>