KMP PHP API Reference

WarrantRosterApprovalContextRenderer
in package
implements ApprovalContextRendererInterface

Provides rich display context for warrant roster approvals shown in the unified approvals queue.

Table of Contents

Interfaces

ApprovalContextRendererInterface
Renders entity-aware context for the unified approvals UI.

Methods

canRender()  : bool
Whether this renderer can handle the given workflow instance.
render()  : ApprovalContext
Build an ApprovalContext for the given workflow instance.
buildEntityUrl()  : string|null
Build a URL to the warrant roster view.
getWarrantCount()  : int
Get the count of warrants in a roster.
loadCreatorName()  : string|null
Load creator SCA name by member ID.
loadRoster()  : WarrantRoster|null
Load the warrant roster entity.

Methods

buildEntityUrl()

Build a URL to the warrant roster view.

private buildEntityUrl(string|int|null $rosterId) : string|null
Parameters
$rosterId : string|int|null

Roster ID.

Return values
string|null

getWarrantCount()

Get the count of warrants in a roster.

private getWarrantCount(int|null $rosterId, string|null $rosterStatus) : int
Parameters
$rosterId : int|null

Roster ID.

$rosterStatus : string|null

Current roster status.

Return values
int

loadCreatorName()

Load creator SCA name by member ID.

private loadCreatorName(string|int|null $memberId) : string|null
Parameters
$memberId : string|int|null

Member ID.

Return values
string|null
On this page

Search results