Overview

Packages

  • Kolab
    • Session

Classes

  • Horde_Kolab_Session_Abstract
  • Horde_Kolab_Session_Base
  • Horde_Kolab_Session_Decorator_Anonymous
  • Horde_Kolab_Session_Decorator_Base
  • Horde_Kolab_Session_Decorator_Logged
  • Horde_Kolab_Session_Decorator_Stored
  • Horde_Kolab_Session_Exception
  • Horde_Kolab_Session_Exception_Badlogin
  • Horde_Kolab_Session_Factory_Imap
  • Horde_Kolab_Session_Imap
  • Horde_Kolab_Session_Storage_Mock
  • Horde_Kolab_Session_Storage_Session
  • Horde_Kolab_Session_Valid_Base
  • Horde_Kolab_Session_Valid_Decorator_Logged

Interfaces

  • Horde_Kolab_Session
  • Horde_Kolab_Session_Storage
  • Horde_Kolab_Session_Valid
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Defines storage containers 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:  * Defines storage containers 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_Session
29: implements Horde_Kolab_Session_Storage
30: {
31:     /**
32:      * Load the session information.
33:      *
34:      * @return array The session data or an empty array if no information was
35:      *               found.
36:      */
37:     public function load()
38:     {
39:         if (isset($_SESSION['kolab_session'])) {
40:             return $_SESSION['kolab_session'];
41:         } else {
42:             return array();
43:         }
44:     }
45: 
46:     /**
47:      * Save the session information.
48:      *
49:      * @param array $session_data The session data that should be stored.
50:      *
51:      * @return NULL
52:      */
53:     public function save(array $session_data)
54:     {
55:         $_SESSION['kolab_session'] = $session_data;
56:     }
57: }
58: 
API documentation generated by ApiGen