getBusyTimes() public method

Retrieve the busy times from this event within the given timeframe. This is trivial for non-recurring events but recurring events need to be expanded.
public getBusyTimes ( Horde_Date $startDate, Horde_Date $endDate ) : array
$startDate Horde_Date The start point.
$endDate Horde_Date The end point.
return array The list of busy times (only the start times of the event).
Exemplo n.º 1
0
 public function testBusyTimeRecurs()
 {
     $event = new Horde_Kolab_FreeBusy_Object_Event(array('start-date' => new Horde_Date('2011-11-11T11:11:00Z'), 'end-date' => new Horde_Date('2011-11-11T11:11:11Z'), 'show-time-as' => 'outofoffice', 'recurrence' => array('interval' => 1, 'cycle' => 'daily', 'range-type' => 'number', 'range' => 4)));
     $this->assertEquals(array(1321009860, 1321096260), $event->getBusyTimes(new Horde_Date('2011-11-10T11:10:59Z'), new Horde_Date('2011-11-12T11:11:12Z')));
 }