PHP 클래스 eZ\Publish\Core\Repository\PermissionsCriterionHandler

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( eZ\Publish\API\Repository\PermissionResolver $permissionResolver, LimitationService $limitationService ) Constructor.
addPermissionsCriterion ( eZ\Publish\API\Repository\Values\Content\Query\Criterion &$criterion ) : boolean | eZ\Publish\API\Repository\Values\Content\Query\Criterion Adds content, read Permission criteria if needed and return false if no access at all.
getPermissionsCriterion ( string $module = 'content', string $function = 'read' ) : boolean | eZ\Publish\API\Repository\Values\Content\Query\Criterion Get content-read Permission criteria if needed and return false if no access at all.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( eZ\Publish\API\Repository\PermissionResolver $permissionResolver, LimitationService $limitationService )
$permissionResolver eZ\Publish\API\Repository\PermissionResolver
$limitationService eZ\Publish\Core\Repository\Helper\LimitationService

addPermissionsCriterion() 공개 메소드

Adds content, read Permission criteria if needed and return false if no access at all.
public addPermissionsCriterion ( eZ\Publish\API\Repository\Values\Content\Query\Criterion &$criterion ) : boolean | eZ\Publish\API\Repository\Values\Content\Query\Criterion
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
리턴 boolean | eZ\Publish\API\Repository\Values\Content\Query\Criterion

getPermissionsCriterion() 공개 메소드

Get content-read Permission criteria if needed and return false if no access at all.
public getPermissionsCriterion ( string $module = 'content', string $function = 'read' ) : boolean | eZ\Publish\API\Repository\Values\Content\Query\Criterion
$module string
$function string
리턴 boolean | eZ\Publish\API\Repository\Values\Content\Query\Criterion