PHP Класс Neos\Eel\Helper\SecurityHelper

Наследование: implements Neos\Eel\ProtectedContextAwareInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$securityContext Neos\Flow\Security\Context

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

Метод Описание
allowsCallOfMethod ( string $methodName ) : boolean All methods are considered safe
getAccount ( ) : Account | null Get the account of the first authenticated token.
hasRole ( string $roleIdentifier ) : boolean Returns TRUE, if at least one of the currently authenticated accounts holds a role with the given identifier, also recursively.

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

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

All methods are considered safe
public allowsCallOfMethod ( string $methodName ) : boolean
$methodName string
Результат boolean

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

Get the account of the first authenticated token.
public getAccount ( ) : Account | null
Результат Neos\Flow\Security\Account | null

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

Returns TRUE, if at least one of the currently authenticated accounts holds a role with the given identifier, also recursively.
public hasRole ( string $roleIdentifier ) : boolean
$roleIdentifier string The string representation of the role to search for
Результат boolean TRUE, if a role with the given string representation was found

Описание свойств

$securityContext защищенное свойство

protected Context,Neos\Flow\Security $securityContext
Результат Neos\Flow\Security\Context