aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-03-10 18:27:00 +0000
committerChad Little <clittle@users.sourceforge.net>2003-03-10 18:27:00 +0000
commit00badbbaaf12ee8fd6e0afe6f22b974fe568449c (patch)
treed8445ae22aef6aa51ba7e43dcaf24c23c84092ed /functions/ical_parser.php
parentf805b37284b3c543018205a1014829023a33dc08 (diff)
downloadphpicalendar-00badbbaaf12ee8fd6e0afe6f22b974fe568449c.tar.gz
phpicalendar-00badbbaaf12ee8fd6e0afe6f22b974fe568449c.tar.bz2
phpicalendar-00badbbaaf12ee8fd6e0afe6f22b974fe568449c.zip
More validation fixes, basic attendee parsing added.
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r--functions/ical_parser.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index c30dfd7..29ffb5d 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -91,7 +91,7 @@ if ($parse_file) {
$allday_start, $allday_end, $start, $end, $the_duration,
$beginning, $rrule_array, $start_of_vevent, $description,
$valarm_description, $start_unixtime, $end_unixtime,
- $recurrence_id, $uid
+ $recurrence_id, $uid, $class, $attendee, $location, $organizer
);
$except_dates = array();
@@ -890,8 +890,17 @@ if ($parse_file) {
$rrule_array[$regs[1]] = $regs[2];
}
break;
+ // Attendee support only testing in Apple iCal 1.0.2
case 'ATTENDEE':
- $attendee = $data;
+ $field = ereg_replace("ATTENDEE;CN=", "", $field);
+ $data = ereg_replace ("mailto:", "", $data);
+ $attendee[] = array ('name' => $field, 'email' => $data);
+ #print_r($attendee);
+ break;
+ case 'ORGANIZER':
+ $field = ereg_replace("ORGANIZER;CN=", "", $field);
+ $data = ereg_replace ("mailto:", "", $data);
+ $organizer[] = array ('name' => $field, 'email' => $data);
break;
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy