PHP Класс eZ\Publish\Core\Limitation\ParentOwnerLimitationType

Наследование: extends AbstractPersistenceLimitationType, implements eZ\Publish\SPI\Limitation\Type
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

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

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.