original_string: public static function reset_database() {
          global $DB;
  
          if (!is_null(self::$lastdbwrites) and self::$lastdbwrites == $DB->perf_get_writes()) {
              return false;
          }
  
          if (!parent::reset_database()) {
              return false;
          }
  
          self::$lastdbwrites = $DB->perf_get_writes();
  
          return true;
      }
code: public static function reset_database() {
          global $DB;
  
          if (!is_null(self::$lastdbwrites) and self::$lastdbwrites == $DB->perf_get_writes()) {
              return false;
          }
  
          if (!parent::reset_database()) {
              return false;
          }
  
          self::$lastdbwrites = $DB->perf_get_writes();
  
          return true;
      }
code_tokens: public static function reset_database ( ) { global $ DB ; if ( ! is_null ( self :: $ lastdbwrites ) and self :: $ lastdbwrites == $ DB -> perf_get_writes ( ) ) { return false ; } if ( ! parent :: reset_database ( ) ) { return false ; } self :: $ lastdbwrites = $ DB -> perf_get_writes ( ) ; return true ; }
docstring: Reset all database tables to default values.
  @static
  @return bool true if reset done, false if skipped
docstring_tokens: Reset all database tables to default values .