protected function _getiTipStatus($vCal)
{
foreach ($vCal->getComponents() as $component) {
switch ($component->getType()) {
case 'vEvent':
try {
$atparams = $component->getAttribute('ATTENDEE', true);
} catch (Horde_Icalendar_Exception $e) {
throw new Horde_ActiveSync_Exception($e);
}
if (!is_array($atparams)) {
throw new Horde_Icalendar_Exception('Unexpected value');
}
return $atparams[0]['PARTSTAT'];
}
}
}