RecommendationUiModeService
in package
Derives recommendation edit-form UI rules from explicit application modes.
This service is intentionally UI-only. Workflow approvals, bestowal routing, and legacy state transitions continue to use their existing services.
Table of Contents
Constants
- MODE_BESTOWAL_GIVEN : mixed = 'bestowal_given'
- MODE_BESTOWAL_SCHEDULING : mixed = 'bestowal_scheduling'
- MODE_EDITABLE : mixed = 'editable_recommendation'
- MODE_LINKED_BESTOWAL : mixed = 'linked_bestowal'
- MODE_NO_ACTION : mixed = 'no_action_close'
Methods
- buildStateRules() : array<string, array<string, array<int, string>>>
- modeForRecommendation() : string
- modeForState() : string
- rulesForState() : array<string, array<int, string>>
Constants
MODE_BESTOWAL_GIVEN
public
mixed
MODE_BESTOWAL_GIVEN
= 'bestowal_given'
MODE_BESTOWAL_SCHEDULING
public
mixed
MODE_BESTOWAL_SCHEDULING
= 'bestowal_scheduling'
MODE_EDITABLE
public
mixed
MODE_EDITABLE
= 'editable_recommendation'
MODE_LINKED_BESTOWAL
public
mixed
MODE_LINKED_BESTOWAL
= 'linked_bestowal'
MODE_NO_ACTION
public
mixed
MODE_NO_ACTION
= 'no_action_close'
Methods
buildStateRules()
public
buildStateRules() : array<string, array<string, array<int, string>>>
Return values
array<string, array<string, array<int, string>>>modeForRecommendation()
public
modeForRecommendation(Recommendation $recommendation) : string
Parameters
- $recommendation : Recommendation
-
Recommendation.
Return values
string —UI mode.
modeForState()
public
modeForState(string $state) : string
Parameters
- $state : string
-
Recommendation state.
Return values
string —UI mode.
rulesForState()
private
rulesForState(string $state) : array<string, array<int, string>>
Parameters
- $state : string
-
Recommendation state.