PHP 클래스 eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter

상속: implements Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( eZ\Publish\API\Repository\Repository $repository )
supportsAttribute ( string $attribute ) : boolean Checks if the voter supports the given attribute.
supportsClass ( string $class ) : true Checks if the voter supports the given 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() 공개 메소드

Checks if the voter supports the given attribute.
public supportsAttribute ( string $attribute ) : boolean
$attribute string An attribute
리턴 boolean true if this Voter supports the attribute, false otherwise

supportsClass() 공개 메소드

Checks if the voter supports the given class.
public supportsClass ( string $class ) : true
$class string A class name
리턴 true if this Voter can process the class

vote() 공개 메소드

This method must return one of the following constants: ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN.
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