public static function deactivate_subscriptions(array $ids) {
        global $DB;
        if (!empty($ids)) {
            $inactivedate = time();
            list($sql, $params) = $DB->get_in_or_equal($ids);
            $success = $DB->set_field_select('tool_monitor_subscriptions', 'inactivedate', $inactivedate, 'id ' . $sql,
                                             $params);
            return $success;
        }
        return false;
    }
public static function deactivate_subscriptions(array $ids) {
        global $DB;
        if (!empty($ids)) {
            $inactivedate = time();
            list($sql, $params) = $DB->get_in_or_equal($ids);
            $success = $DB->set_field_select('tool_monitor_subscriptions', 'inactivedate', $inactivedate, 'id ' . $sql,
                                             $params);
            return $success;
        }
        return false;
    }
public static function deactivate_subscriptions ( array $ ids ) { global $ DB ; if ( ! empty ( $ ids ) ) { $ inactivedate = time ( ) ; list ( $ sql , $ params ) = $ DB -> get_in_or_equal ( $ ids ) ; $ success = $ DB -> set_field_select ( 'tool_monitor_subscriptions' , 'inactivedate' , $ inactivedate , 'id ' . $ sql , $ params ) ; return $ success ; } return false ; }
Deactivates a group of subscriptions based on an input array of ids.

@since 3.2.0
@param array $ids of subscription ids.
@return bool true if the operation was successful, false otherwise.
Deactivates a group of subscriptions based on an input array of ids .