PHP Класс Horde_Core_Prefs_Identity, horde

Автор: Jan Schneider ([email protected])
Автор: Michael Slusarz ([email protected])
Наследование: extends Horde_Prefs_Identity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
confirmIdentity ( string $hash ) Checks whether an identity confirmation is valid, and adds the validated identity.
getMatchingIdentity ( mixed $addresses, boolean $search_own = true ) : integer Returns the identity's id that matches the passed addresses.
getName ( integer $ident = null ) : string Returns the user's full name.
prefsGc ( ) Perform garbage collection on preferences used by identities.
verifyIdentity ( integer $id, string $old_addr ) Sends a message to an email address supposed to be added to the identity.

Защищенные методы

Метод Описание
_confirmEmail ( array $confirm = null ) : array Manage the storage of the confirm_email preference.

Описание методов

_confirmEmail() защищенный Метод

Manage the storage of the confirm_email preference.
protected _confirmEmail ( array $confirm = null ) : array
$confirm array If set, save this in the pref backend.
Результат array Confirm email array.

confirmIdentity() публичный Метод

Checks whether an identity confirmation is valid, and adds the validated identity.
public confirmIdentity ( string $hash )
$hash string The hash of the identity being validated.

getMatchingIdentity() публичный Метод

Returns the identity's id that matches the passed addresses.
public getMatchingIdentity ( mixed $addresses, boolean $search_own = true ) : integer
$addresses mixed Either an array or a single string or a comma-separated list of email addresses.
$search_own boolean Search for a matching identity in own addresses also?
Результат integer The id of the first identity that from or alias addresses match (one of) the passed addresses or null if none matches.

getName() публичный Метод

Returns the user's full name.
public getName ( integer $ident = null ) : string
$ident integer The identity to retrieve the name from.
Результат string The user's full name, or the user name if it doesn't exist.

prefsGc() публичный Метод

Perform garbage collection on preferences used by identities.
public prefsGc ( )

verifyIdentity() публичный Метод

A message is send to this address containing a time-sensitive link to confirm that the address really belongs to that user.
public verifyIdentity ( integer $id, string $old_addr )
$id integer The identity's ID.
$old_addr string The old From: address.