1: <?php
2: /**
3: * Provides mockup methods to retrieve free/busy data for resources.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_Filter
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_Server
12: */
13:
14: /**
15: * Retrieves free/busy mockup data.
16: *
17: * Copyright 2004-2009 Klarälvdalens Datakonsult AB
18: *
19: * See the enclosed file COPYING for license information (LGPL>=2.1). If you
20: * did not receive this file,
21: * see http://www.horde.org/licenses/lgpl21.
22: *
23: * @category Kolab
24: * @package Kolab_Filter
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_Server
28: */
29: class Horde_Kolab_Resource_Freebusy_Mock extends Horde_Kolab_Resource_Freebusy
30: {
31: /**
32: * Retrieve Free/Busy URL for the specified resource id.
33: *
34: * @param string $resource The id of the resource (usually a mail address).
35: *
36: * @return string The Free/Busy URL for that resource.
37: */
38: protected function getUrl($resource)
39: {
40: return '';
41: }
42:
43: /**
44: * Retrieve Free/Busy data for the specified resource.
45: *
46: * @param string $resource Fetch the Free/Busy data for this resource
47: * (usually a mail address).
48: *
49: * @return Horde_Icalendar_Vfreebusy The Free/Busy data.
50: */
51: public function get($resource)
52: {
53: return $this->_params['data'];
54: }
55: }
56: