/[Arh]/lib/Arh/Model/Campaign.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /lib/Arh/Model/Campaign.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (hide annotations)
Thu Nov 29 11:48:39 2007 UTC (16 years, 5 months ago) by dpavlin
File size: 701 byte(s)
minor tweaks, mostly by erasing code which is alway good :-)
1 dpavlin 4 use strict;
2     use warnings;
3    
4     package Arh::Model::Campaign;
5     use Jifty::DBI::Schema;
6    
7     use Arh::Record schema {
8    
9     column place =>
10     refers_to Arh::Model::Place,
11     is mandatory,
12     is indexed,
13     since '0.0.5';
14    
15     column name =>
16     label is _("Name of campaign"),
17     is mandatory;
18    
19     column date_from =>
20 dpavlin 5 label is _("From date"),
21 dpavlin 4 type is 'date',
22 dpavlin 5 filters are qw( Jifty::DBI::Filter::Date ),
23     render as 'date',
24 dpavlin 4 is mandatory;
25    
26     column date_to =>
27 dpavlin 5 label is _("To date"),
28 dpavlin 4 type is 'date',
29 dpavlin 5 filters are qw( Jifty::DBI::Filter::Date ),
30     render as 'date',
31 dpavlin 4 is mandatory;
32    
33     column note =>
34     label is _("Note"),
35 dpavlin 5 render as 'textarea';
36 dpavlin 4
37     };
38    
39     # Your model-specific methods go here.
40    
41     sub since { '0.0.3' }
42    
43     1;
44    

  ViewVC Help
Powered by ViewVC 1.1.26