Namespaces

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

Classes

  • Ftp
  • Html
  • HttpContext
  • HttpRequest
  • HttpResponse
  • HttpUploadedFile
  • Session
  • SessionNamespace
  • Uri
  • UriScript
  • User

Interfaces

  • IHttpRequest
  • IHttpResponse
  • IUser

Exceptions

  • FtpException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Interface IUser

User authentication and authorization.

Direct known implementers

Nette\Web\User
Namespace: 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

Nette\Security\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 Nette\Security\IIdentity
# getIdentity( )

Returns current user identity, if any.

Returns current user identity, if any.

Returns

Nette\Security\IIdentity
public
# setAuthenticationHandler( Nette\Security\IAuthenticator $handler )

Sets authentication handler.

Sets authentication handler.

Parameters

$handler
Nette\Security\IAuthenticator
public Nette\Security\IAuthenticator
# getAuthenticationHandler( )

Returns authentication handler.

Returns authentication handler.

Returns

Nette\Security\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( Nette\Security\IAuthorizator $handler )

Sets authorization handler.

Sets authorization handler.

Parameters

$handler
Nette\Security\IAuthorizator
public Nette\Security\IAuthorizator
# getAuthorizationHandler( )

Returns current authorization handler.

Returns current authorization handler.

Returns

Nette\Security\IAuthorizator
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0