/** * Method used to remove reminder actions by using the administrative * interface of the system. * * @access public * @return boolean */ function remove($action_ids) { $items = @implode(", ", Misc::escapeInteger($action_ids)); $stmt = "DELETE FROM\n " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "reminder_action\n WHERE\n rma_id IN ({$items})"; $GLOBALS["db_api"]->dbh->query($stmt); $stmt = "DELETE FROM\n " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "reminder_history\n WHERE\n rmh_rma_id IN ({$items})"; $GLOBALS["db_api"]->dbh->query($stmt); $stmt = "DELETE FROM\n " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "reminder_level_condition\n WHERE\n rlc_rma_id IN ({$items})"; $GLOBALS["db_api"]->dbh->query($stmt); Reminder_Action::clearActionUserList($action_ids); }