Padre::Config::Host.3pm

Langue: en

Autres versions - même langue

Version: 2010-06-02 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Padre::Config::Host - Padre configuration storing host state data

DESCRIPTION

This class implements the state data of the host on which Padre is running. See Padre::Config for more information on the various types of preferences supported by Padre.

All those state data are stored in a database managed with "Padre::DB". Refer to this module for more information on how this works.

PUBLIC API

Constructors

read
     my $config = Padre::Config::Host->read;
 
 

Load & return the host configuration from the database. Return "undef" in case of failure.

No parameters.

Object methods

version
     my $revision = $config->version;
 
 

Return the configuration schema revision. Indeed, we might want to change the underlying storage later on.

No parameters.

write
     $config->write;
 
 

(Over-)write host configuration to the database.

No parameters.

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 5 itself.