1: <?php
2: /**
3: * Interface for query results.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_Server
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: * Interface for query results.
16: *
17: * Copyright 2008-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_Server
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_Server
27: */
28: interface Horde_Kolab_Server_Result_Interface
29: {
30: /**
31: * The number of result entries.
32: *
33: * @return int The number of elements.
34: */
35: public function count();
36:
37: /**
38: * Test if the last search exceeded the size limit.
39: *
40: * @return boolean True if the last search exceeded the size limit.
41: */
42: public function sizeLimitExceeded();
43:
44: /**
45: * Return the result as an array.
46: *
47: * @return array The resulting array.
48: */
49: public function asArray();
50: }