\Horde_Core_Factory_SessionHandler

Factory for creating Horde_SessionHandler objects.

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

Summary

Methods
Properties
Constants
create()
__construct()
readSessionData()
$storage
No constants found
_getDriverName()
_returnTrue()
$_injector
N/A
No private methods found
No private properties found
N/A

Properties

$storage

$storage : \Horde_SessionHandler_Storage

Storage driver.

Type

\Horde_SessionHandler_Storage

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

Methods

create()

create(\Horde_Injector  $injector) : \Horde_SessionHandler_Driver

Attempts to return a concrete instance based on $driver.

Parameters

\Horde_Injector $injector

Throws

\Horde_SessionHandler_Exception

Returns

\Horde_SessionHandler_Driver —

The newly created concrete instance.

__construct()

__construct(\Horde_Injector  $injector) 

Constructor.

Parameters

\Horde_Injector $injector

The injector to use.

readSessionData()

readSessionData(string  $session_data) : array

Reads session data to determine if it contains Horde authentication credentials.

Parameters

string $session_data

The session data.

Returns

array —

An array of the user's sesion information if authenticated or false. The following information is returned: userid, timestamp, remoteAddr, browser, apps.

_getDriverName()

_getDriverName(string  $driver, string  $base) : string

Return the classname of the driver to load.

Parameters

string $driver

Driver name.

string $base

The base classname.

Throws

\Horde_Exception

Returns

string —

Classname.

_returnTrue()

_returnTrue() : boolean

Stub method.

Returns

boolean —

True