IWebUser
包 | system.base |
---|---|
继承 | interface IWebUser |
子类 | CWebUser |
可用自 | 1.0 |
版本 | $Id$ |
IWebUser interface is implemented by a user application component.
A user application component represents the identity information for the current user.
A user application component represents the identity information for the current user.
公共方法
方法 | 描述 | 被定义在 |
---|---|---|
checkAccess() | Performs access check for this user. | IWebUser |
getId() | Returns a value that uniquely represents the identity. | IWebUser |
getIsGuest() | Returns a value indicating whether the user is a guest (not authenticated). | IWebUser |
getName() | Returns the display name for the identity (e.g. username). | IWebUser |
方法详情
checkAccess()
方法
abstract public boolean checkAccess(string $operation, array $params=array (
))
| ||
$operation | string | the name of the operation that need access check. |
$params | array | name-value pairs that would be passed to business rules associated with the tasks and roles assigned to the user. |
{return} | boolean | whether the operations can be performed by this user. |
Performs access check for this user.
getId()
方法
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.
getIsGuest()
方法
abstract public boolean getIsGuest()
| ||
{return} | boolean | whether the user is a guest (not authenticated) |
Returns a value indicating whether the user is a guest (not authenticated).
getName()
方法
abstract public string getName()
| ||
{return} | string | the display name for the identity. |
Returns the display name for the identity (e.g. username).