Identity
class Identity extends Object implements IIdentity
Default implementation of IIdentity.
Properties
mixed | $id | ||
array | $roles | ||
array read-only | $data |
Methods
__construct($id, $roles = NULL, $data = NULL)
No description
mixed
getId()
Returns the ID of user.
array
getRoles()
Returns a list of roles that the user is a member of.
array
getData()
Returns a user data.
void
__set($key, $value)
Sets user data value.
mixed
__get($key)
Returns user data value.
bool
__isset($key)
Is property defined?
void
__unset($name)
Removes property.
Details
at line 39
__construct($id, $roles = NULL, $data = NULL)
No description
at line 52
Identity
setId($id)
Sets the ID of user.
at line 63
mixed
getId()
Returns the ID of user.
at line 74
Identity
setRoles(array $roles)
Sets a list of roles that the user is a member of.
at line 85
array
getRoles()
Returns a list of roles that the user is a member of.
at line 95
array
getData()
Returns a user data.
at line 107
void
__set($key, $value)
Sets user data value.
at line 123
mixed
__get($key)
Returns user data value.
at line 139
bool
__isset($key)
Is property defined?
at line 151
void
__unset($name)
Removes property.