Horde_Icalendar_Vfreebusy::simplify PHP Method

simplify() public method

Removes all overlaps and simplifies the busy periods array as much as possible.
public simplify ( )
    public function simplify()
    {
        $clean = false;
        $busy = array($this->_busyPeriods, $this->_extraParams);
        while (!$clean) {
            $result = $this->_simplify($busy[0], $busy[1]);
            $clean = $result === $busy;
            $busy = $result;
        }
        ksort($result[1], SORT_NUMERIC);
        $this->_extraParams = $result[1];
        ksort($result[0], SORT_NUMERIC);
        $this->_busyPeriods = $result[0];
    }