PHP Класс eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\ValueObjectVoter

..).
Наследование: implements Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( eZ\Publish\API\Repository\Repository $repository )
supportsAttribute ( $attribute )
supportsClass ( $class )
vote ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, object $object, array $attributes ) : integer Returns the vote for the given parameters.

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

__construct() публичный Метод

public __construct ( eZ\Publish\API\Repository\Repository $repository )
$repository eZ\Publish\API\Repository\Repository

supportsAttribute() публичный Метод

public supportsAttribute ( $attribute )

supportsClass() публичный Метод

public supportsClass ( $class )

vote() публичный Метод

Checks if user has access to a given action on a given value object. $attributes->limitations is a hash that contains: - 'valueObject' - The ValueObject to check access on (eZ\Publish\API\Repository\Values\ValueObject). e.g. Location or Content. - 'targets' - The location, parent or "assignment" value object, or an array of the same. This method must return one of the following constants: ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN.
См. также: eZ\Publish\API\Repository\Repository::canUser()
public vote ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, object $object, array $attributes ) : integer
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface A TokenInterface instance
$object object The object to secure
$attributes array An array of attributes associated with the method being invoked
Результат integer either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED