NAME

PurpleWiki::Config - Configuration object.

SYNOPSIS

use PurpleWiki::Config;

my $config = PurpleWiki::Config->new('/var/www/wikidb');

$config->InterFile;  # returns the location of intermap

DESCRIPTION

Parses the PurpleWiki config file, which is in AppConfig format. Configuration variables are made available in methods.

The PurpleWiki::Config module inherits from Singleton, so you should only have to create one new PurpleWiki::Config module per process. Subsequent instances can be gotten from a call to the instance() method.

METHODS

new($directory)

Parses "$directory/config", and creates methods for each variable using AUTOLOAD.

instance()

Returns the current instance of the PurpleWiki::Config object, or undef if no such instance exists.

AUTHORS

Chris Dent, <cdent@blueoxen.org>

Eugene Eric Kim, <eekim@blueoxen.org>

SEE ALSO

AppConfig.