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

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

revision 70 by dpavlin, Thu Apr 10 20:26:45 2008 UTC revision 73 by dpavlin, Fri Apr 11 15:49:50 2008 UTC
# Line 36  use A3C::Record schema { Line 36  use A3C::Record schema {
36                  type is 'text',                  type is 'text',
37                  is mandatory,                  is mandatory,
38                  label is _('Email address'), default is '',                  label is _('Email address'), default is '',
39                    is indexed,
40                  is immutable,                  is immutable,
41                  is distinct;                  is distinct;
42    
# Line 333  Accessor for compatibility with Jifty mi Line 334  Accessor for compatibility with Jifty mi
334    
335  sub email {  sub email {
336          my $self = shift;          my $self = shift;
337          return $self->__value('mail');          return $self->mail;
338  }  }
339    
340  sub email_confirmed { 1 };  sub email_confirmed { 1 };
# Line 344  sub email_confirmed { 1 }; Line 345  sub email_confirmed { 1 };
345    
346  sub name {  sub name {
347          my $self = shift;          my $self = shift;
348          return $self->__value('cn') . ' <' . $self->__value('mail') . '>';          return $self->cn . ' <' . $self->mail . '>';
349  }  }
350    
351  =head2 validate_telephoneNumber  =head2 validate_telephoneNumber

Legend:
Removed from v.70  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.26