PHP 트레잇 Sulu\Component\Security\Authorization\AccessControl\SecuredEntityRepositoryTrait

파일 보기 프로젝트 열기: sulu/sulu

보호된 메소드들

메소드 설명
addAccessControl ( Doctrine\ORM\QueryBuilder $queryBuilder, Sulu\Component\Security\Authentication\UserInterface $user, integer $permission, string $entityClass, string $entityAlias ) Adds joins and conditions to the QueryBuilder in order to only return entities the given user is allowed to see.

메소드 상세

addAccessControl() 보호된 메소드

Adds joins and conditions to the QueryBuilder in order to only return entities the given user is allowed to see.
protected addAccessControl ( Doctrine\ORM\QueryBuilder $queryBuilder, Sulu\Component\Security\Authentication\UserInterface $user, integer $permission, string $entityClass, string $entityAlias )
$queryBuilder Doctrine\ORM\QueryBuilder The instance of the QueryBuilder to adjust
$user Sulu\Component\Security\Authentication\UserInterface The user for which the access control is checked
$permission integer The permission mask for which is checked
$entityClass string The class of the entity of which the access control is checked
$entityAlias string The alias of the entity used in the query builder