diff options
author | ivan <ivan> | 1998-09-25 08:52:48 +0000 |
---|---|---|
committer | ivan <ivan> | 1998-09-25 08:52:48 +0000 |
commit | 08f52e31c5f777963d565085d077c9d8d9734e17 (patch) | |
tree | 12cadac5ed336b42861b7df1907fd74c0bda5944 /htdocs/docs/man/Conf.txt | |
parent | 693939e7879f77a52b9e482a0f6bf2e80f8f7020 (diff) |
Initial revision
Diffstat (limited to 'htdocs/docs/man/Conf.txt')
-rw-r--r-- | htdocs/docs/man/Conf.txt | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/htdocs/docs/man/Conf.txt b/htdocs/docs/man/Conf.txt new file mode 100644 index 000000000..c46c9ee6a --- /dev/null +++ b/htdocs/docs/man/Conf.txt @@ -0,0 +1,47 @@ +NAME + FS::Conf - Read access to Freeside configuration values + +SYNOPSIS + use FS::Conf; + + $conf = new FS::Conf; + $conf = new FS::Conf "/non/standard/config/directory"; + + $dir = $conf->dir; + + $value = $conf->config('key'); + @list = $conf->config('key'); + $bool = $conf->exists('key'); + +DESCRIPTION + Read access to Freeside configuration values. Keys currently map + to filenames, but this may change in the future. + +METHODS + new [ DIRECTORY ] + Create a new configuration object. Optionally, a non-default + directory may be specified. + + dir Returns the directory. + + config + Returns the configuration value or values (depending on + context) for key. + + exists + Returns true if the specified key exists, even if the + corresponding value is undefined. + +BUGS + The option to specify a non-default directory should probably be + removed. + + Write access (with locking) should be implemented. + +SEE ALSO + config.html from the base documentation contains a list of + configuration files. + +HISTORY + Ivan Kohler <ivan@sisd.com> 98-sep-6 + |