Horde_Icalendar_Vfreebusy::exportvCalendar PHP Method

exportvCalendar() public method

Returns the component exported as string.
public exportvCalendar ( ) : string
return string The exported vFreeBusy information according to the iCalendar format specification.
    public function exportvCalendar()
    {
        foreach ($this->_busyPeriods as $start => $end) {
            $periods = array(array('start' => $start, 'end' => $end));
            $this->setAttribute('FREEBUSY', $periods, isset($this->_extraParams[$start]) ? $this->_extraParams[$start] : array());
        }
        $res = $this->_exportvData('VFREEBUSY');
        foreach ($this->_attributes as $key => $attribute) {
            if ($attribute['name'] == 'FREEBUSY') {
                unset($this->_attributes[$key]);
            }
        }
        return $res;
    }