PHP Class eZ\Publish\Core\MVC\Symfony\Security\User\Identity

Instance can be transformed to a hash and used as an identity token.
Deprecation: since 5.4. Will be removed in 6.0. Use FOSHttpCacheBundle user context feature instead.
Inheritance: implements eZ\Publish\SPI\User\Identity
Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$hash string
$identityInfo array

Public Methods

Method Description
__construct ( )
addInformation ( array $information ) Registers several pieces of information in the identity.
getHash ( ) : string Returns the hash of the current identity (e.g. md5, sha1.
getInformation ( ) : array Returns registered information.
replaceInformation ( array $information ) Replaces the information already registered in the identity.
setInformation ( string $informationName, scalar $informationValue ) Registers an information in the identity.

Protected Methods

Method Description
resetHash ( ) Resets current hash.

Method Details

__construct() public method

public __construct ( )

addInformation() public method

Registers several pieces of information in the identity.
public addInformation ( array $information )
$information array Hash where key is the information type and value is a scalar.

getHash() public method

..).
public getHash ( ) : string
return string

getInformation() public method

Returns registered information.
public getInformation ( ) : array
return array

replaceInformation() public method

Replaces the information already registered in the identity.
public replaceInformation ( array $information )
$information array Hash where key is the information type and value is a scalar.

resetHash() protected method

Resets current hash.
protected resetHash ( )

setInformation() public method

Registers an information in the identity.
public setInformation ( string $informationName, scalar $informationValue )
$informationName string
$informationValue scalar

Property Details

$hash protected_oe property

protected string $hash
return string

$identityInfo protected_oe property

protected array $identityInfo
return array