Namespaces

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

Classes

  • Identity
  • 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
Author: David Grudl
SerializationVersion: 1.0
Located at Security/Identity.php
Methods summary
public
# __construct( mixed $id, mixed $roles = NULL, array $data = NULL )

Parameters

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

Sets the ID of user.

Sets the ID of user.

Parameters

$id
mixed

Returns

Nette\Security\Identity
public mixed
# getId( )

Returns the ID of user.

Returns the ID of user.

Returns

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
array

Returns

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

Implementation of

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

Returns a user data.

Returns a user data.

Returns

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

Sets user data value.

Sets user data value.

Parameters

$key
string
property name
$value
mixed
property 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
string
property name

Returns

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
string
property name

Returns

boolean

Overrides

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

Removes property.

Removes property.

Parameters

$name
string
property name

Throws

Nette\MemberAccessException

Overrides

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