Padre::DB::LastPositionInFile - db table keeping last position in a file
Padre::DB::LastPositionInFile->set_last_pos($file, $pos); my $pos = Padre::DB::LastPositionInFile->get_last_pos($file);
This class allows storing in Padre's database the last cursor position in a file. This is useful in order to put the cursor back to where it was when re-opening this file later on.
The following accessors are automatically created by
The following subs are automatically created by
ORLite. Refer to
ORLite for more information on them:
$pos as the last known cursor position in
Return the last known cursor position for
$file. Return undef if no position was recorded for this file.
Copyright 2008-2009 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.