Class User
User authentication and authorization.
- Nette\Security\User uses Nette\SmartObject
public
|
#
__construct(
|
public
|
|
public
|
#
login( string|
Conducts the authentication process. Parameters are optional. |
public
|
|
public
boolean
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
|
#
setExpiration( string|integer|
Enables log out after inactivity. |
public
integer|null
|
|
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
|