/** * Add image read * * @param PluginLsgallery_ModuleImage_EntityImageRead $oImageRead * @return boolean */ public function AddImageRead($oImageRead) { $sql = "INSERT INTO\n " . Config::Get('db.table.lsgallery.image_read') . "\n SET\n comment_count_last = ? ,\n comment_id_last = ? ,\n date_read = ? ,\n image_id = ? ,\n user_id = ?\n "; return $this->oDb->query($sql, $oImageRead->getCommentCountLast(), $oImageRead->getCommentIdLast(), $oImageRead->getDateRead(), $oImageRead->getImageId(), $oImageRead->getUserId()); }