1: <?php
2: /**
3: * The basic handler for accessing data from Kolab storage.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_Storage
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_Storage
12: */
13:
14: /**
15: * The basic handler for accessing data from Kolab storage.
16: *
17: * Copyright 2004-2012 Horde LLC (http://www.horde.org/)
18: *
19: * See the enclosed file COPYING for license information (LGPL). If you
20: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
21: *
22: * @category Kolab
23: * @package Kolab_Storage
24: * @author Gunnar Wrobel <wrobel@pardus.de>
25: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
26: * @link http://pear.horde.org/index.php?package=Kolab_Storage
27: */
28: class Horde_Kolab_Storage_Uncached
29: extends Horde_Kolab_Storage_Base
30: {
31: /**
32: * Create the folder list object.
33: *
34: * @param Horde_Kolab_Storage_Driver $master The primary connection driver.
35: * @param Horde_Kolab_Storage_Factory $factory The factory.
36: *
37: * @return Horde_Kolab_Storage_List The handler for the list of folders
38: * present in the Kolab backend.
39: */
40: protected function _createList(Horde_Kolab_Storage_Driver $master,
41: Horde_Kolab_Storage_Factory $factory)
42: {
43: return new Horde_Kolab_Storage_List_Base($master, $factory);
44: }
45:
46: /**
47: * Return a data handler for accessing data in the specified
48: * folder.
49: *
50: * @param mixed $folder The name of the folder or
51: * an instance representing
52: * the folder.
53: * @param Horde_Kolab_Storage_Driver $master The primary connection
54: * driver.
55: * @param Horde_Kolab_Storage_Factory $factory The factory.
56: * @param string $object_type The type of data we want
57: * to access in the folder.
58: * @param int $data_version Format version of the
59: * object data.
60: *
61: * @return Horde_Kolab_Data The data object.
62: */
63: protected function _createData($folder,
64: Horde_Kolab_Storage_Driver $master,
65: Horde_Kolab_Storage_Factory $factory,
66: $object_type = null,
67: $data_version = 1)
68: {
69: return new Horde_Kolab_Storage_Data_Base(
70: $folder,
71: $master,
72: $factory,
73: $object_type,
74: $data_version
75: );
76: }
77:
78: }