1: <?php
2: /**
3: * Kronolith_Storage defines an API for storing free/busy information.
4: *
5: * @author Mike Cochrane <mike@graftonhall.co.nz>
6: * @package Kronolith
7: */
8: abstract class Kronolith_Storage
9: {
10: /**
11: * String containing the current username.
12: *
13: * @var string
14: */
15: protected $_user = '';
16:
17: /**
18: * Stub to initiate a driver.
19: * @throws Kronolith_Exception
20: */
21: function initialize()
22: {
23: return true;
24: }
25:
26: /**
27: * Stub to be overridden in the child class.
28: */
29: abstract public function search($email, $private_only = false);
30:
31: /**
32: * Stub to be overridden in the child class.
33: */
34: abstract public function store($email, $vfb, $public = false);
35: }
36: