Padre::DB::LastPositionInFile.3pm

Langue: en

Autres versions - même langue

Version: 2009-03-29 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

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 )


set_large_pos( $file, $pos )

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

get_large_pos( $file )


get_large_pos( $file )

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.