Method | Description | |
---|---|---|
__construct ( array $siteAccessList = [] ) | ||
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. |
Method | Description | |
---|---|---|
generateSiteAccessValue ( string $sa ) : string | Generates the SiteAccess value as CRC32. |
public acceptValue ( eZ\Publish\API\Repository\Values\User\Limitation $limitationValue ) | ||
$limitationValue | eZ\Publish\API\Repository\Values\User\Limitation |
public buildValue ( array $limitationValues ) : eZ\Publish\API\Repository\Values\User\Limitation | ||
$limitationValues | array | |
return | eZ\Publish\API\Repository\Values\User\Limitation |
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 |
return | boolean |
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 | |
return | eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface |
public validate ( eZ\Publish\API\Repository\Values\User\Limitation $limitationValue ) : eZ\Publish\SPI\FieldType\ValidationError[] | ||
$limitationValue | eZ\Publish\API\Repository\Values\User\Limitation | |
return | eZ\Publish\SPI\FieldType\ValidationError[] |
public valueSchema ( ) : mixed[] | integer | ||
return | 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. |