Class Identity
Default implementation of IIdentity.
-
Nette\Security\Identity
implements
Nette\Security\IIdentity
uses
Nette\SmartObject
Methods summary
public
|
#
__construct( mixed $id, mixed $roles = null, iterable $data = null )
|
public
Nette\Security\Identity
|
#
setId( mixed $id )
Sets the ID of user.
Parameters
Returns
|
public
mixed
|
#
getId( )
Returns the ID of user.
Returns
mixed mixed
Implementation of
|
public
Nette\Security\Identity
|
#
setRoles( array $roles )
Sets a list of roles that the user is a member of.
Sets a list of roles that the user is a member of.
Returns
|
public
array
|
#
getRoles( )
Returns a list of roles that the user is a member of.
Returns a list of roles that the user is a member of.
Returns
array array
Implementation of
|
public
array
|
#
getData( )
Returns a user data.
Returns
array array
|
public
|
#
__set( string $key, mixed $value )
Sets user data value.
Parameters
|
public
mixed
&
|
#
__get( string $key )
Returns user data value.
Parameters
Returns
mixed mixed
|
public
boolean
|
#
__isset( string $key )
Parameters
Returns
boolean bool
|
Magic properties summary
public
mixed
|
$id
|
public
array
|
$roles
|
public
array
|
$data
|