class RecordLockPresenter (View source)

Decorates the zone editor's record rows with the display fields the template expects, and with whether each row may be edited.

A row is locked by the zone being read-only, by the caller's edit level, or by the NS-subzone rule; the policy itself stays in ZoneAccessPolicy.

Methods

static array
decorate(array $records, string $zoneName, string $permEdit, bool $permEditNsSubzone, bool $zoneIsReadOnly)

No description

Details

static array decorate(array $records, string $zoneName, string $permEdit, bool $permEditNsSubzone, bool $zoneIsReadOnly)

No description

Parameters

array $records

Rows as the display service produced them

string $zoneName
string $permEdit

The caller's edit level for this zone

bool $permEditNsSubzone

Whether the caller holds the NS-subzone grant

bool $zoneIsReadOnly

Return Value

array

The same rows, decorated