get_db()->prepare(" SELECT id, name FROM server 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"]); } } /** * Retrieves the server identifier. * * @return number Server ID. */ public function get_id(){ return $this->id; } /** * Retrieves the server name name. * * @return string Server name. */ public function get_name(){ return $this->name; } } ?>