Class

eZ\Publish\Core\Repository\Values\User\PolicyCreateStruct

class PolicyCreateStruct extends PolicyCreateStruct

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.

addLimitation(Limitation $limitation)

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

Details

at line 33
public Limitation[] getLimitations()

Returns list of limitations added to policy.

Return Value

Limitation[]

at line 43
public addLimitation(Limitation $limitation)

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

Parameters

Limitation $limitation