Class NIdentity
Default implementation of IIdentity.
NObject | --NFreezableObject | --NIdentity
Implements interfaces:
Public Method Summary | |
---|---|
NIdentity |
|
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.
|
NIdentity |
setName
(string $name)
Sets the name of user.
|
NIdentity |
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 NFreezableObject |
---|
freeze(), isFrozen(), updating(), __clone() |
Methods Inherited From NObject |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Method Details | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 56 __constructpublic NIdentity __construct (string $name, [mixed $roles =
|
||||||||||||||||||
line 119 getDatapublic array getData () Returns a user data.
|
||||||||||||||||||
line 83 getNamepublic string getName () Returns the name of user. Implementation of:
|
||||||||||||||||||
line 108 getRolespublic array getRoles () Returns a list of roles that the user is a member of. Implementation of:
|
||||||||||||||||||
line 70 setNamepublic NIdentity setName (string $name) Sets the name of user.
|
||||||||||||||||||
line 95 setRolespublic NIdentity setRoles ($roles) Sets a list of roles that the user is a member of.
|
||||||||||||||||||
line 150 __getpublic mixed & __get (string $key) Returns user data value.
|
||||||||||||||||||
line 132 __setpublic void __set (string $key, mixed $value) Sets user data value.
|