KMP PHP API Reference

AwardApprovalResolverService
in package
uses LocatorAwareTrait

Resolves branch-scoped approvers for award approval process steps.

Table of Contents

Methods

previewProcess()  : array<int, array<string, mixed>>
Preview every configured step for an award.
resolveApprovers()  : array<string|int, Member>
Resolve approver members for one step and award context.
resolveBranch()  : EntityInterface|null
Resolve the branch context for branch-scoped approver lookups.
findAncestorBranchByType()  : EntityInterface
Walk parent branches until a branch of the requested type is found.
resolveMemberApprover()  : array<string|int, Member>
Resolve an explicit member approver.
resolveOfficeApprovers()  : array<string|int, Member>
Resolve current office holders in the approval branch.
resolvePermissionApprovers()  : array<string|int, Member>
Resolve active members whose branch-scoped roles grant a permission.
resolveRoleApprovers()  : array<string|int, Member>
Resolve active members with a role in the approval branch.

Methods

findAncestorBranchByType()

Walk parent branches until a branch of the requested type is found.

protected findAncestorBranchByType(EntityInterface $branch, string $branchType) : EntityInterface
Parameters
$branch : EntityInterface

Starting branch

$branchType : string

Branch type

Return values
EntityInterface
On this page

Search results