PHP 클래스 FluidTYPO3\Vhs\ViewHelpers\Security\AbstractSecurityViewHelper

상속: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper
파일 보기 프로젝트 열기: fluidtypo3/vhs 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$frontendUserRepository TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository

공개 메소드들

메소드 설명
assertAdminLoggedIn ( ) : boolean Returns TRUE only if there is a current user logged in and this user is an admin class backend user
assertBackendUserGroupLoggedIn ( mixed $groups = null ) : boolean Returns TRUE only if a backend user is logged in and either has any group (if param left out) or is a member of the group $groups or a group in the array/CSV $groups
assertBackendUserLoggedIn ( integer $backendUser = null ) : boolean Returns TRUE only if a backend user is currently logged in. If used, argument specifies that the logged in user must be that specific user
assertFrontendUserGroupLoggedIn ( mixed $groups = null ) : boolean Returns TRUE if a FrontendUserGroup (specific given argument, else not) is logged in
assertFrontendUserLoggedIn ( TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser = null ) : boolean Returns TRUE only if a FrontendUser is currently logged in. Use argument to return TRUE only if the FrontendUser logged in must be that specific user.
assertFrontendUsersLoggedIn ( TYPO3\CMS\Extbase\Persistence\ObjectStorage $frontendUsers = null ) : boolean Returns TRUE only if currently logged in frontend user is in list.
evaluateArguments ( ) : boolean Returns TRUE if all conditions from arguments are satisfied. The type of evaluation (AND or OR) can be set using argument "evaluationType"
getCurrentBackendUser ( ) : array Returns a be_user record as lowerCamelCase indexed array if a BE user is currently logged in.
getCurrentFrontendUser ( ) : TYPO3\CMS\Extbase\Domain\Model\FrontendUser | null Gets the currently logged in Frontend User
initializeArguments ( ) : void
injectFrontendUserRepository ( TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository $frontendUserRepository ) : void

보호된 메소드들

메소드 설명
evaluateCondition ( array | null $arguments = null ) : boolean
isFrontendContext ( ) : boolean
renderThenChild ( ) : string Override: forcibly disables page caching - a TRUE condition in this ViewHelper means page content would be depending on the current visitor's session/cookie/auth etc.

메소드 상세

assertAdminLoggedIn() 공개 메소드

Returns TRUE only if there is a current user logged in and this user is an admin class backend user
public assertAdminLoggedIn ( ) : boolean
리턴 boolean

assertBackendUserGroupLoggedIn() 공개 메소드

Returns TRUE only if a backend user is logged in and either has any group (if param left out) or is a member of the group $groups or a group in the array/CSV $groups
public assertBackendUserGroupLoggedIn ( mixed $groups = null ) : boolean
$groups mixed Array of group uids or CSV of group uids or one group uid
리턴 boolean

assertBackendUserLoggedIn() 공개 메소드

Returns TRUE only if a backend user is currently logged in. If used, argument specifies that the logged in user must be that specific user
public assertBackendUserLoggedIn ( integer $backendUser = null ) : boolean
$backendUser integer
리턴 boolean

assertFrontendUserGroupLoggedIn() 공개 메소드

Returns TRUE if a FrontendUserGroup (specific given argument, else not) is logged in
public assertFrontendUserGroupLoggedIn ( mixed $groups = null ) : boolean
$groups mixed One \TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup or ObjectStorage containing same
리턴 boolean

assertFrontendUserLoggedIn() 공개 메소드

Returns TRUE only if a FrontendUser is currently logged in. Use argument to return TRUE only if the FrontendUser logged in must be that specific user.
public assertFrontendUserLoggedIn ( TYPO3\CMS\Extbase\Domain\Model\FrontendUser $frontendUser = null ) : boolean
$frontendUser TYPO3\CMS\Extbase\Domain\Model\FrontendUser
리턴 boolean

assertFrontendUsersLoggedIn() 공개 메소드

Returns TRUE only if currently logged in frontend user is in list.
public assertFrontendUsersLoggedIn ( TYPO3\CMS\Extbase\Persistence\ObjectStorage $frontendUsers = null ) : boolean
$frontendUsers TYPO3\CMS\Extbase\Persistence\ObjectStorage
리턴 boolean

evaluateArguments() 공개 메소드

Returns TRUE if all conditions from arguments are satisfied. The type of evaluation (AND or OR) can be set using argument "evaluationType"
public evaluateArguments ( ) : boolean
리턴 boolean

evaluateCondition() 보호된 정적인 메소드

protected static evaluateCondition ( array | null $arguments = null ) : boolean
$arguments array | null
리턴 boolean

getCurrentBackendUser() 공개 메소드

Returns a be_user record as lowerCamelCase indexed array if a BE user is currently logged in.
public getCurrentBackendUser ( ) : array
리턴 array

getCurrentFrontendUser() 공개 메소드

Gets the currently logged in Frontend User
public getCurrentFrontendUser ( ) : TYPO3\CMS\Extbase\Domain\Model\FrontendUser | null
리턴 TYPO3\CMS\Extbase\Domain\Model\FrontendUser | null

initializeArguments() 공개 메소드

public initializeArguments ( ) : void
리턴 void

injectFrontendUserRepository() 공개 메소드

public injectFrontendUserRepository ( TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository $frontendUserRepository ) : void
$frontendUserRepository TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository
리턴 void

isFrontendContext() 보호된 메소드

protected isFrontendContext ( ) : boolean
리턴 boolean

renderThenChild() 보호된 메소드

Returns value of "then" attribute. If then attribute is not set, iterates through child nodes and renders ThenViewHelper. If then attribute is not set and no ThenViewHelper and no ElseViewHelper is found, all child nodes are rendered
protected renderThenChild ( ) : string
리턴 string rendered ThenViewHelper or contents of if no ThenViewHelper was found

프로퍼티 상세

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

protected FrontendUserRepository,TYPO3\CMS\Extbase\Domain\Repository $frontendUserRepository
리턴 TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository