/[transports]/trunk/lib/Transports/Model/UserOnLandscape.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 /trunk/lib/Transports/Model/UserOnLandscape.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide annotations)
Mon Jun 5 14:06:58 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 653 byte(s)
added landscapes (collection of source and destination clients) to the mix
instead of specifing users for sources (and destinations which wasn't
implemented anyway)
1 dpavlin 51 use strict;
2     use warnings;
3    
4     package Transports::Model::UserOnLandscape::Schema;
5     use Jifty::DBI::Schema;
6    
7     use Transports::Model::User;
8     use Transports::Model::Landscape;
9    
10     # Your column definitions go here. See L<Jifty::DBI::Schema> for
11     # documentation about how to write column definitions.
12    
13     column user_on =>
14     refers_to Transports::Model::User,
15     label is 'User',
16     is mandatory;
17    
18     column landscape =>
19     refers_to Transports::Model::Landscape,
20     label is 'Landscape',
21     is mandatory;
22    
23     package Transports::Model::UserOnLandscape;
24     use base qw/Transports::Record/;
25    
26     # Your model-specific methods go here.
27    
28     # FIXME cludge!
29     sub current_user_can {
30     return 1;
31     }
32    
33     1;
34    

  ViewVC Help
Powered by ViewVC 1.1.26