Do not cache the namespace handler. Fix connection variable name and properly avoid...
authorGunnar Wrobel <p@rdus.de>
Thu, 11 Mar 2010 20:11:57 +0000 (21:11 +0100)
committerGunnar Wrobel <wrobel@temple.(none)>
Thu, 11 Mar 2010 21:35:04 +0000 (22:35 +0100)
framework/Kolab_Storage/lib/Horde/Kolab/Storage/Folder.php

index 2ee2a3d..19e5901 100644 (file)
@@ -50,18 +50,18 @@ class Horde_Kolab_Storage_Folder
     const FBRELEVANCE_NOBODY  = 2;
 
     /**
-     * The connection specific for this folder.
+     * The folder name.
      *
-     * @var Horde_Kolab_Storage_Driver
+     * @var string
      */
-    private $_connection;
+    public $name;
 
     /**
-     * The folder name.
+     * The connection specific for this folder.
      *
-     * @var string
+     * @var Horde_Kolab_Storage_Driver
      */
-    public $name;
+    private $_connection;
 
     /**
      * The namespace handler for this folder
@@ -213,7 +213,8 @@ class Horde_Kolab_Storage_Folder
     {
         $properties = get_object_vars($this);
         unset($properties['_storage']);
-        unset($properties['connection']);
+        unset($properties['_namespace']);
+        unset($properties['_connection']);
         $properties = array_keys($properties);
         return $properties;
     }