PHP Класс FluidTYPO3\Vhs\ViewHelpers\Security\AbstractSecurityViewHelper

Наследование: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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