]> git.decadent.org.uk Git - maypole.git/blob - lib/Maypole/Config.pm
Shitload of doc fixes.
[maypole.git] / lib / Maypole / Config.pm
1 package Maypole::Config;
2 use base qw(Class::Accessor::Fast);
3 use attributes ();
4
5 use strict;
6 use warnings;
7
8 # Public accessors.
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 document_encoding
12       content_type models)
13 );
14
15 # Should only be modified by model.
16 __PACKAGE__->mk_ro_accessors(
17     qw( classes tables table_to_class
18       )
19 );
20
21 1;
22
23 =head1 NAME
24
25 Maypole::Config - Maypole Configuration Class
26
27 =head1 DESCRIPTION
28
29 This class stores all configuration data for your Maypole application.
30
31 =head1 METHODS
32
33 =head2 View related
34
35 =head3 view
36
37 The view class for your Maypole Application. Defaults to "Maypole::View::TT"
38
39 =head3 uri_base 
40
41 This is the uri base that should be appended to your application when maypole 
42 makes urls.
43
44 =head3 template_root
45
46 This is where your application can find it's templates.
47
48 =head3 rows_per_page
49
50 This is the  number of rows your application should display per page.
51
52 =head2 Model-Related
53
54 =head3 display_tables 
55
56 These are the tables that are public to your maypole application
57
58 =head3 ok_tables
59
60 These are the tables that maypole should care about
61
62 =head3 model
63
64 The model class for your Maypole Application. Defaults to "Maypole::View::CDBI"
65
66 =head3 loader
67
68 This is the loader object. It's set up by the CDBI model if it's not initialized before setup.
69
70 =head3 classes
71
72 This config variable contains a list of your view classes. This set up by the
73 model class, and should not be changed in the view or the config.
74
75 =head3 dsn
76 The DSN to your database. Follows standard DBD syntax.
77
78 =head3 user
79
80 Username to log into the database with
81
82 =head3 pass
83
84 Password for database user.
85
86 =head3 opts
87
88 Other options to the dbi connect call.
89
90 =head1 SEE ALSO
91
92 L<Maypole>
93
94 =head1 MAINTAINER
95
96 Sebastian Riedel, c<sri@oook.de>
97
98 =head1 AUTHOR
99
100 Simon Cozens, C<simon@cpan.org>
101
102 =head1 LICENSE
103
104 You may distribute this code under the same terms as Perl itself.
105
106 =cut
107