]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/Config.pm
Added Maypole::Config, and changed other classes to reflect that.
[maypole.git] / lib / Maypole / Config.pm
diff --git a/lib/Maypole/Config.pm b/lib/Maypole/Config.pm
new file mode 100644 (file)
index 0000000..b8202cf
--- /dev/null
@@ -0,0 +1,60 @@
+package Maypole::Config;
+use base qw(Class::Accessor);
+use attributes ();
+#use overload
+#    '""' => sub { shift->stringify_self};
+use strict;
+use warnings;
+
+# Public accessors.
+__PACKAGE__->mk_accessors(
+    qw( view uri_base template_root model loader display_tables ok_tables
+      rows_per_page dsn user pass opts)
+      );
+
+# Should only be modified by model.
+    __PACKAGE__->mk_ro_accessors( qw(
+         classes
+         tables
+         table_to_class
+    ) );
+
+1;
+
+=head1 NAME
+
+Maypole::Config - Maypole Configuration Class
+
+=head1 DESCRIPTION
+
+This class stores all configuration data for your Maypole application.
+
+=head2 view
+
+The view class for your Maypole Application. Defaults to "Maypole::View::TT"
+
+=head2 display_tables 
+
+=head2 ok_tables
+
+=head2 model
+
+=head2 loader
+
+=head2 uri_base 
+
+=head2 classes
+=head2 rows_per_page
+
+=head2 dsn
+
+=head2 user
+
+=head2 pass
+
+=head2 opts
+
++head2 table_to_root
+
+=head2 template_root