]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/Model/CDBI/Plain.pm
C3, inheritence changes and adding skeleton DFV model
[maypole.git] / lib / Maypole / Model / CDBI / Plain.pm
index fd34a75c91d312bcb6437cca6c4dc6883d67e52d..c95bead3babdd720fb2f76f1ac8096076f94c785 100644 (file)
@@ -1,4 +1,5 @@
 package Maypole::Model::CDBI::Plain;
+use Class::C3;
 use Maypole::Config;
 use base 'Maypole::Model::CDBI';
 use strict;
@@ -17,6 +18,18 @@ Maypole::Model::CDBI::Plain - Class::DBI model without ::Loader
     Foo->config->model("Maypole::Model::CDBI::Plain");
     Foo->setup([qw/ Foo::SomeTable Foo::Other::Table /]);
 
+    # untaint columns and provide custom actions for each class
+
+    Foo::SomeTable->untaint_columns(email => ['email'], printable => [qw/name description/]);
+
+    Foo::Other::Table->untaint_columns ( ... );
+
+    sub Foo::SomeTable::SomeAction : Exported {
+
+        . . .
+
+    }
+
 =head1 DESCRIPTION
 
 This module allows you to use Maypole with previously set-up