Rodrigo de Oliveira Gonzalez > CatalystX-Features > CatalystX::Features::Backend

Download:
CatalystX-Features-0.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.25   Source  

NAME ^

CatalystX::Features::Backend - All the dirty work is done here

VERSION ^

version 0.25

SYNOPSIS ^

        my $backend = $c->features;

        $backend->list; # a list of features

        $backend->config; # my config 

METHODS ^

$c->features->config()

Returns the config hash part related to CatalystX::Features.

$c->features->init()

Initializes the backend, searching for features and creating CatalystX::Features::Feature instances for them.

$c->features->find( file=>'filename.ext' )

Returns the feature that contains a file.

$c->features->list()

Returns an array with instances of all loaded features. If they have not changed via config, they'll be instances of the CatalystX::Features::Feature class.

$c->features->get( $feature_name )

Get the object instance of a given feature name.

$c->features->me()

Not implemented yet.

TODO ^

A $c->features->me method which can be called from within a feature to get it's own instance.

AUTHORS ^

        Rodrigo de Oliveira (rodrigolive), C<rodrigolive@gmail.com>

LICENSE ^

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: