1: <?php
2: /**
3: * The Kronolith_Driver_Mock class provides a Kronolith dummy driver.
4: *
5: * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
6: *
7: * See the enclosed file COPYING for license information (GPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/gpl.
9: *
10: * @author Gunnar Wrobel <wrobel@pardus.de>
11: * @package Kronolith
12: */
13: class Kronolith_Driver_Mock extends Kronolith_Driver
14: {
15:
16: /**
17: * List all alarms.
18: *
19: * @param Horde_Date $date The date to list alarms for
20: * @param boolean $fullevent Return the full event objects?
21: *
22: * @return array An array of event ids, or Kronolith_Event objects
23: * @throws Kronolith_Exception
24: */
25: public function listAlarms($date, $fullevent = false)
26: {
27: return array();
28: }
29:
30: /**
31: * Lists all events in the time range, optionally restricting results to
32: * only events with alarms.
33: *
34: * @param Horde_Date $startInterval Start of range date object.
35: * @param Horde_Date $endInterval End of range data object.
36: * @param boolean $showRecurrence Return every instance of a recurring
37: * event? If false, will only return
38: * recurring events once inside the
39: * $startDate - $endDate range.
40: * @param boolean $hasAlarm Only return events with alarms?
41: * @param boolean $json Store the results of the events'
42: * toJson() method?
43: * @param boolean $coverDates Whether to add the events to all days
44: * that they cover.
45: *
46: * @return array Events in the given time range.
47: * @throws Kronolith_Exception
48: */
49: public function listEvents($startDate = null, $endDate = null,
50: $showRecurrence = false, $hasAlarm = false,
51: $json = false, $coverDates = true)
52: {
53: return array();
54: }
55: }
56: