Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
generateSiteAccessValue ( string $sa ) : string | Generates the SiteAccess value as CRC32. |
public __construct ( array $siteAccessList = [] ) | ||
$siteAccessList | array |
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 | |
Результат | 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 |
Результат | 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 | |
Результат | 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 | |
Результат | eZ\Publish\SPI\FieldType\ValidationError[] |
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. |