コード例 #1
0
ファイル: Log.php プロジェクト: raz0rsdge/horde
 /**
  * Lists all events in the given time range.     *
  *
  * @param Horde_Date $startDate Start of range date object.
  * @param Horde_Date $endDate   End of range data object.
  *
  * @return array Events in the given time range.
  *
  * @throws Horde_Kolab_FreeBusy_Exception If retrieving the events failed.
  */
 public function listEvents(Horde_Date $startDate, Horde_Date $endDate)
 {
     $this->getLogger()->debug(sprintf('Listing events for resource %s between %s and %s.', $this->getResource()->getName(), (string) $startDate->rfc2822DateTime(), (string) $endDate->rfc2822DateTime()));
     $events = $this->getResource()->listEvents($startDate, $endDate);
     $this->getLogger()->debug(sprintf('Found %s events.', count($events)));
     return $events;
 }