Horde_ActiveSync_Imap_Adapter::_getiTipStatus PHP Method

_getiTipStatus() protected method

Return the attendee participation status.
protected _getiTipStatus ( Horde_Icalendar $vCal )
$vCal Horde_Icalendar The vCalendar component.
    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'];
            }
        }
    }