1 package SL::Webdav::VersionScheme::Serial;
4 use parent qw(Rose::Object);
10 sub extract_regexp { qr/\d+/ }
12 sub cmp { sub { $_[0]->version <=> $_[1]->version } }
16 sub next_version { $_[1]->version + 1 }
18 sub keep_last_version {
19 my ($self, $last) = @_;
21 if ($::lx_office_conf->{webdav}{new_version_after_minutes}) {
22 return DateTime->now <= $last->mtime + DateTime::Duration->new(minutes => $::lx_office_conf{webdav}{new_version_after_minutes});