Dominic Hargreaves > OpenGuides-0.59 > OpenGuides::Utils

Download:
OpenGuides-0.59.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.09   Source   Latest Release: OpenGuides-0.64

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 a Wiki::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:

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@lists.openguides.org)

COPYRIGHT ^

     Copyright (C) 2003-2007 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.