Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

catalyst::model::cdbi::crud(3pm) [debian man page]

CRUD(3pm)						User Contributed Perl Documentation						 CRUD(3pm)

NAME
Catalyst::Model::CDBI::CRUD - CRUD CDBI Model Class SYNOPSIS
# lib/MyApp/Model/CDBI.pm package MyApp::Model::CDBI; use base 'Catalyst::Model::CDBI::CRUD'; __PACKAGE__->config( dsn => 'dbi:SQLite2:/tmp/myapp.db', relationships => 1 ); 1; # lib/MyApp.pm package MyApp; use Catalyst 'FormValidator'; __PACKAGE__->config( name => 'My Application', root => '/home/joeuser/myapp/root' ); sub table : Global { my ( $self, $c ) = @_; $c->form( optional => [ MyApp::Model::CDBI::Table->columns ] ); #see Data::FormValidator $c->forward('MyApp::Model::CDBI::Table'); } sub end : Private { $c->forward('MyApp::V::TT'); } 1; DESCRIPTION
This is a subclass of "Catalyst::Model::CDBI" with additional CRUD methods. Don't forget to copy the base templates to config->root! *NOTE* This module has been deprecated. See BUGS section below! METHODS add Does nothing by default. destroy Deletes a Class::DBI object. do_add Creates a new Class::DBI object from $c->form. do_edit Updates a Class::DBI object from $c->form. edit Does nothing by default. list Does nothing by default. process Dispatches CRUD request to methods. view Does nothing by default. BUGS
This module is no longer supported by the Catalyst developers. We keep it indexed for the sake of existing users, but highly recommend new users to look at Catalyst::Helper::Controller::Scaffold SEE ALSO
Catalyst, Catalyst::Model::CDBI AUTHOR
Sebastian Riedel, "sri@cpan.org" COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2005-10-13 CRUD(3pm)

Check Out this Related Man Page

Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchemUsermContributed Perl DocumeCatalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema(3pm)

NAME
Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema - Clone the schema with attributes for each requests SYNOPSIS
__PACKAGE__->config({ traits => ['PerRequestSchema'], }); sub per_request_schema_attributes { my ($self, $c) = @_; return (restricting_object => $c->user->obj); } ### OR ### sub per_request_schema { my ($self, $c) = @_; return $self->schema->schema_method($c->user->obj) } DESCRIPTION
Clones the schema for each new request with the attributes retrieved from your "per_request_schema_attributes" method, which you must implement. This method is passed the context. Alternatively, you could also override the "per_request_schema" method if you need access to the schema clone and/or need to separate out the Model/Schema methods. (See examples above and the defaults in the code.) SEE ALSO
Catalyst::Model::DBIC::Schema, DBIx::Class::Schema AUTHOR
See "AUTHOR" in Catalyst::Model::DBIC::Schema and "CONTRIBUTORS" in Catalyst::Model::DBIC::Schema. COPYRIGHT
See "COPYRIGHT" in Catalyst::Model::DBIC::Schema. LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-12 Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema(3pm)
Man Page