Class

eZ\Publish\API\Repository\Values\User\PolicyCreateStruct

abstract class PolicyCreateStruct extends PolicyStruct

This class is used to create a policy.

Properties

string $module Name of module, associated with the Policy.
string $function Name of the module function Or all functions with '*'.

Methods

Limitation[] getLimitations()

Returns list of limitations added to policy.

from PolicyStruct
addLimitation(Limitation $limitation)

Adds a limitation with the given identifier and list of values.

from PolicyStruct

Details

in PolicyStruct at line 19
abstract public Limitation[] getLimitations()

Returns list of limitations added to policy.

Return Value

Limitation[]

in PolicyStruct at line 26
abstract public addLimitation(Limitation $limitation)

Adds a limitation with the given identifier and list of values.

Parameters

Limitation $limitation