Namespaces

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

Classes

  • Context
  • FileUpload
  • Request
  • RequestFactory
  • Response
  • Session
  • SessionSection
  • Url
  • UrlScript
  • User

Interfaces

  • IRequest
  • IResponse
  • ISessionStorage
  • IUser
  • Overview
  • Namespace
  • Class
  • Tree

Interface IUser

User authentication and authorization.

Direct known implementers

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

Conducts the authentication process.

Conducts the authentication process.

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
# setAuthenticator( Nette\Security\IAuthenticator $handler )

Sets authentication handler.

Sets authentication handler.

Parameters

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

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

Sets authorization handler.

Sets authorization handler.

Parameters

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

Returns current authorization handler.

Returns current authorization handler.

Returns

Nette\Security\IAuthorizator
Nette Framework 2.0beta1 API API documentation generated by ApiGen 2.3.0