$_identities
$_identities : array
Array containing all the user's identities.
This class provides an interface to all identities a user might have.
$_prefs : \Horde_Prefs
The prefs object that this Identity points to.
__construct(array $params = array())
Constructor.
array | $params | Parameters:
|
getValue(string $key, integer $identity = null) : mixed
Returns a property from one of the identities. If this value doesn't exist or is locked, the property is retrieved from the prefs backend.
string | $key | The property to retrieve. |
integer | $identity | The identity to retrieve the property from. |
The value of the property.
setValue(string $key, mixed $val, integer $identity = null) : boolean
Sets a property with a specified value.
string | $key | The property to set. |
mixed | $val | The value to which the property should be set. |
integer | $identity | The identity to set the property in. |
True on success, false on failure (property was locked).
getFromAddress(integer $ident = null) : \Horde_Mail_Rfc822_Address
Returns the from address based on the chosen identity.
If no address can be found it is built from the current user.
integer | $ident | The identity to retrieve the address from. |
A valid from address.
getDefaultFromAddress(boolean $fullname = false) : \Horde_Mail_Rfc822_Address
Generates the from address to use for the default identity.
boolean | $fullname | Include the fullname information. |
The default from address (object returned since 2.2.0).