Steffen Müller > PAR-Repository-Web-0.03 > PAR::Repository::Web::Model::Repository

Download:
PAR-Repository-Web-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

PAR::Repository::Web::Model::Repository - Catalyst Model for a PAR::Repository

SYNOPSIS ^

See PAR::Repository::Web

DESCRIPTION ^

Catalyst Model.

METHODS ^

get_repository_configuration

Returns the repository configuration from the YAML configuration file.

REPOSITORY QUERY METHODS ^

query_dist

Corresponds to PAR::Repository::Query's query_dist method, but adds a layer of indirection to be able to add caching.

First argument should be the Model object, second should be the alias of the repository to be queried. These should be followed by any parameters to the repositories query method.

query_module

Corresponds to PAR::Repository::Query's query_module method, but adds a layer of indirection to be able to add caching.

First argument should be the Model object, second should be the alias of the repository to be queried. These should be followed by any parameters to the repositories query method.

query_script

Corresponds to PAR::Repository::Query's query_script method, but adds a layer of indirection to be able to add caching.

First argument should be the Model object, second should be the alias of the repository to be queried. These should be followed by any parameters to the repositories query method.

query_script_hash

Corresponds to PAR::Repository::Query's query_script_hash method, but adds a layer of indirection to be able to add caching.

First argument should be the Model object, second should be the alias of the repository to be queried. These should be followed by any parameters to the repositories query method.

PRIVATE METHODS ^

get_repositories

Returns a hash ref containing repository aliases and PAR::Repository::Client objects.

You shouldn't usually use this method directly for querying the repository. Use the query_* methods documented below. That enables you to use a cache-enabled data source.

get_repository

Returns a single repository object identified by the repository alias which must be passed in as first argument.

You shouldn't usually use this method directly for querying the repository. Use the query_* methods documented below. That enables you to swap in a subclass of this model which can do caching.

COPYRIGHT AND LICENSE ^

Copyright 2006-2008 by Steffen Mueller <smueller@cpan.org>

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

syntax highlighting: