Class User
User authentication and authorization.
- Nette\Object
- Nette\Security\User
public
|
#
__construct(
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
|
#
setExpiration( string|integer|
Enables log out after inactivity. |
public
integer
|
|
public
array
|
|
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
|
|
public
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
string |
MANUAL
|
|
string |
INACTIVITY
|
|
string |
BROWSER_CLOSED
|
public
string
|
$guestRole
default role for unauthenticated user |
# 'guest' |
public
string
|
$authenticatedRole
default role for authenticated user without own identity |
# 'authenticated' |
public
callable[]
|
$onLoggedIn
function (User $sender); Occurs when the user is successfully logged in |
|
public
callable[]
|
$onLoggedOut
function (User $sender); Occurs when the user is logged out |
public
|
$authenticator
|
public
|
$authorizator
|
public read-only
boolean
|
$loggedIn
|
public read-only
|
$identity
|
public read-only
mixed
|
$id
|
public read-only
array
|
$roles
|
public read-only
integer
|
$logoutReason
|
$reflection
|