PHP 클래스 eZ\Publish\Core\Limitation\SubtreeLimitationType

상속: extends AbstractPersistenceLimitationType, implements eZ\Publish\SPI\Limitation\Type
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
acceptValue ( eZ\Publish\API\Repository\Values\User\Limitation $limitationValue ) Accepts a Limitation value and checks for structural validity.
buildValue ( array $limitationValues ) : eZ\Publish\API\Repository\Values\User\Limitation Create the Limitation Value.
evaluate ( eZ\Publish\API\Repository\Values\User\Limitation $value, eZ\Publish\API\Repository\Values\User\UserReference $currentUser, eZ\Publish\API\Repository\Values\ValueObject $object, array $targets = null ) : boolean Evaluate permission against content & target(placement/parent/assignment).
getCriterion ( eZ\Publish\API\Repository\Values\User\Limitation $value, eZ\Publish\API\Repository\Values\User\UserReference $currentUser ) : eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface Returns Criterion for use in find() query.
validate ( eZ\Publish\API\Repository\Values\User\Limitation $limitationValue ) : eZ\Publish\SPI\FieldType\ValidationError[] Makes sure LimitationValue->limitationValues is valid according to valueSchema().
valueSchema ( ) : mixed[] | integer Returns info on valid $limitationValues.

보호된 메소드들

메소드 설명
evaluateForContentCreateStruct ( eZ\Publish\API\Repository\Values\User\Limitation $value, array $targets ) : boolean Evaluate permissions for ContentCreateStruct against LocationCreateStruct placements.

메소드 상세

acceptValue() 공개 메소드

Makes sure LimitationValue object and ->limitationValues is of correct type.
public acceptValue ( eZ\Publish\API\Repository\Values\User\Limitation $limitationValue )
$limitationValue eZ\Publish\API\Repository\Values\User\Limitation

buildValue() 공개 메소드

Create the Limitation Value.
public buildValue ( array $limitationValues ) : eZ\Publish\API\Repository\Values\User\Limitation
$limitationValues array
리턴 eZ\Publish\API\Repository\Values\User\Limitation

evaluate() 공개 메소드

Evaluate permission against content & target(placement/parent/assignment).
public evaluate ( eZ\Publish\API\Repository\Values\User\Limitation $value, eZ\Publish\API\Repository\Values\User\UserReference $currentUser, eZ\Publish\API\Repository\Values\ValueObject $object, array $targets = null ) : boolean
$value eZ\Publish\API\Repository\Values\User\Limitation
$currentUser eZ\Publish\API\Repository\Values\User\UserReference
$object eZ\Publish\API\Repository\Values\ValueObject
$targets array The context of the $object, like Location of Content, if null none where provided by caller
리턴 boolean

evaluateForContentCreateStruct() 보호된 메소드

Evaluate permissions for ContentCreateStruct against LocationCreateStruct placements.
protected evaluateForContentCreateStruct ( eZ\Publish\API\Repository\Values\User\Limitation $value, array $targets ) : boolean
$value eZ\Publish\API\Repository\Values\User\Limitation
$targets array
리턴 boolean

getCriterion() 공개 메소드

Returns Criterion for use in find() query.
public getCriterion ( eZ\Publish\API\Repository\Values\User\Limitation $value, eZ\Publish\API\Repository\Values\User\UserReference $currentUser ) : eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface
$value eZ\Publish\API\Repository\Values\User\Limitation
$currentUser eZ\Publish\API\Repository\Values\User\UserReference
리턴 eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface

validate() 공개 메소드

Make sure {@link acceptValue()} is checked first!
public validate ( eZ\Publish\API\Repository\Values\User\Limitation $limitationValue ) : eZ\Publish\SPI\FieldType\ValidationError[]
$limitationValue eZ\Publish\API\Repository\Values\User\Limitation
리턴 eZ\Publish\SPI\FieldType\ValidationError[]

valueSchema() 공개 메소드

Returns info on valid $limitationValues.
public valueSchema ( ) : mixed[] | integer
리턴 mixed[] | integer In case of array, a hash with key as valid limitations value and value as human readable name of that option, in case of int on of VALUE_SCHEMA_ constants.