Package | system.base |
---|---|
Inheritance | interface IUserIdentity |
Subclasses | CBaseUserIdentity, CUserIdentity |
Since | 1.0 |
Source Code | framework/base/interfaces.php |
Method | Description | Defined By |
---|---|---|
authenticate() | Authenticates the user. | IUserIdentity |
getId() | Returns a value that uniquely represents the identity. | IUserIdentity |
getIsAuthenticated() | Returns a value indicating whether the identity is authenticated. | IUserIdentity |
getName() | Returns the display name for the identity (e.g. username). | IUserIdentity |
getPersistentStates() | Returns the additional identity information that needs to be persistent during the user session. | IUserIdentity |
abstract public boolean authenticate()
| ||
{return} | boolean | whether authentication succeeds. |
Authenticates the user. The information needed to authenticate the user are usually provided in the constructor.
abstract public mixed getId()
| ||
{return} | mixed | a value that uniquely represents the identity (e.g. primary key value). |
Returns a value that uniquely represents the identity.
abstract public boolean getIsAuthenticated()
| ||
{return} | boolean | whether the identity is valid. |
Returns a value indicating whether the identity is authenticated.
abstract public string getName()
| ||
{return} | string | the display name for the identity. |
Returns the display name for the identity (e.g. username).
abstract public array getPersistentStates()
| ||
{return} | array | additional identity information that needs to be persistent during the user session (excluding id). |
Returns the additional identity information that needs to be persistent during the user session.
Signup or Login in order to comment.