This class provides an interface to all identities a user might have. Its methods take care of any site-specific restrictions configured in prefs.php and conf.php.
$Horde: framework/Prefs/Identity.php,v 1.1.2.15 2011-01-06 17:07:05 jan Exp $
Copyright 2001-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Located in /Prefs/Identity.php (line 22)
A pointer to the user's standard identity.
This one is used by the methods returning values if no other one is specified.
Array containing all the user's identities.
Reference to the prefs object that this Identity points to.
Array containing all of the properties in this identity.
The user whose identities these are.
Reads all the user's identities from the prefs object or builds a new identity from the standard values given in prefs.php.
Adds a new identity to the array of identities.
Checks whether an identity confirmation is valid, and adds the validated identity.
Removes an identity from the array of identities.
Attempts to return a concrete Identity instance based on $type.
Returns a complete identity hash.
Returns an array with the specified property from all existing identities.
Returns a pointer to the current default identity.
Generates the from address to use for the default identity.
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.
Returns true if the given address belongs to one of the identities.
Creates a default identity if none exists yet and sets the preferences up if the identities are locked.
Returns true if all properties are locked and therefore nothing in the identities can be changed.
Saves all identities in the prefs backend.
Sets the current default identity.
If the identity doesn't exist, the old default identity stays the same.
Sets a property with a specified value.
Attempts to return a reference to a concrete Identity instance based on $type. It will only create a new instance if no Identity instance with the same parameters currently exists.
This should be used if multiple types of identities (and, thus, multiple Identity instances) are required.
This method must be invoked as: $var = &Identity::singleton()
Verifies and sanitizes all identity properties.
Sends a message to an email address supposed to be added to the identity.
A message is send to this address containing a link to confirm that the address really belongs to that user.
Documentation generated on Sun, 30 Jan 2011 05:18:19 +0000 by phpDocumentor 1.4.3