Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • Identity
  • Passwords
  • Permission
  • SimpleAuthenticator
  • User

Interfaces

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

Exceptions

  • AuthenticationException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class Identity

Default implementation of IIdentity.

Nette\Security\Identity implements Nette\Security\IIdentity uses Nette\SmartObject
Namespace: Nette\Security
Located at Security/Identity.php
Methods summary
public
# __construct( mixed $id, mixed $roles = null, iterable $data = null )

Parameters

$id
$roles
$data
public Nette\Security\Identity
# setId( mixed $id )

Sets the ID of user.

Sets the ID of user.

Parameters

$id

Returns

Nette\Security\Identity
static
public mixed
# getId( )

Returns the ID of user.

Returns the ID of user.

Returns

mixed
mixed

Implementation of

Nette\Security\IIdentity::getId()
public Nette\Security\Identity
# setRoles( array $roles )

Sets a list of roles that the user is a member of.

Sets a list of roles that the user is a member of.

Returns

Nette\Security\Identity
static
public array
# getRoles( )

Returns a list of roles that the user is a member of.

Returns a list of roles that the user is a member of.

Returns

array
array

Implementation of

Nette\Security\IIdentity::getRoles()
public array
# getData( )

Returns a user data.

Returns a user data.

Returns

array
array
public
# __set( string $key, mixed $value )

Sets user data value.

Sets user data value.

Parameters

$key
$value
public mixed &
# __get( string $key )

Returns user data value.

Returns user data value.

Parameters

$key

Returns

mixed
mixed
public boolean
# __isset( string $key )

Parameters

$key

Returns

boolean
bool
Methods used from Nette\SmartObject
__call(), __callStatic(), __unset(), extensionMethod(), getReflection()
Magic properties summary
public mixed $id
public array $roles
public array $data
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0