Horde_Icalendar_Vfreebusy::getEmail PHP Method

getEmail() public method

Returns the email address for this object.
public getEmail ( ) : string
return string The email address of this object's owner.
    public function getEmail()
    {
        $name = '';
        try {
            $method = !empty($this->_container) ? $this->_container->getAttribute('METHOD') : 'PUBLISH';
            if ($method == 'PUBLISH') {
                $attr = 'ORGANIZER';
            } elseif ($method == 'REPLY') {
                $attr = 'ATTENDEE';
            }
        } catch (Horde_Icalendar_Exception $e) {
            $attr = 'ORGANIZER';
        }
        try {
            $name = parse_url($this->getAttribute($attr));
            return $name['path'];
        } catch (Horde_Icalendar_Exception $e) {
            return '';
        }
    }