PHP Class Nette\Security\Identity

Author: David Grudl
Inheritance: extends Nette\FreezableObject, implements Nette\Security\IIdentity
Afficher le fichier Open project: nette/security Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $id, $roles = NULL, $data = NULL )
__get ( $key ) : mixed Returns user data value.
__isset ( $key ) : boolean Is property defined?
__set ( $key, $value ) : void Sets user data value.
getData ( ) : array Returns a user data.
getId ( ) : mixed Returns the ID of user.
getRoles ( ) : array Returns a list of roles that the user is a member of.
setId ( $id ) : self Sets the ID of user.
setRoles ( array $roles ) : self Sets a list of roles that the user is a member of.

Private Methods

Méthode Description
parentGet ( )
parentIsSet ( )
parentSet ( )

Method Details

__construct() public méthode

public __construct ( $id, $roles = NULL, $data = NULL )

__get() public méthode

Returns user data value.
public __get ( $key ) : mixed
Résultat mixed

__isset() public méthode

Is property defined?
public __isset ( $key ) : boolean
Résultat boolean

__set() public méthode

Sets user data value.
public __set ( $key, $value ) : void
Résultat void

getData() public méthode

Returns a user data.
public getData ( ) : array
Résultat array

getId() public méthode

Returns the ID of user.
public getId ( ) : mixed
Résultat mixed

getRoles() public méthode

Returns a list of roles that the user is a member of.
public getRoles ( ) : array
Résultat array

setId() public méthode

Sets the ID of user.
public setId ( $id ) : self
Résultat self

setRoles() public méthode

Sets a list of roles that the user is a member of.
public setRoles ( array $roles ) : self
$roles array
Résultat self