/[A3C]/lib/A3C/Model/Organization.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

Diff of /lib/A3C/Model/Organization.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 42 by dpavlin, Sun Mar 30 16:58:21 2008 UTC revision 121 by dpavlin, Thu May 15 19:18:45 2008 UTC
# Line 1  Line 1 
1  use strict;  use strict;
2  use warnings;  use warnings;
3    
4    =head1 WARNING
5    
6    B<This code is obsolete> since application is using L<A3C::Model::hrEduOrg>
7    
8    =cut
9    
10  package A3C::Model::Organization;  package A3C::Model::Organization;
11  use Jifty::DBI::Schema;  use Jifty::DBI::Schema;
12    
# Line 35  use A3C::Record schema { Line 41  use A3C::Record schema {
41    
42          column hrEduOrgUniqueNumber =>          column hrEduOrgUniqueNumber =>
43                  label is _('hrEduOrgUniqueNumber'),                  label is _('hrEduOrgUniqueNumber'),
44                    is indexed,
45                  is mandatory;                  is mandatory;
46                    
47          column telephoneNumber =>          column telephoneNumber =>
48                  label is _('Broj telefona');                  label is _('Broj telefona');
49    
50            column facsimileTelephoneNumber =>
51                    label is _('fax number');
52    
53            column cn =>
54                    label is _('cn'),
55                    is indexed;
56            
57            column dc =>
58                    label is _('dc'),
59                    is indexed;
60    
61            column uidNumber =>
62                    type is 'int',
63                    label is _('uid number');
64            
65            column gidNumber =>
66                    type is 'int',
67                    label is _('gid number');
68    
69            column homeDirectory =>
70                    label is _('home directory');
71    
72            column 'loginShell';
73    
74            column 'hrEduOrgMail';
75    
76            column 'hrEduOrgType';
77    
78            column 'hrEduOrgURL';
79    
80            column 'hrEduOrgPolicyURI';
81    
82            column 'hrEduOrgMobile';
83    
84            column 'hrEduOrgMember';
85    
86  };  };
87    
88  # Your model-specific methods go here.  # Your model-specific methods go here.
89    
90    =head2 name
91    
92    Humanly readable name of organization
93    
94    =cut
95    
96    sub name {
97            my $self = shift;
98            return $self->cn . ' - ' . $self->o;
99    }
100    
101    use A3C::DefaultACL;
102    
103  1;  1;
104    

Legend:
Removed from v.42  
changed lines
  Added in v.121

  ViewVC Help
Powered by ViewVC 1.1.26