Xacobeo::Conf(3pm)

Xacobeo::Conf3pm

Application's configuration.

Usage

        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

Overview

Utility class that provides a way for accessing all configuration parameters that are needed at runtime..

Properties

The following properties are defined:

dir

The root directory where the application has been installed.

Methods

The following methods are available:

get_conf

Returns the current configuration instance. This class is a singleton so there's no constructor.

share_dir

Returns the path of a folder in the application's share directory.

Parameters:

•

@path

The path parts relative to the share directory.

share_file

Returns the path of a file in the application's share directory.

Parameters:

•

@path

The path parts relative to the share directory.

app_name

Returns the application's name.

plugin_folders

Returns the folders that are scanned for plugins.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

Authors

Emmanuel Rodriguez <[email protected]>.

From xacobeo 0.15-3+b2 in Debian 9 (Stretch). Parsed by carta from the page's man source.