Class Identity
Default implementation of IIdentity.
-
Nette\Object
-
Nette\Security\Identity
implements
Nette\Security\IIdentity
Methods summary
public
|
#
__construct( mixed $id, mixed $roles = NULL, array $data = NULL )
Parameters
- $id
- ID
- $roles
- roles
- $data
- data
|
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.
Parameters
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
Throws
MemberAccessException if the property is not defined or is read-only
Overrides
|
public
mixed
&
|
#
__get( string $key )
Returns user data value.
Parameters
Returns
mixed mixed
Throws
MemberAccessException if the property is not defined.
Overrides
|
public
boolean
|
#
__isset( string $key )
Is property defined?
Parameters
Returns
boolean bool
Overrides
|
public
|
#
__unset( string $name )
Removes property.
Parameters
Throws
Overrides
|
Magic properties summary
public
mixed
|
$id
|
public
array
|
$roles
|