KMP PHP API Reference

BestowalFieldAccessService
in package

Applies field-level authorization to protected bestowal data.

Table of Contents

Constants

ACTION_ACCESS_CROWN_FIELDS  : mixed = 'accessCrownFields'
ACTION_ACCESS_HERALD_NOTES  : mixed = 'accessHeraldNotes'
CROWN_MUTATION_FIELDS  : mixed = ['noble_notes', 'nobleNotes', 'reason_summary',...
HERALD_MUTATION_FIELDS  : mixed = ['herald_notes', 'heraldNotes']

Methods

accessFor()  : array{heraldNotes: bool, crownFields: bool}
deniedMutationFields()  : array<int, string>
Return protected submitted fields the identity is not allowed to mutate.
redact()  : array{heraldNotes: bool, crownFields: bool}
Remove protected fields and associations before rendering or serializing.
redactAgendaViewModel()  : array<string, mixed>
Redact protected bestowal data embedded in a court agenda view model.

Constants

CROWN_MUTATION_FIELDS

private mixed CROWN_MUTATION_FIELDS = ['noble_notes', 'nobleNotes', 'reason_summary', 'reasonSummary', 'link_recommendation_ids', 'unlink_recommendation_ids']

Methods

redactAgendaViewModel()

Redact protected bestowal data embedded in a court agenda view model.

public redactAgendaViewModel(array<string, mixed> $viewModel, KmpIdentityInterface $identity) : array<string, mixed>
Parameters
$viewModel : array<string, mixed>

Court agenda view model.

$identity : KmpIdentityInterface
Return values
array<string, mixed>
On this page

Search results