KMP PHP API Reference

GatheringStaff extends BaseEntity
in package

GatheringStaff Entity

Represents a staff member for a gathering. Staff can be stewards (who require contact info) or other roles. Staff can be linked to AMP member accounts or be generic SCA names.

Table of Contents

Properties

$branch_id  : int|null
$contact_notes  : string|null
$created  : DateTime
$created_by  : int|null
$deleted  : DateTime|null
$email  : string|null
$gathering  : Gathering
$gathering_id  : int
$id  : int
$is_steward  : bool
$member  : Member|null
$member_id  : int|null
$modified  : DateTime|null
$modified_by  : int|null
$phone  : string|null
$role  : string
$sca_name  : string|null
$show_on_public_page  : bool
$sort_order  : int
$_accessible  : array<string, bool>
Fields that can be mass assigned using newEntity() or patchEntity().

Methods

getBranchId()  : int|null
Get branch ID from associated gathering.
_getDisplayName()  : string
Virtual field to get display name
_getHasContactInfo()  : bool
Virtual field to check if contact info is provided

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, 'sca_name' => true, 'role' => true, 'is_steward' => true, 'show_on_public_page' => true, 'email' => true, 'phone' => true, 'contact_notes' => true, 'sort_order' => true, 'created' => true, 'modified' => true, 'created_by' => true, 'modified_by' => true, 'deleted' => true, 'gathering' => true, 'member' => true]

Methods

getBranchId()

Get branch ID from associated gathering.

public getBranchId() : int|null

Requires gathering association to be loaded.

Return values
int|null

The branch ID from gathering

_getDisplayName()

Virtual field to get display name

protected _getDisplayName() : string

Returns the member's SCA name if linked to a member, otherwise the sca_name field

Return values
string

_getHasContactInfo()

Virtual field to check if contact info is provided

protected _getHasContactInfo() : bool
Return values
bool

        
On this page

Search results