Zend Framework  3.0
Public Member Functions | Protected Attributes | List of all members
Identity Class Reference

View helper plugin to fetch the authenticated identity. More...

Public Member Functions

 __invoke ()
 Retrieve the current identity, if any.
 
 setAuthenticationService (AuthenticationServiceInterface $authenticationService)
 Set AuthenticationService instance.
 
 getAuthenticationService ()
 Get AuthenticationService instance.
 
- Public Member Functions inherited from AbstractHelper
 setView (Renderer $view)
 Set the View object.
 
 getView ()
 Get the view object.
 

Protected Attributes

 $authenticationService
 
- Protected Attributes inherited from AbstractHelper
 $view = null
 

Detailed Description

View helper plugin to fetch the authenticated identity.

Member Function Documentation

__invoke ( )

Retrieve the current identity, if any.

If none available, returns null.

Exceptions
Exception\RuntimeException
Returns
mixed|null
getAuthenticationService ( )

Get AuthenticationService instance.

Returns
AuthenticationServiceInterface
setAuthenticationService ( AuthenticationServiceInterface  $authenticationService)

Set AuthenticationService instance.

Parameters
AuthenticationServiceInterface$authenticationService
Returns
Identity

Member Data Documentation

$authenticationService
protected