1: <?php
2: /**
3: * A mock container for the Kolab session information.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_Session
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_Session
12: */
13:
14: /**
15: * A mock container for the Kolab session information.
16: *
17: * Copyright 2009-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_Session
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_Session
27: */
28: class Horde_Kolab_Session_Storage_Mock
29: implements Horde_Kolab_Session_Storage
30: {
31: /**
32: * The session information.
33: */
34: public $session;
35:
36: /**
37: * Load the session information.
38: *
39: * @return array The session data or an empty array if no information was
40: * found.
41: */
42: public function load()
43: {
44: return false;
45: }
46:
47: /**
48: * Save the session information.
49: *
50: * @param array $session_data The session data that should be stored.
51: *
52: * @return NULL
53: */
54: public function save(array $session_data)
55: {
56: $this->session = $session_data;
57: }
58: }
59: