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)
$contact_notes
public
string|null
$contact_notes
$created
public
DateTime
$created
$created_by
public
int|null
$created_by
$deleted
public
DateTime|null
$deleted
public
string|null
$email
$gathering
public
Gathering
$gathering
$gathering_id
public
int
$gathering_id
$id
public
int
$id
$is_steward
public
bool
$is_steward
$member
public
Member|null
$member
$member_id
public
int|null
$member_id
$modified
public
DateTime|null
$modified
$modified_by
public
int|null
$modified_by
$phone
public
string|null
$phone
$role
public
string
$role
$sca_name
public
string|null
$sca_name
$show_on_public_page
public
bool
$show_on_public_page
$sort_order
public
int
$sort_order
$_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