1 package Maypole::Config;
2 use base qw(Class::Accessor::Fast);
9 __PACKAGE__->mk_accessors(
10 qw( view uri_base template_root model loader display_tables ok_tables
11 rows_per_page dsn user pass opts application_name)
14 # Should only be modified by model.
15 __PACKAGE__->mk_ro_accessors(qw( classes tables table_to_class));
21 Maypole::Config - Maypole Configuration Class
25 This class stores all configuration data for your Maypole application.
31 =head3 application_name
33 This should be a string containing you applications name.
37 The view class for your Maypole Application. Defaults to "Maypole::View::TT"
41 This is the uri base that should be appended to your application when maypole
46 Contains a list of all tables, if supported by model.
50 A hash containing a table to class mapping, if supported by model.
54 This is where your application can find it's templates.
58 This is the number of rows your application should display per page.
64 These are the tables that are public to your maypole application
68 These are the tables that maypole should care about
72 The model class for your Maypole Application. Defaults to "Maypole::View::CDBI"
76 This is the loader object. It's set up by the CDBI model if it's not initialized before setup.
80 This config variable contains a list of your view classes. This set up by the
81 model class, and should not be changed in the view or the config.
84 The DSN to your database. Follows standard DBD syntax.
88 Username to log into the database with
92 Password for database user.
96 Other options to the dbi connect call.
104 Sebastian Riedel, c<sri@oook.de>
108 Simon Cozens, C<simon@cpan.org>
112 You may distribute this code under the same terms as Perl itself.