Hyper::Context - Context for accessing our configuration


Back to Top


NAME

Hyper::Context - Context for accessing our configuration

Back to Top


VERSION

This document describes Hyper::Context 0.01

Back to Top


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();

Back to Top


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.

Back to Top


ATTRIBUTES

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

Back to Top


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.

Back to Top


DIAGNOSTICS

Back to Top


CONFIGURATION AND ENVIRONMENT

Back to Top


DEPENDENCIES

Back to Top


INCOMPATIBILITIES

Back to Top


BUGS AND LIMITATIONS

Back to Top


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 $

Back to Top


AUTHOR

Andreas Specht <ACID@cpan.org>

Back to Top


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.

Back to Top

 Hyper::Context - Context for accessing our configuration