NAME

Padre::DB::LastPositionInFile - db table keeping last position in a file

SYNOPSIS

Padre::DB::LastPositionInFile->set_last_pos($file, $pos);
my $pos = Padre::DB::LastPositionInFile->get_last_pos($file);

DESCRIPTION

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.

PUBLIC METHODS

Accessors

The following accessors are automatically created by ORLite:

name()
position()

Class methods

The following subs are automatically created by ORLite. Refer to ORLite for more information on them:

select()
count()
new()
create()
insert()
delete()
truncate()

set_large_pos( $file, $pos )

Record $pos as the last known cursor position in $file.

get_large_pos( $file )

Return the last known cursor position for $file. Return undef if no position was recorded for this file.

COPYRIGHT & LICENSE

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.