KMP PHP API Reference

RecommendationUpdateService
in package
uses RecommendationMutationSupportTrait

Table of Contents

Properties

$approvalLifecycleService  : RecommendationApprovalWorkflowLifecycleService

Methods

__construct()  : mixed
update()  : array<string, mixed>
applyCourtPreferenceDefaults()  : void
Apply legacy fallback defaults for court-preference fields.
buildOutputData()  : array<string, mixed>
detectAwardWorkflowChange()  : array{requiresConfirmation: bool, currentApprovalProcessId: ?int, newApprovalProcessId: ?int}
extractGatheringIds()  : array<string|int, int>
formatGivenDate()  : string|null
Format stored "given" timestamps back to a stable UTC date-only value.
hydrateMemberDefaults()  : void
Hydrate branch and court-preference defaults from the selected member.
initializeSubmissionState()  : void
Apply the legacy initial status/state pair used by recommendation submission.
normalizeCheckboxValue()  : bool
Normalize checkbox-style request values to booleans.
normalizeOptionalInteger()  : int|null
Convert positive numeric form values to integers.
normalizeSpecialty()  : void
Convert the placeholder specialty option into a null database value.
resolveMemberPublicId()  : array{success: bool, data: array, errorCode: ?string, message: ?string}

Properties

Methods

detectAwardWorkflowChange()

private detectAwardWorkflowChange(RecommendationsTable $recommendationsTable, Recommendation $recommendation, array<string, mixed> $workingData) : array{requiresConfirmation: bool, currentApprovalProcessId: ?int, newApprovalProcessId: ?int}
Parameters
$recommendationsTable : RecommendationsTable
$recommendation : Recommendation
$workingData : array<string, mixed>
Return values
array{requiresConfirmation: bool, currentApprovalProcessId: ?int, newApprovalProcessId: ?int}

formatGivenDate()

Format stored "given" timestamps back to a stable UTC date-only value.

private formatGivenDate(DateTimeInterface|null $given) : string|null
Parameters
$given : DateTimeInterface|null

Stored given timestamp.

Return values
string|null

normalizeCheckboxValue()

Normalize checkbox-style request values to booleans.

private normalizeCheckboxValue(mixed $value) : bool
Parameters
$value : mixed

Request value to normalize.

Return values
bool

normalizeOptionalInteger()

Convert positive numeric form values to integers.

private normalizeOptionalInteger(mixed $value) : int|null
Parameters
$value : mixed
Return values
int|null

resolveMemberPublicId()

private resolveMemberPublicId(RecommendationsTable $recommendationsTable, array<string, mixed> $data) : array{success: bool, data: array, errorCode: ?string, message: ?string}
Parameters
$recommendationsTable : RecommendationsTable
$data : array<string, mixed>
Return values
array{success: bool, data: array, errorCode: ?string, message: ?string}
On this page

Search results