/**
  * Update image
  *
  * @param PluginLsgallery_ModuleImage_EntityImage $oImage
  * @return boolean
  */
 public function UpdateImage($oImage)
 {
     $sql = "UPDATE\n                    " . Config::Get('db.table.lsgallery.image') . "\n                SET\n                    album_id = ?d,\n                    image_description = ?,\n                    image_tags = ?,\n                    image_date_edit = ?,\n                    image_count_comment = ?d,\n                    image_rating = ?,\n                    image_count_vote = ?d,\n                    image_count_vote_up= ?d,\n\t\t\t\t    image_count_vote_down= ?d,\n\t\t\t\t    image_count_vote_abstain= ?d,\n                    image_count_favourite =?d\n                WHERE\n                    image_id = ?d\n                ";
     if ($this->oDb->query($sql, $oImage->getAlbumId(), $oImage->getDescription(), $oImage->getImageTags(), $oImage->getDateEdit(), $oImage->getCountComment(), $oImage->getRating(), $oImage->getCountVote(), $oImage->getCountVoteUp(), $oImage->getCountVoteDown(), $oImage->getCountVoteAbstain(), $oImage->getCountFavourite(), $oImage->getId())) {
         return true;
     }
     return false;
 }