Alzabo (version 0.64) - Alzabo::Config

Index



NAME

Alzabo::Config - Alzabo configuration information


SYNOPSIS

  use Alzabo::Config
  print Alzabo::Config::schema_dir;


DESCRIPTION

This module contains functions related to Alzabo configuration information.


FUNCTIONS

root_dir ($root)

If a value is passed to this method then the root is temporarily changed. This change lasts as long as your application remains in memory. However, since changes are not written to disk it will have to be changed again.

Returns

The root directory for your Alzabo installation.

schema_dir

Returns

The directory under which Alzabo schema objects are stored in serialized form.

available_schemas

Returns

A list containing the names of the available schemas. There will be one directory for each schema under the directory returned. Directories which cannot be read will not be included in the list.

Throws

Alzabo::Exception::System

mason_web_dir ($web_dir)

If a value is passed to this method then the Mason component directory is temporarily changed. This change lasts as long as your application remains in memory. However, since changes are not written to disk it will have to be changed again.

Returns

The path to the root directory for the Alzabo Mason components.

mason_extension

If a value is passed to this method then the Mason extenstion is temporarily changed. This change lasts as long as your application remains in memory. However, since changes are not written to disk it will have to be changed again.

Returns

The file extension used by the Alzabo Mason components.