Class Identity (namespace Nette\Security)
Default implementation of IIdentity.
Object | --Identity
Implements interfaces:
| Public Method Summary | |
|---|---|
| Identity |
|
| string |
getName
()
Returns the name of user.
|
| array |
getRoles
()
Returns a list of roles that the user is a member of.
|
| void |
setName
(string $name)
Sets the name of user.
|
| void |
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 Object |
|---|
| extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
| Method Details | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 53 __constructpublic Identity __construct (string $name, [mixed $roles =
|
||||||||||||||||||
|
line 78 getNamepublic string getName () Returns the name of user. Implementation of:
|
||||||||||||||||||
|
line 101 getRolespublic array getRoles () Returns a list of roles that the user is a member of. Implementation of:
|
||||||||||||||||||
|
line 67 setNamepublic void setName (string $name) Sets the name of user.
|
||||||||||||||||||
|
line 90 setRolespublic void setRoles ($roles) Sets a list of roles that the user is a member of.
|
||||||||||||||||||
|
line 131 __getpublic mixed & __get (string $key) Returns user data value.
|
||||||||||||||||||
|
line 114 __setpublic void __set (string $key, mixed $value) Sets user data value.
|
||||||||||||||||||
