Scroll to navigation

ZoneMinder::Config(3pm) User Contributed Perl Documentation ZoneMinder::Config(3pm)

NAME

ZoneMinder::Config - ZoneMinder configuration module.

SYNOPSIS

  use ZoneMinder::Config qw(:all);

DESCRIPTION

The ZoneMinder::Config module is used to import the ZoneMinder configuration from the database. It will do this at compile time in a BEGIN block and require access to the zm.conf file either in the current directory or in its defined location in order to determine database access details, configuration from this file will also be included. If the :all or :config tags are used then this configuration is exported into the namespace of the calling program or module.
Once the configuration has been imported then configuration variables are defined as constants and can be accessed directory by name, e.g.
 $lang = ZM_LANG_DEFAULT;

EXPORT

None by default. The :constants tag will export the ZM_PID constant which details the location of the zm.pid file The :config tag will export all configuration from the database as well as any from the zm.conf file The :all tag will export all above symbols.

SEE ALSO

http://www.zoneminder.com

AUTHOR

Philip Coombes, <philip.coombes@zoneminder.com>

COPYRIGHT AND LICENSE

Copyright (C) 2001-2008 Philip Coombes
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.
2013-02-12 perl v5.14.2