Class User
User authentication and authorization.
- Nette\Object
- Nette\Web\User implements Nette\Web\IUser
public
|
|
public
|
|
final public
|
|
final public
boolean
|
|
final public
|
|
public
|
|
final public
|
|
public
|
|
final public
string
|
|
public
|
#
setExpiration( string|integer|
Enables log out after inactivity. |
final public
integer
|
|
protected
|
|
protected
|
|
protected
|
|
public
array
|
|
final public
boolean
|
|
public
boolean
|
#
isAllowed( string $resource =
Has a user effective access to the Resource? If $resource is NULL, then the query applies to all resources. |
public
|
|
final public
|
|
protected
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
integer
|
MANUAL
|
1 |
#
log-out reason |
integer
|
INACTIVITY
|
2 |
|
integer
|
BROWSER_CLOSED
|
3 |
public
string
|
$guestRole | 'guest' |
#
default role for unauthenticated user |
public
string
|
$authenticatedRole | 'authenticated' |
#
default role for authenticated user without own identity |
public
array
|
$onLoggedIn |
|
#
of function(User $sender); Occurs when the user is successfully logged in |
public
array
|
$onLoggedOut |
|
#
of function(User $sender); Occurs when the user is logged out |