Class

eZ\Publish\Core\Repository\Values\User\PolicyUpdateStruct

class PolicyUpdateStruct extends PolicyUpdateStruct

This class is used for updating a policy.

The limitations of the policy are replaced with those which are added in instances of this class.

Methods

Limitation[] getLimitations()

Returns list of limitations added to policy.

addLimitation(Limitation $limitation)

Adds a limitation to the policy - if a Limitation exists with the same identifier the existing limitation is replaced.

Details

at line 34
public Limitation[] getLimitations()

Returns list of limitations added to policy.

Return Value

Limitation[]

at line 45
public addLimitation(Limitation $limitation)

Adds a limitation to the policy - if a Limitation exists with the same identifier the existing limitation is replaced.

Parameters

Limitation $limitation