Andreas 'ac0v' Specht > Hyper > Hyper::Context

Download:
Hyper-v0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: v0.01   Source  

NAME ^

Hyper::Context - Context for accessing our configuration

VERSION ^

This document describes Hyper::Context 0.01

SYNOPSIS ^

    use Hyper::Context;

    my $config = Hyper::Context
        ->new()
        ->get_config('MyApp::Control::Flow::Web::Shop');

or

    package MyApp::Tester;

    my $config = Hyper::Context->new()->get_config();

DESCRIPTION ^

Hyper::Context provides access to the context configuration for different sections. Mostly the config sections have the same name as the package where you use them.

ATTRIBUTES ^

file :get :init_arg :default<$base_path/$namespace/Context.ini>
 Config file name.

SUBROUTINES/METHODS ^

BUILD

    my $context = Hyper::Context->new();

Called automatically from Class::Std after object initialization. This method calls the reader for our context config.

get_config

    $context->get_config('MyClass::Name');

or

    $context->get_config();

Get named configuration section or config for a class/package. If there is no parameter given wie use the caller package name as section name.

DIAGNOSTICS ^

CONFIGURATION AND ENVIRONMENT ^

DEPENDENCIES ^

INCOMPATIBILITIES ^

BUGS AND LIMITATIONS ^

RCS INFORMATIONS ^

Last changed by
 $Author: ac0v $
Id
 $Id: Context.pm 317 2008-02-16 01:52:33Z ac0v $
Revision
 $Revision: 317 $
Date
 $Date: 2008-02-16 02:52:33 +0100 (Sa, 16 Feb 2008) $
HeadURL
 $HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Context.pm $

AUTHOR ^

Andreas Specht <ACID@cpan.org>

LICENSE AND COPYRIGHT ^

Copyright (c) 2007, Andreas Specht <ACID@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: