diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-08-23 22:07:40 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-08-23 22:07:40 +0200 |
commit | 778404fb29b0187749cd6654e2c7cdaddb91a7f1 (patch) | |
tree | 54273a68c7825878236120e8c631b7c6a40c45a2 /apps/calendar/lib/calendar.php | |
parent | 84761b1518c54e9f43eae3a831c9456c0daad3ca (diff) | |
download | nextcloud-server-778404fb29b0187749cd6654e2c7cdaddb91a7f1.tar.gz nextcloud-server-778404fb29b0187749cd6654e2c7cdaddb91a7f1.zip |
VTODO and VJOURNAL exist as well
Diffstat (limited to 'apps/calendar/lib/calendar.php')
-rw-r--r-- | apps/calendar/lib/calendar.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/calendar/lib/calendar.php b/apps/calendar/lib/calendar.php index 5e93d784a89..88fc1cde770 100644 --- a/apps/calendar/lib/calendar.php +++ b/apps/calendar/lib/calendar.php @@ -279,6 +279,22 @@ class OC_Calendar_Calendar{ $use = $property; } } + elseif($property->name == 'VTODO' || $property->name == 'VJOURNAL'){ + $return[0] = $use->name; + foreach($property->children as &$element){ + if($property->name == 'SUMMARY'){ + $return[3] = $property->value; + } + elseif($property->name == 'UID'){ + $return[5] = $property->value; + } + }; + + // Only one VTODO or VJOURNAL per object + // (only one UID per object but a UID is required by a VTODO => + // one VTODO per object) + break; + } } unset($property); // find the data |