}
return new Horde_Kolab_Storage(
+ new Horde_Kolab_Storage_Connection(),
'Imap',
array(
'hostspec' => $session->getImapServer(),
class Horde_Kolab_Storage
{
/**
- * Singleton instance.
+ * The master Kolab storage system.
*
- * @var Horde_Kolab_Storage
+ * @var Horde_Kolab_Storage_Connection
*/
- static protected $instances = array();
+ private $_master;
/**
* An array of Horde_Kolab_Storage_Driver connections to Kolab
* @param string $driver The driver used for the primary storage connection.
* @param array $params Additional connection parameters.
*/
- public function __construct($driver, $params = array())
- {
+ public function __construct(
+ Horde_Kolab_Storage_Connection $master,
+ $driver, $params = array()
+ ) {
+ $this->_master = $master;
+
$this->_driver = $driver;
$this->_params = $params;
--- /dev/null
+<?php
+/**
+ * A connection to a Kolab storage system.
+ *
+ * PHP version 5
+ *
+ * @category Kolab
+ * @package Kolab_Storage
+ * @author Gunnar Wrobel <wrobel@pardus.de>
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Storage
+ */
+
+/**
+ * A connection to a Kolab storage system.
+ *
+ * Copyright 2009-2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @category Kolab
+ * @package Kolab_Storage
+ * @author Gunnar Wrobel <wrobel@pardus.de>
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Storage
+ */
+class Horde_Kolab_Storage_Connection
+{
+}