-
-
02 Oct 2007 19:30:25 UTC
- Distribution: Catalyst-Plugin-CRUD
- Module version: 0.21
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (730 / 0 / 14)
- Kwalitee
Bus factor: 0- 23.16% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (58.15KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::Trigger
- Jcode
- Scalar::Util
- XML::Simple
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Catalyst::Controller::CRUD::DBIC - Implementation for Catalyst::Controller::CRUD
SYNOPSIS
MyApp/lib/MyApp.pm
package MyApp; use Catalyst qw/-Debug I18N CRUD Static::Simple/; 1;
MyApp/lib/MyApp/Controller/User.pm
package MyApp::Controller::User; use base 'Catalyst::Controller'; use Class::Trigger; sub setting { my ( $self, $c ) = @_; my $hash = { 'name' => 'user', 'type' => 'DBIC', 'model' => 'DBIC::UserMaster', 'primary' => 'id', 'columns' => [qw(name phone mail)], 'default' => '/user/list', 'template' => { 'prefix' => 'template/user/', 'suffix' => '.tt' }, }; return $hash; } sub create : Local { my ( $self, $c ) = @_; $c->create($self); } 1;
DESCRIPTION
This module implements DBIx::Class depend interfaces for Catalyst::Controller::CRUD.
- get_model - get_models
EXPORT
None by default.
METHODS
get_model($this,$c,$self,$id)
This method returns model object having $id.
Triggers:
$self->call_trigger( 'get_model_after', $c, $hash );
get_models($this,$c,$self)
This method returns model objects.
SEE ALSO
Catalyst::Controller::CRUD, DBIx::Class
AUTHOR
Jun Shimizu, <bayside@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006-2007 by Jun Shimizu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.
Module Install Instructions
To install Catalyst::Plugin::CRUD, copy and paste the appropriate command in to your terminal.
cpanm Catalyst::Plugin::CRUD
perl -MCPAN -e shell install Catalyst::Plugin::CRUD
For more information on module installation, please visit the detailed CPAN module installation guide.