1: <?php
2: /**
3: * Kolab_Driver defines an API for implementing storage backends for
4: * Kolab.
5: *
6: * Copyright 2007-2012 Horde LLC (http://www.horde.org/)
7: *
8: * See the enclosed file COPYING for license information (GPL). If you
9: * did not receive this file, see http://www.horde.org/licenses/gpl.
10: *
11: * @author Your Name <you@example.com>
12: * @package Kolab
13: */
14: class Kolab_Driver
15: {
16: /**
17: * Hash containing connection parameters.
18: *
19: * @var array
20: */
21: protected $_params = array();
22:
23: /**
24: * Array holding the current foo list. Each array entry is a hash
25: * describing a foo. The array is indexed by the IDs.
26: *
27: * @var array
28: */
29: protected $_foos = array();
30:
31: /**
32: * Constructor.
33: *
34: * @param array $params A hash containing connection parameters.
35: */
36: public function __construct($params = array())
37: {
38: $this->_params = $params;
39: }
40:
41: /**
42: * Lists all foos.
43: *
44: * @return array Returns a list of all foos.
45: */
46: public function listFoos()
47: {
48: return $this->_foos;
49: }
50: }
51: