original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Deactivates a group of subscriptions based on an input array of ids .