get_db()->prepare(" SELECT player, decorative, level FROM decoration WHERE id = :id; "); $statement->bindValue(':id', $id, SQLITE3_TEXT); $r = $statement->execute()->fetchArray(SQLITE3_ASSOC); if ($r){ $this->player = $r["player"]; $this->decorative = new Decorative($r["decorative"]); $this->level = $r["level"]; } } /** * Retrieves the owner's player id. * * @return int Player ID. */ public function get_player_id(){ return $this->player_id; } /** * Retrieves the base decorative structure. * * @return Decorative Base decorative. */ public function get_decorative(){ return $this->decorative; } /** * Retrieves the decoration level. * * @return int Decoration level. */ public function get_level(){ return $this->level; } } ?>