/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Thu Nov 29 11:20:24 2007 UTC (16 years, 4 months ago) by dpavlin
File size: 667 byte(s)
added bunch of models and script to resize tif pictures
1 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 type is 'date',
21 filters are qw( Jifty::DBI::Filter::Date Jifty::DBI::Filter::DateTime ),
22 is mandatory;
23
24 column date_to =>
25 type is 'date',
26 filters are qw( Jifty::DBI::Filter::Date Jifty::DBI::Filter::DateTime ),
27 is mandatory;
28
29 column note =>
30 label is _("Note"),
31 render as 'testarea';
32
33 };
34
35 # Your model-specific methods go here.
36
37 sub since { '0.0.3' }
38
39 1;
40

  ViewVC Help
Powered by ViewVC 1.1.26