Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NFtp
  • NHtml
  • NHttpContext
  • NHttpRequest
  • NHttpResponse
  • NHttpUploadedFile
  • NSession
  • NSessionNamespace
  • NUri
  • NUriScript
  • NUser

Interfaces

  • IHttpRequest
  • IHttpResponse
  • IUser

Exceptions

  • NFtpException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Interface IUser

User authentication and authorization.

Direct known implementers

NUser
Package: Nette\Web
Author: David Grudl
Located at Web/IUser.php
Methods summary
public
# login( string $username, string $password, mixed $extra = NULL )

Conducts the authentication process.

Conducts the authentication process.

Parameters

$username
string
$password
string
$extra
mixed

Throws

NAuthenticationException
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
# setAuthenticationHandler( IAuthenticator $handler )

Sets authentication handler.

Sets authentication handler.

Parameters

$handler
IAuthenticator
public IAuthenticator
# getAuthenticationHandler( )

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
# setAuthorizationHandler( IAuthorizator $handler )

Sets authorization handler.

Sets authorization handler.

Parameters

$handler
IAuthorizator
public IAuthorizator
# getAuthorizationHandler( )

Returns current authorization handler.

Returns current authorization handler.

Returns

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