VTODO and VJOURNAL exist as well

master
Jakob Sack 2011-08-23 22:07:40 +02:00
parent 31be7eb22e
commit b5b6325130
1 changed files with 16 additions and 0 deletions

View File

@ -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