1: <?php
2: /**
3: * Interface for the schema handler of a Kolab database.
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 the schema handler of a Kolab database.
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_Schema_Interface
29: {
30: /**
31: * Set the composite server reference for this object.
32: *
33: * @param Horde_Kolab_Server_Composite $composite A link to the composite
34: * server handler.
35: */
36: public function setComposite(
37: Horde_Kolab_Server_Composite $composite
38: );
39:
40: /**
41: * Return the schema for the given objectClass.
42: *
43: * @param string $objectclass Fetch the schema for this objectClass.
44: *
45: * @return array The schema for the given objectClass.
46: *
47: * @throws Horde_Kolab_Server_Exception If retrieval of the schema failed.
48: */
49: public function getObjectclassSchema($objectclass);
50:
51: /**
52: * Return the schema for the given attribute.
53: *
54: * @param string $attribute Fetch the schema for this attribute.
55: *
56: * @return array The schema for the given attribute.
57: *
58: * @throws Horde_Kolab_Server_Exception If retrieval of the schema failed.
59: */
60: public function getAttributeSchema($attribute);
61: }