Packages

  • Nette
    • Application
      • Application\Diagnostics
      • Application\Responses
      • Application\Routers
      • Application\UI
    • Caching
      • Caching\Storages
    • ComponentModel
    • Config
      • Config\Extensions
    • Database
      • Database\Diagnostics
      • Database\Drivers
      • Database\Reflection
      • Database\Table
    • DI
      • DI\Diagnostics
    • Diagnostics
    • Forms
      • Forms\Controls
      • Forms\Rendering
    • Http
    • Iterators
    • Latte
      • Latte\Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Security\Diagnostics
    • Templating
    • Utils
      • Utils\PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • Identity
  • Permission
  • SimpleAuthenticator
  • User

Interfaces

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

Exceptions

  • AuthenticationException
  • Overview
  • Package
  • Class
  • Tree

Interface IUserStorage

Interface for persistent storage for user object data.

Direct known implementers

UserStorage
Package: Nette\Security
Author: David Grudl, Jan Tichý
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
boolean
public boolean
# isAuthenticated( )

Is this user authenticated?

Is this user authenticated?

Returns

boolean
public
# setIdentity( IIdentity $identity = NULL )

Sets the user identity.

Sets the user identity.

public IIdentity|null
# getIdentity( )

Returns current user identity, if any.

Returns current user identity, if any.

Returns

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
string|integer|DateTime
number of seconds or timestamp
$flags
integer
Log 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
Constants summary
integer MANUAL 1
#

Log-out reason IUserStorage::getLogoutReason()

Log-out reason IUserStorage::getLogoutReason()

integer INACTIVITY 2
#

Log-out reason IUserStorage::getLogoutReason()

Log-out reason IUserStorage::getLogoutReason()

integer BROWSER_CLOSED 4
#

Log-out reason IUserStorage::getLogoutReason()

Log-out reason IUserStorage::getLogoutReason()

integer CLEAR_IDENTITY 8
#

Log-out behavior

Log-out behavior

Nette Framework 2.0beta2 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0