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 aWiki::Toolkit
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
- get_wgs84_coords
-
Returns coordinate data suitable for use with Google Maps (and other GIS systems that assume WGS-84 data).
my ($wgs84_long, $wgs84_lat) = OpenGuides::Utils->get_wgs84_coords( longitude => $longitude, latitude => $latitude, config => $config );
AUTHOR
The OpenGuides Project (openguides-dev@openguides.org)
COPYRIGHT
Copyright (C) 2003-2005 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.