PHP Класс Nette\Security\Identity

Автор: David Grudl
Наследование: extends Nette\FreezableObject, implements Nette\Security\IIdentity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $id, $roles = NULL, $data = NULL )
__get ( $key ) : mixed Returns user data value.
__isset ( $key ) : boolean Is property defined?
__set ( $key, $value ) : void Sets user data value.
getData ( ) : array Returns a user data.
getId ( ) : mixed Returns the ID of user.
getRoles ( ) : array Returns a list of roles that the user is a member of.
setId ( $id ) : self Sets the ID of user.
setRoles ( array $roles ) : self Sets a list of roles that the user is a member of.

Приватные методы

Метод Описание
parentGet ( )
parentIsSet ( )
parentSet ( )

Описание методов

__construct() публичный Метод

public __construct ( $id, $roles = NULL, $data = NULL )

__get() публичный Метод

Returns user data value.
public __get ( $key ) : mixed
Результат mixed

__isset() публичный Метод

Is property defined?
public __isset ( $key ) : boolean
Результат boolean

__set() публичный Метод

Sets user data value.
public __set ( $key, $value ) : void
Результат void

getData() публичный Метод

Returns a user data.
public getData ( ) : array
Результат array

getId() публичный Метод

Returns the ID of user.
public getId ( ) : mixed
Результат mixed

getRoles() публичный Метод

Returns a list of roles that the user is a member of.
public getRoles ( ) : array
Результат array

setId() публичный Метод

Sets the ID of user.
public setId ( $id ) : self
Результат self

setRoles() публичный Метод

Sets a list of roles that the user is a member of.
public setRoles ( array $roles ) : self
$roles array
Результат self