\Horde_Kolab_Session_Base

The Horde_Kolab_Session_Base class holds user details retrieved via LDAP in the current session.

Copyright 2008-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Summary

Methods
Properties
Constants
getId()
getMail()
getUid()
getName()
getImapServer()
getFreebusyServer()
import()
export()
purge()
__construct()
connect()
No public properties found
No constants found
No protected methods found
$_data
N/A
_initMail()
_initUid()
_initName()
_initImapServer()
_initFreebusyServer()
$_params
$_server
N/A

Properties

$_data

$_data : array

The session data.

Type

array

$_params

$_params : array

Kolab configuration parameters.

Type

array

$_server

$_server : \Horde_Kolab_Server

The kolab user database connection.

Type

\Horde_Kolab_Server

Methods

getId()

getId() : string

Return the user id used for connecting the session.

Returns

string —

The user id.

getMail()

getMail() : string

Return the users mail address.

Returns

string —

The users mail address.

getUid()

getUid() : string

Return the users uid.

Returns

string —

The users uid.

getName()

getName() : string

Return the users name.

Returns

string —

The users name.

getImapServer()

getImapServer() : string

Return the imap server.

Returns

string —

The imap host for the current user.

getFreebusyServer()

getFreebusyServer() : string

Return the freebusy server.

Returns

string —

The freebusy host for the current user.

import()

import(array  $session_data) : NULL

Import the session data from an array.

Parameters

array $session_data

Returns

NULL

export()

export() : array

Export the session data as array.

Returns

array —

The session data.

purge()

purge() : NULL

Clear the session data.

Returns

NULL

__construct()

__construct(\Horde_Kolab_Server  $server, array  $params) 

Constructor.

Parameters

\Horde_Kolab_Server $server

The connection to the Kolab user database.

array $params

Kolab configuration settings.

connect()

connect(string  $user_id = null, array  $credentials = null) : NULL

Try to connect the session handler.

Parameters

string $user_id

The user ID to connect with.

array $credentials

An array of login credentials. For Kolab, this must contain a "password" entry.

Throws

\Horde_Kolab_Session_Exception

If the connection failed.

Returns

NULL

_initMail()

_initMail(\Horde_Kolab_Server_Object  $user) : NULL

Initialize the user mail address.

Parameters

\Horde_Kolab_Server_Object $user

The user object.

Returns

NULL

_initUid()

_initUid(\Horde_Kolab_Server_Object  $user) : NULL

Initialize the user uid.

Parameters

\Horde_Kolab_Server_Object $user

The user object.

Returns

NULL

_initName()

_initName(\Horde_Kolab_Server_Object  $user) : NULL

Initialize the user name.

Parameters

\Horde_Kolab_Server_Object $user

The user object.

Returns

NULL

_initImapServer()

_initImapServer(\Horde_Kolab_Server_Object  $user) : NULL

Initialize the users imap server FQDN.

Parameters

\Horde_Kolab_Server_Object $user

The user object.

Returns

NULL

_initFreebusyServer()

_initFreebusyServer(\Horde_Kolab_Server_Object  $user) : NULL

Initialize the users free/busy URL.

Parameters

\Horde_Kolab_Server_Object $user

The user object.

Returns

NULL