get_db()->prepare(" SELECT id, skill_group, level, effect FROM key.guild_skill WHERE id = :id; "); $statement->bindValue(':id', $id, SQLITE3_TEXT); $r = $statement->execute()->fetchArray(SQLITE3_ASSOC); if ($r){ $this->id = $r["id"]; $this->group = $r["skill_group"]; $this->level = $r["level"]; $this->effect = HTML::e($r["effect"]); } } /** * Retrieves the guild skill identifier. * * @return int Skill ID. */ public function get_id(){ return $this->id; } /** * Retrieves the skill group identifier. * * @return int Group ID. */ public function get_group(){ return $this->group; } /** * Retrieves the skill level. * * @return int Skill level. */ public function get_level(){ return $this->level; } /** * Retrieves the skill efect description. * * @return string Skill description. */ public function get_effect(){ return $this->effect; } } ?>