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
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Identity
  • Passwords
  • Permission
  • SimpleAuthenticator
  • User

Interfaces

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

Exceptions

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

Class Identity

Default implementation of IIdentity.

Nette\Object
Extended by Nette\Security\Identity implements Nette\Security\IIdentity
Namespace: Nette\Security
Located at Security/Identity.php
Methods summary
public
# __construct( mixed $id, mixed $roles = NULL, array $data = NULL )

Parameters

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

Sets the ID of user.

Sets the ID of user.

Parameters

$id

Returns

Nette\Security\Identity
self
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.

Parameters

$roles

Returns

Nette\Security\Identity
self
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
name
$value
value

Throws

MemberAccessException
if the property is not defined or is read-only

Overrides

Nette\Object::__set()
public mixed &
# __get( string $key )

Returns user data value.

Returns user data value.

Parameters

$key
name

Returns

mixed
mixed

Throws

MemberAccessException
if the property is not defined.

Overrides

Nette\Object::__get()
public boolean
# __isset( string $key )

Is property defined?

Is property defined?

Parameters

$key
name

Returns

boolean
bool

Overrides

Nette\Object::__isset()
public
# __unset( string $name )

Removes property.

Removes property.

Parameters

$name
name

Throws

Nette\MemberAccessException
Nette\MemberAccessException

Overrides

Nette\Object::__unset()
Methods inherited from Nette\Object
__call(), __callStatic(), extensionMethod(), getReflection()
Magic properties summary
public mixed $id
public array $roles
Magic properties inherited from Nette\Object
$reflection
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0