eZPublishCommunityProject  2013.4
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter:

Public Member Functions

 __construct (\Closure $lazyRepository)
 
 supportsAttribute ($attribute)
 Checks if the voter supports the given attribute. More...
 
 supportsClass ($class)
 Checks if the voter supports the given class. More...
 
 vote (TokenInterface $token, $object, array $attributes)
 Returns the vote for the given parameters. More...
 

Protected Member Functions

 getRepository ()
 

Private Attributes

 $lazyRepository
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter::__construct ( \Closure  $lazyRepository)

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter::getRepository ( )
protected
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter::supportsAttribute (   $attribute)

Checks if the voter supports the given attribute.

Parameters
string$attributeAn attribute
Returns
Boolean true if this Voter supports the attribute, false otherwise

Referenced by eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter\vote().

eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter::supportsClass (   $class)

Checks if the voter supports the given class.

Parameters
string$classA class name
Returns
true if this Voter can process the class
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter::vote ( TokenInterface  $token,
  $object,
array  $attributes 
)

Returns the vote for the given parameters.

This method must return one of the following constants: ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN.

Parameters
TokenInterface$tokenA TokenInterface instance
object$objectThe object to secure
array$attributesAn array of attributes associated with the method being invoked
Returns
integer either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\Security\Authorization\Voter\CoreVoter::$lazyRepository
private

The documentation for this class was generated from the following file: