From 8c1a440db6cd931d85ddbafa6430030870942000 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Fri, 3 Apr 2009 21:09:36 +0200 Subject: [PATCH] Add an indicator for schema support. --- framework/Kolab_Server/lib/Horde/Kolab/Server.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server.php b/framework/Kolab_Server/lib/Horde/Kolab/Server.php index e55f2d2b8..4ab1d524d 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server.php @@ -33,7 +33,6 @@ require_once 'Horde/Autoloader.php'; */ abstract class Horde_Kolab_Server { - /** * Server parameters. * @@ -56,6 +55,13 @@ abstract class Horde_Kolab_Server protected $searches; /** + * Does this server type support automatic schema analysis? + * + * @var boolean + */ + public $schema_support = false; + + /** * Construct a new Horde_Kolab_Server object. * * @param array $params Parameter array. @@ -275,16 +281,16 @@ abstract class Horde_Kolab_Server * method would call a static object class function that operate on the * result array returned from the server without using objects. * - * @todo The LDAP driver needs a more efficient version of this call as it - * is not required to generate objects before returning data as a - * hash. It can be derived directly from the LDAP result. - * * @param string $type The type of the objects to be listed * @param array $params Additional parameters. * * @return array An array of Kolab objects. * * @throws Horde_Kolab_Server_Exception + * + * @todo The LDAP driver needs a more efficient version of this call as it + * is not required to generate objects before returning data as a + * hash. It can be derived directly from the LDAP result. */ public function listHash($type, $params = null) { @@ -349,7 +355,8 @@ abstract class Horde_Kolab_Server if (in_array($method, array_keys($this->searches))) { array_unshift($args, $this); if (isset($this->searches[$method])) { - return call_user_func_array(array($this->searches[$method]['class'], $method), $args); + return call_user_func_array(array($this->searches[$method]['class'], + $method), $args); } } throw new Horde_Kolab_Server_Exception( -- 2.11.0