Copied!

PolicyDraft

PolicyDraft.php : 14
Abstract
Extends Policy

This class represents a policy value.

Properties

public $function read-only

Policy.php
public string $function

Name of the module function Or all functions with '*'

public $id read-only

Policy.php
public mixed $id

internal id of the policy

public $limitations read-only

Policy.php
public array<string|int, Limitation$limitations

an array of \Ibexa\Contracts\Core\Repository\Values\User\Limitation

public $module read-only

Policy.php
public string $module

Name of module, associated with the Policy

public $roleId read-only

Policy.php
public mixed $roleId

the role id this policy belongs to

protected $originalId

PolicyDraft.php : 22

Original policy ID the policy was created from.

protected int $originalId

Used when role status is Role::STATUS_DRAFT.

Methods

public__construct()

ValueObject.php : 31

Construct object optionally with a set of properties.

public __construct([array<string, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string, mixed> [] -

publicgetLimitations()

Policy.php : 59
public abstract getLimitations() : array<string|int, Limitation>

Return values

array<string|int, Limitation>

protectedgetProperties()

ValueObject.php : 54

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Tags
Serializerignore

()