PHP 클래스 Horde_Core_Prefs_Identity, horde

저자: Jan Schneider ([email protected])
저자: Michael Slusarz ([email protected])
상속: extends Horde_Prefs_Identity
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
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.