Packages

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

Classes

Interfaces

Exceptions

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Identity

Default implementation of IIdentity.

Object
Extended by FreezableObject implements IFreezable
Extended by Identity implements IIdentity
Package: 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 Identity
# setId( mixed $id )

Sets the ID of user.

Sets the ID of user.

Parameters

$id
mixed

Returns

Identity
public mixed
# getId( )

Returns the ID of user.

Returns the ID of user.

Returns

mixed

Implementation of

IIdentity::getId()
public 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

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

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

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

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

Is property defined?

Is property defined?

Parameters

$key
string
property name

Returns

boolean

Overrides

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

Removes property.

Removes property.

Parameters

$name
string
property name

Throws

MemberAccessException

Overrides

Object::__unset()
Methods inherited from FreezableObject
__clone(), freeze(), isFrozen(), updating()
Methods inherited from Object
__call(), __callStatic(), extensionMethod(), getReflection()
Magic properties summary
public mixed $id
#
public array $roles
#
public read-only array $data
#
Magic properties inherited from FreezableObject
$frozen
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0