-
-
23 Feb 2011 00:26:15 UTC
- Distribution: Catalyst-Model-Adaptor
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (5)
- Testers (3704 / 29 / 0)
- Kwalitee
Bus factor: 3- 62.93% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (26.32KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Catalyst::Runtime
- MRO::Compat
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Helper::Model::Adaptor - helper for the incredibly lazy
SYNOPSIS
Running:
./script/myapp_create.pl model SomeClass Adaptor MyApp::Backend::SomeClass create
Will create
YourApp::Model::SomeClass
that looks like:package YourApp::Model::SomeClass; use strict; use warnings; use base 'Catalyst::Model::Adaptor'; __PACKAGE__->config( class => 'MyApp::Backend::SomeClass', constructor => 'create', ); 1;
Why you need a script to generate that is beyond me, but here it is.
ARGUMENTS
./script/myapp_create.pl model <model_name> Adaptor <class> [<constructor>]
You need to sepecify the
model_name
(the name of the model), andclass
, the class being adapted. If$class->new
isn't going to do what you want, pass the name of$class
's constructor asconstructor
.AUTHOR
Jonathan Rockway
<jrockway@cpan.org>
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
No copyright claim is asserted over the generated code.
Module Install Instructions
To install Catalyst::Model::Adaptor, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Model::Adaptor
perl -MCPAN -e shell install Catalyst::Model::Adaptor
For more information on module installation, please visit the detailed CPAN module installation guide.