Xacobeo::Conf - Application's configuration.
use Xacobeo::Conf; my $conf = Xacobeo::Conf->get_conf; my $icon = $conf->share_file('images', 'xacobeo.png'); # /usr/share/images/xacobeo.png my $po_folder = $conf->share_folder('locale'); # /usr/share/locale
Utility class that provides a way for accessing all configuration parameters that are needed at runtime..
The following properties are defined:
The root directory where the application has been installed.
The following methods are available:
Returns the current configuration instance. This class is a singleton so there's no constructor.
Returns the path of a folder in the application's share directory.
Parameters:
@path
The path parts relative to the share directory.
Returns the path of a file in the application's share directory.
Returns the application's name.
Returns the folders that are scanned for plugins.
Emmanuel Rodriguez <potyl@cpan.org>.
Copyright (C) 2008,2009 by Emmanuel Rodriguez.
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.8 or, at your option, any later version of Perl 5 you may have available.
To install Xacobeo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Xacobeo
CPAN shell
perl -MCPAN -e shell install Xacobeo
For more information on module installation, please visit the detailed CPAN module installation guide.