Packages

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

Classes

  • HttpContext
  • HttpRequest
  • HttpRequestFactory
  • HttpResponse
  • HttpUploadedFile
  • Session
  • SessionSection
  • Url
  • UrlScript
  • User

Interfaces

  • IHttpRequest
  • IHttpResponse
  • ISessionStorage
  • IUser
  • Overview
  • Package
  • Class
  • Tree

Interface IUser

User authentication and authorization.

Direct known implementers

User
Package: Nette\Http
Author: David Grudl
Located at Http/IUser.php
Methods summary
public
# login( )

Conducts the authentication process.

Conducts the authentication process.

Throws

AuthenticationException
if authentication was not successful
public
# logout( $clearIdentity = FALSE )

Logs out the user from the current session.

Logs out the user from the current session.

public boolean
# isLoggedIn( )

Is this user authenticated?

Is this user authenticated?

Returns

boolean
public IIdentity
# getIdentity( )

Returns current user identity, if any.

Returns current user identity, if any.

Returns

IIdentity
public
# setAuthenticator( IAuthenticator $handler )

Sets authentication handler.

Sets authentication handler.

Parameters

$handler
IAuthenticator
public IAuthenticator
# getAuthenticator( )

Returns authentication handler.

Returns authentication handler.

Returns

IAuthenticator
public
# setNamespace( string $namespace )

Changes namespace; allows more users to share a session.

Changes namespace; allows more users to share a session.

Parameters

$namespace
string
public string
# getNamespace( )

Returns current namespace.

Returns current namespace.

Returns

string
public array
# getRoles( )

Returns a list of roles that a user has been granted.

Returns a list of roles that a user has been granted.

Returns

array
public boolean
# isInRole( string $role )

Is a user in the specified role?

Is a user in the specified role?

Parameters

$role
string

Returns

boolean
public boolean
# isAllowed( )

Has a user access to the Resource?

Has a user access to the Resource?

Returns

boolean
public
# setAuthorizator( IAuthorizator $handler )

Sets authorization handler.

Sets authorization handler.

Parameters

$handler
IAuthorizator
public IAuthorizator
# getAuthorizator( )

Returns current authorization handler.

Returns current authorization handler.

Returns

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