prepare(" SELECT id, name, amount, description FROM k_rune_set WHERE id = :id; "); $statement->bindValue(':id', $id, SQLITE3_TEXT); $r = $statement->execute()->fetchArray(SQLITE3_ASSOC); if ($r){ $this->id = $r["id"]; $this->name = HTML::e($r["name"]); $this->amount = $r["amount"]; $this->description = HTML::e($r["description"]); } } /** * Gets the path to the set image. The image must be in the * img/rune/ directory, and its name must be the set id, * padded with '0' to 2 digits, and the extension must be '.png'. * * @return string Image URL, or a fixed unknown image. */ public function get_image(){ return APPLICATION::img("RUNE", $this->id); } } ?>