From e539446c8fdf98482b25574acd4090a47300f877 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Tue, 26 Oct 2010 05:52:01 +0200
Subject: [PATCH] Adapt to the recent Horde_SessionObjects -> Horde_Session
modification.
---
.../Storage/{Sessionobjects.php => Session.php} | 16 +--
framework/Kolab_Session/package.xml | 122 ++++++++++++---------
.../{SessionobjectsTest.php => SessionTest.php} | 26 ++---
3 files changed, 89 insertions(+), 75 deletions(-)
rename framework/Kolab_Session/lib/Horde/Kolab/Session/Storage/{Sessionobjects.php => Session.php} (75%)
rename framework/Kolab_Session/test/Horde/Kolab/Session/Class/Storage/{SessionobjectsTest.php => SessionTest.php} (57%)
diff --git a/framework/Kolab_Session/lib/Horde/Kolab/Session/Storage/Sessionobjects.php b/framework/Kolab_Session/lib/Horde/Kolab/Session/Storage/Session.php
similarity index 75%
rename from framework/Kolab_Session/lib/Horde/Kolab/Session/Storage/Sessionobjects.php
rename to framework/Kolab_Session/lib/Horde/Kolab/Session/Storage/Session.php
index 80b79cf21..cbfb97983 100644
--- a/framework/Kolab_Session/lib/Horde/Kolab/Session/Storage/Sessionobjects.php
+++ b/framework/Kolab_Session/lib/Horde/Kolab/Session/Storage/Session.php
@@ -25,24 +25,24 @@
* @license http://www.fsf.org/copyleft/lgpl.html LGPL
* @link http://pear.horde.org/index.php?package=Kolab_Session
*/
-class Horde_Kolab_Session_Storage_Sessionobjects
+class Horde_Kolab_Session_Storage_Session
implements Horde_Kolab_Session_Storage_Interface
{
/**
* The handler for session objects.
*
- * @var Horde_SessionObjects
+ * @var array
*/
- private $_session_objects;
+ private $_session;
/**
* Constructor
*
- * @param Horde_SessionObjects $session_objects The session objects handler.
+ * @param array $session The session handler.
*/
- public function __construct(Horde_SessionObjects $session_objects)
+ public function __construct($session)
{
- $this->_session_objects = $session_objects;
+ $this->_session = $session;
}
/**
@@ -53,7 +53,7 @@ implements Horde_Kolab_Session_Storage_Interface
*/
public function load()
{
- return $this->_session_objects->query('kolab_session');
+ return $this->_session['kolab_session'];
}
/**
@@ -65,6 +65,6 @@ implements Horde_Kolab_Session_Storage_Interface
*/
public function save(Horde_Kolab_Session $session)
{
- $this->_session_objects->overwrite('kolab_session', $session);
+ $this->_session['kolab_session'] = $session;
}
}
diff --git a/framework/Kolab_Session/package.xml b/framework/Kolab_Session/package.xml
index d0c13d6b5..c02fceb36 100644
--- a/framework/Kolab_Session/package.xml
+++ b/framework/Kolab_Session/package.xml
@@ -1,14 +1,10 @@
-