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;
    }
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;
    }
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 ; }
Reset all database tables to default values.
@static
@return bool true if reset done, false if skipped
Reset all database tables to default values .