PurpleWiki::Config - Configuration object.


PurpleWiki documentation  | view source Contained in the PurpleWiki distribution.

Index


NAME

Top

PurpleWiki::Config - Configuration object.

SYNOPSIS

Top

  use PurpleWiki::Config;

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

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

DESCRIPTION

Top

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

Top

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

Top

Chris Dent, <cdent@blueoxen.org>

Eugene Eric Kim, <eekim@blueoxen.org>

SEE ALSO

Top

AppConfig.


PurpleWiki documentation  | view source Contained in the PurpleWiki distribution.