KMP PHP API Reference

ActivityAwardsCell extends Cell
in package

Displays awards that can be given during a specific gathering activity.

Shows the reverse relationship of the Activities tab on Award views, allowing administrators to see and manage award-activity associations.

Tags
see
AwardsViewCellProvider

View cell registration

see

/docs/5.2.17-awards-services.md Full documentation

Table of Contents

Methods

display()  : mixed
Prepare and expose awards data related to a gathering activity for the view.

Methods

display()

Prepare and expose awards data related to a gathering activity for the view.

public display(int $activityId) : mixed

Loads the gathering activity, enforces view/edit permissions, fetches awards associated with the activity (including domain, level, and branch relationships), and computes a list of awards not yet associated for addition when the user can edit.

Exposes template variables: gatheringActivity, awards, canEdit, and availableAwards.

Parameters
$activityId : int

The ID of the gathering activity.


        
On this page

Search results