PHP 클래스 FOS\UserBundle\Twig\UserExtension

상속: extends Twig_Extensio\Twig_Extension
파일 보기 프로젝트 열기: KnpLabs/KnpUserBundle

보호된 프로퍼티들

프로퍼티 타입 설명
$securityContext

공개 메소드들

메소드 설명
__construct ( SecurityContext $securityContext )
getFunctions ( ) : array Returns a list of global functions to add to the existing list.
getName ( ) : string Returns the name of the extension.
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

메소드 상세

__construct() 공개 메소드

public __construct ( SecurityContext $securityContext )
$securityContext Symfony\Component\Security\Core\SecurityContext

getFunctions() 공개 메소드

Returns a list of global functions to add to the existing list.
public getFunctions ( ) : array
리턴 array An array of global functions

getName() 공개 메소드

Returns the name of the extension.
public getName ( ) : string
리턴 string The extension 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 User
리턴 boolean

프로퍼티 상세

$securityContext 보호되어 있는 프로퍼티

protected $securityContext