PHP Class FOS\UserBundle\Templating\Helper\SecurityHelper

Inheritance: extends Symfony\Bundle\SecurityBundle\Templating\Helper\SecurityHelper
Datei anzeigen Open project: KnpLabs/KnpUserBundle

Public Methods

Method Description
getName ( ) : string Returns the canonical name of this helper.
getUser ( ) : FOS\UserBundle\Model\User Returns the authenticated user, if any
isAnonymous ( ) : boolean Tell whether or not the user is anonymous
isAuthenticated ( ) : boolean Tell whether or not a user is logged in
isUser ( User $user ) : boolean Tells whether the authenticated user is this user

Method Details

getName() public method

Returns the canonical name of this helper.
public getName ( ) : string
return string The canonical name

getUser() public method

Returns the authenticated user, if any
public getUser ( ) : FOS\UserBundle\Model\User
return FOS\UserBundle\Model\User

isAnonymous() public method

Tell whether or not the user is anonymous
public isAnonymous ( ) : boolean
return boolean

isAuthenticated() public method

Tell whether or not a user is logged in
public isAuthenticated ( ) : boolean
return boolean

isUser() public method

Tells whether the authenticated user is this user
public isUser ( User $user ) : boolean
$user FOS\UserBundle\Model\User
return boolean