Jun Shimizu

NAME

Catalyst::Plugin::CRUD - CRUD (create/read/update/delete) Plugin for Catalyst

SYNOPSIS

  package MyApp;
  
  use Catalyst qw/-Debug ConfigLoader I18N CRUD Static::Simple/;
  
  1;
  
  package MyApp::Controller::Foo;
  
  sub create : Local {
    my ($self, $c) = @_;
    $c->create($self);
  }
  
  1;

DESCRIPTION

This module provides CRUD (create/read/update/delete) action.

 create: insert new record
 read:   retrieve record
 update: update already record
 delete: delete record
 list:   retrieve all records

EXPORT

None by default.

METHODS

create

Create action. This method internally calls Catalyst::Controller::[CDBI|DBIC]::create.

read

Read action. This method internally calls Catalyst::Controller::[CDBI|DBIC]::read.

update

Update action. This method internally calls Catalyst::Controller::[CDBI|DBIC]::update.

delete

Delete action. This method internally calls Catalyst::Controller::[CDBI|DBIC]::delete.

list

List action This method internally calls Catalyst::Controller::[CDBI|DBIC]::list.

Class::DBI::toHashRef

DBIx::Class::toHashRef

SEE ALSO

Catalyst, Catalyst::Controller::CRUD

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.