prepare(" SELECT id, name, description FROM k_guild_skill_group WHERE id = :id; "); $statement->bindValue(':id', $id, SQLITE3_INTEGER); $r = $statement->execute()->fetchArray(SQLITE3_ASSOC); if ($r){ $this->id = $r["id"]; $this->name = HTML::e($r["name"]); $this->description = HTML::e($r["description"]); $statement = $db->prepare(" SELECT id FROM k_guild_skill WHERE skill_group = :id; "); $statement->bindValue(':id', $this->id, SQLITE3_INTEGER); $q = $statement->execute(); while ($r = $q->fetchArray(SQLITE3_ASSOC)){ array_push($this->skills, new K_Guild_Skill($r["id"])); } } } /** * Gets the pathto the monster image. The image must be in the * img/skill_guild/ directory, and its name must be the monster id, * padded with '0' to 1 digits, and the extension must be '.png'. * * @return string Image URL, or a fixed unknown image. */ public function get_image(){ return APPLICATION::img("SKILL_GUILD", $this->id); } } ?>