PHP Класс FOS\UserBundle\Templating\Helper\SecurityHelper

Наследование: extends Symfony\Bundle\SecurityBundle\Templating\Helper\SecurityHelper
Показать файл Открыть проект

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

Метод Описание
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

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

getName() публичный метод

Returns the canonical name of this helper.
public getName ( ) : string
Результат string The canonical name

getUser() публичный метод

Returns the authenticated user, if any
public getUser ( ) : FOS\UserBundle\Model\User
Результат FOS\UserBundle\Model\User

isAnonymous() публичный метод

Tell whether or not the user is anonymous
public isAnonymous ( ) : boolean
Результат boolean

isAuthenticated() публичный метод

Tell whether or not a user is logged in
public isAuthenticated ( ) : boolean
Результат boolean

isUser() публичный метод

Tells whether the authenticated user is this user
public isUser ( User $user ) : boolean
$user FOS\UserBundle\Model\User
Результат boolean