PHP 클래스 FOS\UserBundle\Templating\Helper\SecurityHelper

상속: extends Symfony\Bundle\SecurityBundle\Templating\Helper\SecurityHelper
파일 보기 프로젝트 열기: KnpLabs/KnpUserBundle

공개 메소드들

메소드 설명
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