CatalystX::CRUD

CRUD framework for Catalyst applications
Download

CatalystX::CRUD Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Peter Karman
  • Publisher web site:
  • http://search.cpan.org/~karman/

CatalystX::CRUD Tags


CatalystX::CRUD Description

CRUD framework for Catalyst applications CatalystX::CRUD is a Perl module that provides a simple and generic API for Catalyst CRUD applications. CatalystX::CRUD is agnostic with regard to data model and data input, instead providing a common API that different projects can implement for greater compatability with one another.The project was born out of a desire to make Rose::HTML::Objects easy to use with Rose::DB::Object and DBIx::Class ORMs, using the Catalyst::Controller::Rose project. However, any ORM could implement the CatalystX::CRUD::Model API, and any form management project could use the resulting CatalystX::CRUD::Model subclass.METHODSThis class provides some basic methods that Model and Object subclasses inherit.has_errors( context )Returns true if context error() method has any errors set or if the error value in stash() is set. Otherwise returns false (no errors).throw_error( msg )Throws exception using Carp::croak (confess() if CATALYST_DEBUG env var is set). Override to manage errors in some other way.NOTE: that if in your subclass throw_error() is not fatal and instead returns a false a value, methods that call it will, be default, continue processing instead of returning. See fetch() for an example. Requirements: · Perl


CatalystX::CRUD Related Software