KMP PHP API Reference

GatheringAttendance extends BaseEntity
in package

GatheringAttendance Entity

Represents a member's attendance record for a gathering, including sharing preferences and optional public notes.

Table of Contents

Properties

$branch_id  : int|null
$created  : DateTime
$created_by  : int|null
$creator  : Member
$deleted  : DateTime|null
$gathering  : Gathering
$gathering_id  : int
$id  : int
$is_public  : bool
$member  : Member
$member_id  : int
$modified  : DateTime|null
$modified_by  : int|null
$modifier  : Member
$public_note  : string|null
$share_with_crown  : bool
$share_with_hosting_group  : bool
$share_with_kingdom  : bool
$_accessible  : array<string, bool>
Fields that can be mass assigned using newEntity() or patchEntity().
$_virtual  : array<string|int, string>
Virtual fields

Methods

getBranchId()  : int|null
Get the branch ID for policy scoping
_getIsShared()  : bool
Virtual field to check if attendance is shared with anyone
_getSharingDescription()  : string
Virtual field to get sharing description

Properties

$branch_id

public int|null $branch_id

Associated branch ID (when applicable)

$_accessible

Fields that can be mass assigned using newEntity() or patchEntity().

protected array<string, bool> $_accessible = ['gathering_id' => true, 'member_id' => true, 'public_note' => true, 'share_with_kingdom' => true, 'share_with_hosting_group' => true, 'share_with_crown' => true, 'is_public' => true, 'created_by' => true, 'modified_by' => true, 'created' => true, 'modified' => true, 'deleted' => true, 'gathering' => true, 'member' => true, 'creator' => true, 'modifier' => true]

$_virtual

Virtual fields

protected array<string|int, string> $_virtual = ['is_shared', 'sharing_description']

Methods

getBranchId()

Get the branch ID for policy scoping

public getBranchId() : int|null

Returns the branch_id of the gathering this attendance is for. This is used by the BasePolicy for branch-based permission scoping.

The gathering's branch_id is used because attendance records should follow the same permission scoping as the gathering itself - if you can manage a gathering's branch, you can manage attendance for that gathering.

Return values
int|null

_getIsShared()

Virtual field to check if attendance is shared with anyone

protected _getIsShared() : bool
Return values
bool

_getSharingDescription()

Virtual field to get sharing description

protected _getSharingDescription() : string
Return values
string

        
On this page

Search results