PHP Class Nette\Security\Identity

Author: David Grudl
Inheritance: extends Nette\FreezableObject, implements Nette\Security\IIdentity
Mostra file Open project: nette/security Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
parentGet ( )
parentIsSet ( )
parentSet ( )

Method Details

__construct() public method

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

__get() public method

Returns user data value.
public __get ( $key ) : mixed
return mixed

__isset() public method

Is property defined?
public __isset ( $key ) : boolean
return boolean

__set() public method

Sets user data value.
public __set ( $key, $value ) : void
return void

getData() public method

Returns a user data.
public getData ( ) : array
return array

getId() public method

Returns the ID of user.
public getId ( ) : mixed
return mixed

getRoles() public method

Returns a list of roles that the user is a member of.
public getRoles ( ) : array
return array

setId() public method

Sets the ID of user.
public setId ( $id ) : self
return self

setRoles() public method

Sets a list of roles that the user is a member of.
public setRoles ( array $roles ) : self
$roles array
return self