[Bast-commits] r3182 - trunk/Anything/lib/Anything/Model/Anything
castaway at dev.catalyst.perl.org
castaway at dev.catalyst.perl.org
Sun Apr 8 02:27:22 GMT 2007
Author: castaway
Date: 2007-04-08 02:27:20 +0100 (Sun, 08 Apr 2007)
New Revision: 3182
Added:
trunk/Anything/lib/Anything/Model/Anything/RelationTypes.pm
Log:
Add relationtypes
Added: trunk/Anything/lib/Anything/Model/Anything/RelationTypes.pm
===================================================================
--- trunk/Anything/lib/Anything/Model/Anything/RelationTypes.pm (rev 0)
+++ trunk/Anything/lib/Anything/Model/Anything/RelationTypes.pm 2007-04-08 01:27:20 UTC (rev 3182)
@@ -0,0 +1,71 @@
+package Anything::Model::Anything::RelationTypes;
+
+use DB::Anything;
+use base qw/Catalyst::Enzyme::CRUD::Model::DBIC DB::Anything::RelationTypes/;
+# use base qw/Catalyst::Enzyme::CRUD::Model::DBIC Anything::Model::Anything/;
+use strict;
+
+sub ACCEPT_CONTEXT
+{
+ my ($self, $c) = @_;
+ return $c->model('Anything')->resultset('RelationTypes');
+# return $c->comp('DB::Anything')->resultset('RelationTypes');
+# return $c->model('DBIC')->resultset('Relationships');
+}
+
+=head1 NAME
+
+Anything::Model::Anything::RelationsTypes - DBIC Table Class
+
+
+
+=head1 SYNOPSIS
+
+See L<Anything>
+
+
+
+=head1 DESCRIPTION
+
+DBIC Table Class with Enzyme CRUD configuration.
+
+=cut
+
+
+#__PACKAGE__->columns(Stringify => "");
+#__PACKAGE__->columns(view_columns => qw/ /);
+#__PACKAGE__->columns(list_columns => qw/ /);
+__PACKAGE__->mk_classdata(qw/config/);
+
+
+#See the Catalyst::Enzyme docs and tutorial for information on what
+#CRUD options you can configure here. These include: moniker,
+#column_monikers, rows_per_page, data_form_validator.
+__PACKAGE__->config(
+ crud => {
+
+ }
+);
+
+
+
+=head1 ALSO
+
+L<Catalyst::Enzyme>
+
+
+
+=head1 AUTHOR
+
+Jess Robinson
+
+
+
+=head1 LICENSE
+
+This library is free software . You can redistribute it and/or modify
+it under the same terms as perl itself.
+
+=cut
+
+1;
More information about the Bast-commits
mailing list