Class Identity (namespace Nette\Security)
Default implementation of IIdentity.
Object | --FreezableObject | --Identity
Implements interfaces:
Public Method Summary | |
---|---|
Identity |
|
array |
getData
()
Returns a user data.
|
string |
getName
()
Returns the name of user.
|
array |
getRoles
()
Returns a list of roles that the user is a member of.
|
Identity |
setName
(string $name)
Sets the name of user.
|
Identity |
setRoles
($roles)
Sets a list of roles that the user is a member of.
|
& mixed |
__get
(string $key)
Returns user data value.
|
void |
__set
(string $key, mixed $value)
Sets user data value.
|
Methods Inherited From FreezableObject |
---|
freeze(), isFrozen(), updating(), __clone() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 44 __constructpublic Identity __construct (string $name, [mixed $roles =
|
||||||||||||||||||
line 107 getDatapublic array getData () Returns a user data.
|
||||||||||||||||||
line 71 getNamepublic string getName () Returns the name of user. Implementation of:
|
||||||||||||||||||
line 96 getRolespublic array getRoles () Returns a list of roles that the user is a member of. Implementation of:
|
||||||||||||||||||
line 58 setNamepublic Identity setName (string $name) Sets the name of user.
|
||||||||||||||||||
line 83 setRolespublic Identity setRoles ($roles) Sets a list of roles that the user is a member of.
|
||||||||||||||||||
line 138 __getpublic mixed & __get (string $key) Returns user data value.
|
||||||||||||||||||
line 120 __setpublic void __set (string $key, mixed $value) Sets user data value.
|