/** * updates Message ID for every links. * @param $message_id represents Message ID that needs to be updated. * @param $link_ids represents link id for which the message id is being updated. */ static function updateMessageIdForTrackerLinks($message_id, $link_ids) { global $logger; if (count($link_ids) > 0) { $logger->info("Ready for Update Message ID in email_redirection."); $link_ids = implode(" , ", $link_ids); $sql = "UPDATE `email_links_redirection` SET `message_id` = {$message_id}\n\t\t\t\t\t\tWHERE `id` IN ( {$link_ids} ) "; $db = new Dbase("msging"); if ($db->update($sql)) { $logger->info("Message ID has been updated."); } else { $logger->info("Message ID has updation is failed"); } } else { $logger->info("There is not any links in this Message."); } }