1: <?php
2: /**
3: * Allows to cache data from a free/busy resource.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_FreeBusy
9: * @author Gunnar Wrobel <wrobel@pardus.de>
10: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
11: * @link http://pear.horde.org/index.php?package=Kolab_FreeBusy
12: */
13:
14: /**
15: * Allows to cache data from a free/busy resource.
16: *
17: * Copyright 2009-2012 Horde LLC (http://www.horde.org/)
18: *
19: * See the enclosed file COPYING for license information (LGPL). If you did not
20: * receive this file, see
21: * http://www.horde.org/licenses/lgpl21.
22: *
23: * @category Kolab
24: * @package Kolab_FreeBusy
25: * @author Gunnar Wrobel <wrobel@pardus.de>
26: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
27: * @link http://pear.horde.org/index.php?package=Kolab_FreeBusy
28: */
29: class Horde_Kolab_FreeBusy_Resource_Event_Decorator_Mcache
30: extends Horde_Kolab_FreeBusy_Resource_Decorator_Mcache
31: implements Horde_Kolab_FreeBusy_Resource_Event
32: {
33: /**
34: * Constructor.
35: *
36: * @param Horde_Kolab_FreeBusy_Resource_Interface $resource The decorated resource.
37: */
38: public function __construct(
39: Horde_Kolab_FreeBusy_Resource_Event $resource
40: ) {
41: parent::__construct($resource);
42: }
43:
44: /**
45: * Lists all events in the given time range.
46: *
47: * @param Horde_Date $startDate Start of range date object.
48: * @param Horde_Date $endDate End of range data object.
49: *
50: * @return array Events in the given time range.
51: *
52: * @throws Horde_Kolab_FreeBusy_Exception If retrieving the events failed.
53: */
54: public function listEvents(Horde_Date $startDate, Horde_Date $endDate)
55: {
56: return $this->getResource()->listEvents($startDate, $endDate);
57: }
58: }
59: