136
my ( $self, $path, $type, $content, $timestamp ) = @_;
138
my ( $self, $path, $type, $content ) = @_;
139
141
Carp::croak("Invalid type '$type'") if not grep { $type eq $_ } $self->types;
142
144
'INSERT INTO autosave ( path, timestamp, type, content ) values ( ?, ?, ?, ?)',
143
{}, $path, $timestamp, $type, $content,
145
{}, $path, time(), $type, $content,
156
"SELECT id, timestamp, type FROM autosave WHERE path=? ORDER BY id",
151
163
# Copyright 2008-2009 The Padre development team as listed in Padre.pm.