Horde_Core_Factory_Identity_UsernameHook
extends Horde_Core_Factory_Identity
in package
A Horde_Injector based Horde_Identity factory that converts the user name through the user name hook.
Tags
Table of Contents
Properties
- $_injector : Horde_Injector
- The injector.
- $_instances : array<string|int, mixed>
- Instances.
Methods
- __construct() : mixed
- Constructor.
- create() : Horde_Identity
- Returns the Horde_Identity instance.
- _getDriverName() : string
- Return the classname of the driver to load.
Properties
$_injector
The injector.
protected
Horde_Injector
$_injector
$_instances
Instances.
private
array<string|int, mixed>
$_instances
= array()
Methods
__construct()
Constructor.
public
__construct(Horde_Injector $injector) : mixed
Parameters
- $injector : Horde_Injector
-
The injector to use.
create()
Returns the Horde_Identity instance.
public
create([string $user = null ][, string $driver = null ]) : Horde_Identity
Parameters
- $user : string = null
-
The user to use, if not the current user.
- $driver : string = null
-
The identity driver. Either empty (use default driver) or an application name.
Tags
Return values
Horde_Identity —The singleton identity instance.
_getDriverName()
Return the classname of the driver to load.
protected
_getDriverName(string $driver, string $base) : string
Parameters
- $driver : string
-
Driver name.
- $base : string
-
The base classname.
Tags
Return values
string —Classname.