\Horde_Core_Factory_Identity_DavUsernameHook

A Horde_Injector based Horde_Identity factory that converts the user name through the davusername hook.

This class is used for factories that are intended to have their create() methods manually called by code.

Copyright 2011-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
create()
__construct()
No public properties found
No constants found
_getDriverName()
$_injector
N/A
No private methods found
$_instances
N/A

Properties

$_injector

$_injector : \Horde_Injector

The injector.

Type

\Horde_Injector

$_instances

$_instances : array

Instances.

Type

array

Methods

create()

create(string  $user = null, string  $driver = null) : \Horde_Identity

Returns the Horde_Identity instance.

Parameters

string $user

The user to use, if not the current user.

string $driver

The identity driver. Either empty (use default driver) or an application name.

Throws

\Horde_Exception

Returns

\Horde_Identity —

The singleton identity instance.

__construct()

__construct(\Horde_Injector  $injector) 

Constructor.

Parameters

\Horde_Injector $injector

The injector to use.

_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.