/[Arh]/lib/Arh/Model/Unit.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/Unit.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Thu Nov 29 00:34:22 2007 UTC (16 years, 4 months ago) by dpavlin
File size: 831 byte(s)
basic models
1 use strict;
2 use warnings;
3
4 package Arh::Model::Unit;
5 use Jifty::DBI::Schema;
6
7 use Arh::Record schema {
8
9 column name =>
10 type is 'text',
11 label is _("Name"),
12 is mandatory;
13
14 column number =>
15 type is 'text',
16 label is _("Number"),
17 is mandatory;
18
19 column material =>
20 label is _("Material"),
21 refers_to Arh::Model::UnitMaterial;
22
23 column dimensions =>
24 label is _("Dimensions"),
25 hit is _("Separate values with ; (semicolumn)"),
26 type is 'text';
27
28 column position =>
29 label is _("Place of discovery"),
30 type is 'text';
31
32 column description =>
33 label is _("Description");
34
35 column chronology =>
36 label is _("Chronology"),
37 refers_to Arh::Model::Chronology,
38 since '0.0.2';
39
40 column location =>
41 label is _("Current location"),
42 refers_to Arh::Model::Location;
43
44 };
45
46 # Your model-specific methods go here.
47
48 1;
49

  ViewVC Help
Powered by ViewVC 1.1.26