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.
|
bool |
__isset
(string $key)
Is property defined?
|
void |
__set
(string $key, mixed $value)
Sets user data value.
|
void |
__unset
(string $name)
Removes property.
|
Methods Inherited From FreezableObject |
---|
freeze(), isFrozen(), updating(), __clone() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 43 __constructpublic Identity __construct (string $name, [mixed $roles =
|
||||||||||||||||||
line 106 getDatapublic array getData () Returns a user data.
|
||||||||||||||||||
line 70 getNamepublic string getName () Returns the name of user.
|
||||||||||||||||||
line 95 getRolespublic array getRoles () Returns a list of roles that the user is a member of. Implementation of:
|
||||||||||||||||||
line 57 setNamepublic Identity setName (string $name) Sets the name of user.
|
||||||||||||||||||
line 82 setRolespublic Identity setRoles ($roles) Sets a list of roles that the user is a member of.
|
||||||||||||||||||
line 137 __getpublic mixed & __get (string $key) Returns user data value.
|
||||||||||||||||||
line 154 __issetpublic bool __isset (string $key) Is property defined?
|
||||||||||||||||||
line 119 __setpublic void __set (string $key, mixed $value) Sets user data value.
|
||||||||||||||||||
line 167 __unsetpublic void __unset (string $name) Removes property.
|