PHP Class eZ\Publish\Core\Repository\PermissionsCriterionHandler

显示文件 Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

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
return boolean | eZ\Publish\API\Repository\Values\Content\Query\Criterion

getPermissionsCriterion() public method

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
return boolean | eZ\Publish\API\Repository\Values\Content\Query\Criterion