sourCEntral - mobile manpages

pdf

Padre::DB::Session

NAME

Padre::DB::Session − db table keeping known padre sessions

SYNOPSIS

        my @sessions = Padre::DB::Session−>select;

DESCRIPTION

This class allows storing in Padre’s database the session that Padre knows. This is useful in order to quickly restore a given set of files.

This is the primary table, you also need to check "Padre::DB::SessionFiles".

PUBLIC METHODS

Accessors
The following accessors are automatically created by "ORLite":
id()
name()
description()
last_update()

Auto-generated 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()

Class methods
my $session = last_padre_session()

Return a "Padre::DB::Session" object pointing to last Padre session. If none exists, a new one will be created and returned.

Instance methods
my @files = $session−>files()

Return a list of files ("Padre::DB::SessionFile" objects) referenced by current $session.

COPYRIGHT & LICENSE

Copyright 2008−2010 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.

pdf