1: <?php
2: /**
3: * Represents a list query.
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: * Represents a list query.
16: *
17: * Copyright 2010-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: interface Horde_Kolab_Storage_List_Query
29: extends Horde_Kolab_Storage_Query
30: {
31: /**
32: * Create a new folder.
33: *
34: * @param string $folder The path of the folder to create.
35: * @param string $type An optional type for the folder.
36: *
37: * @return NULL
38: */
39: public function createFolder($folder, $type = null);
40:
41: /**
42: * Delete a folder.
43: *
44: * @param string $folder The path of the folder to delete.
45: *
46: * @return NULL
47: */
48: public function deleteFolder($folder);
49:
50: /**
51: * Rename a folder.
52: *
53: * @param string $old The old path of the folder.
54: * @param string $new The new path of the folder.
55: *
56: * @return NULL
57: */
58: public function renameFolder($old, $new);
59:
60: /**
61: * Return the last sync stamp.
62: *
63: * @return string The stamp.
64: */
65: public function getStamp();
66: }
67:
68: