PHP Class eZ\Publish\Core\Repository\Helper\LimitationService

Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$settings array

Public Methods

Method Description
__construct ( array $settings = [] )
getLimitationType ( string $identifier ) : eZ\Publish\SPI\Limitation\Type Returns the LimitationType registered with the given identifier.
validateLimitation ( eZ\Publish\API\Repository\Values\User\Limitation $limitation ) : ValidationError[] Validates single Limitation.
validateLimitations ( array $limitations ) : ValidationError[][] Validates an array of Limitations.

Method Details

__construct() public method

public __construct ( array $settings = [] )
$settings array

getLimitationType() public method

Returns the correct implementation of API Limitation value object based on provided identifier
public getLimitationType ( string $identifier ) : eZ\Publish\SPI\Limitation\Type
$identifier string
return eZ\Publish\SPI\Limitation\Type

validateLimitation() public method

Validates single Limitation.
public validateLimitation ( eZ\Publish\API\Repository\Values\User\Limitation $limitation ) : ValidationError[]
$limitation eZ\Publish\API\Repository\Values\User\Limitation
return eZ\Publish\Core\FieldType\ValidationError[]

validateLimitations() public method

Validates an array of Limitations.
public validateLimitations ( array $limitations ) : ValidationError[][]
$limitations array
return eZ\Publish\Core\FieldType\ValidationError[][]

Property Details

$settings protected property

protected array $settings
return array