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 your application's name.
37 This is the number of rows your application should display per page.
41 Contains a list of all tables, if supported by model.
45 A hash containing a table to class mapping, if supported by model.
49 This is where your application can find its templates.
53 This is the URI base that should be prepended to your application when
59 The name of the view class for your Maypole Application. Defaults to
66 This config variable contains a list of your view classes. This is set
68 model class, and should not be changed in the view or the config.
72 These are the tables that are public to your Maypole application.
73 Defaults to all the tables in the database.
77 The DSN to your database. Follows standard DBD syntax.
81 This is the loader object (n.b. an instance, not a class name). It's set
82 up by the CDBI model to an instance of "Class::DBI::Loader" if it's not
83 initialized before calling setup().
87 The name of the model class for your Maypole Application. Defaults to
88 "Maypole::Model::CDBI".
92 These are the tables that Maypole should care about
96 Password for database user.
100 Other options to the DBI connect call.
104 Username to log into the database with.
112 Sebastian Riedel, C<sri@oook.de>
114 =head1 AUTHOR EMERITUS
116 Simon Cozens, C<simon@cpan.org>
120 You may distribute this code under the same terms as Perl itself.