NAME
OpenGuides::Utils - General utility methods for OpenGuides scripts.
DESCRIPTION
Provides general utility methods for OpenGuides scripts. Distributed and installed as part of the OpenGuides project, not intended for independent installation. This documentation is probably only useful to OpenGuides developers.
SYNOPSIS
use OpenGuide::Config;
use OpenGuides::Utils;
my $config = OpenGuides::Config->new( file => "wiki.conf" );
my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
METHODS
- make_wiki_object
-
my $config = OpenGuides::Config->new( file => "wiki.conf" ); my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
Croaks unless an
OpenGuides::Config
object is supplied. Returns aCGI::Wiki
object made from the given config file on success, croaks if any other error occurs.The config file needs to define at least the following variables:
dbtype - one of
postgres
,mysql
andsqlite
dbname
indexing_directory - for the Search::InvertedIndex or Plucene files to go
AUTHOR
The OpenGuides Project (openguides-dev@openguides.org)
COPYRIGHT
Copyright (C) 2003-2004 The OpenGuides Project. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.