Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Identity
  • Passwords
  • Permission
  • SimpleAuthenticator
  • User

Interfaces

  • IAuthenticator
  • IAuthorizator
  • IIdentity
  • IResource
  • IRole
  • IUserStorage

Exceptions

  • AuthenticationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Interface IUserStorage

Interface for persistent storage for user object data.

Direct known implementers

Nette\Http\UserStorage
Namespace: Nette\Security
Located at Security/IUserStorage.php
Methods summary
public
# setAuthenticated( boolean $state )

Sets the authenticated status of this user.

Sets the authenticated status of this user.

Parameters

$state
public boolean
# isAuthenticated( )

Is this user authenticated?

Is this user authenticated?

Returns

boolean
bool
public
# setIdentity( Nette\Security\IIdentity $identity = NULL )

Sets the user identity.

Sets the user identity.

public Nette\Security\IIdentity|null
# getIdentity( )

Returns current user identity, if any.

Returns current user identity, if any.

Returns

Nette\Security\IIdentity|null
IIdentity|NULL
public
# setExpiration( string|integer|DateTime $time, integer $flags = 0 )

Enables log out from the persistent storage after inactivity.

Enables log out from the persistent storage after inactivity.

Parameters

$time
of seconds or timestamp
$flags
out when the browser is closed | Clear the identity from persistent storage?
public integer
# getLogoutReason( )

Why was user logged out?

Why was user logged out?

Returns

integer
int
Constants summary
integer MANUAL

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

#1
integer INACTIVITY

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

#2
integer BROWSER_CLOSED

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

Log-out reason Nette\Security\IUserStorage::getLogoutReason()

#4
integer CLEAR_IDENTITY

Log-out behavior

Log-out behavior

#8
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0