Packages

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

Classes

  • NIdentity
  • NPermission
  • NSimpleAuthenticator
  • NUser

Interfaces

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

Exceptions

  • NAuthenticationException
  • Overview
  • Package
  • Class
  • Tree

Class NIdentity

Default implementation of IIdentity.

NObject
Extended by NFreezableObject implements IFreezable
Extended by NIdentity 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 NIdentity
# setId( mixed $id )

Sets the ID of user.

Sets the ID of user.

Parameters

$id
mixed

Returns

NIdentity
provides a fluent interface
public mixed
# getId( )

Returns the ID of user.

Returns the ID of user.

Returns

mixed

Implementation of

IIdentity::getId
public NIdentity
# 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

NIdentity
provides a fluent interface
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
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.
public boolean
# __isset( string $key )

Is property defined?

Is property defined?

Parameters

$key
string
property name

Returns

boolean
public
# __unset( string $name )

Removes property.

Removes property.

Parameters

$name
string
property name

Throws

MemberAccessException
Methods inherited from NFreezableObject
__clone(), freeze(), isFrozen(), updating()
Methods inherited from NObject
__call(), __callStatic(), extensionMethod(), getReflection()
Nette Framework 2.0beta2 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0