| Net-ICal documentation | view source | Contained in the Net-ICal distribution. |
Net::ICal::Attendee -- represents an attendee or organizer of a meeting
use Net::ICal;
$a = new Net::ICal::Attendee('mailto:alice@example.com');
$a = new Net::ICal::Attendee('mailto:alice@example.com',
cn => 'Alice Anders',
role => 'REQ-PARTICIPANT');
Net::ICal::Attendee provides an interface to manipulate attendee data in iCalendar (RFC2445) format.
New will take a string and optional key-value pairs. The string is the calender user address of the Attendee (usually a mailto uri).
$a = new Net::ICal::Attendee('mailto:alice@example.com');
$a = new Net::ICal::Attendee('mailto:alice@example.com',
cn => 'Alice Anders',
role => 'REQ-PARTICIPANT');
Meaningful hash keys are:
To understand more about the uses for each of these properties, read the source for this module and and look at RFC2445.
sub new { my ($class, $value, %args) = @_;
$args{content} = $value;
#TODO: rsvp should default to false; see rfc2445 4.2.17 and SF bug 424101
my $self = _create ($class, %args);
return undef unless $self;
return undef unless $self->validate;
return $self;
}
Returns 1 for valid attendee data, undef for invalid.
More documentation pointers can be found in Net::ICal.
| Net-ICal documentation | view source | Contained in the Net-ICal distribution. |