private function import_boosters() { global $db; $this->boosters = array(); foreach ($db->select("SELECT content, player, number, pick, destination\n\t\t FROM `booster`\n\t\t\t\t\tWHERE `tournament` = {$this->id}") as $boost) { $booster = new Booster($this, $boost->player, $boost->number, $boost->pick, $boost->destination); $booster->get_content(json_decode($boost->content)); $this->boosters[] = $booster; } }