GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CATALYST::HELPER::MODEL::ADAPTOR (3)

.ds Aq ’

NAME

Catalyst::Helper::Model::Adaptor - helper for the incredibly lazy

CONTENTS

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), and class, the class being adapted. If $class->new isn’t going to do what you want, pass the name of $class’s constructor as constructor.

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CATALYST::HELPER::MODEL::ADAPTOR (3) 2010-02-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.