Gathering
extends BaseEntity
in package
Gathering Entity
Represents an SCA gathering (tournament, practice, feast, etc.). Gatherings have activities and can require waivers.
Table of Contents
Properties
- $branch : Branch
- $branch_id : int
- $cancellation_reason : string|null
- $cancelled_at : DateTime|null
- $created : DateTime
- $created_by : int
- $creator : Member
- $description : string|null
- $end_date : DateTime
- $gathering_activities : array<string|int, GatheringActivity>
- $gathering_attendances : array<string|int, GatheringAttendance>
- $gathering_scheduled_activities : array<string|int, GatheringScheduledActivity>
- $gathering_staff : array<string|int, GatheringStaff>
- $gathering_type : GatheringType
- $gathering_type_id : int
- $gathering_waivers : array<string|int, GatheringWaiver>
- $id : int
- $latitude : float|null
- $location : string|null
- $longitude : float|null
- $modified : DateTime
- $name : string
- $public_page_enabled : bool
- $start_date : DateTime
- $timezone : string|null
- $_accessible : array<string, bool>
- Fields that can be mass assigned using newEntity() or patchEntity().
Methods
- getBranchId() : int|null
- Get the branch ID for authorization checks.
- _getDateRange() : string
- Virtual field for date range display
- _getIsCancelled() : bool
- Virtual field to check if gathering is cancelled
- _getIsMultiDay() : bool
- Virtual field to check if gathering is multi-day
Properties
$branch
public
Branch
$branch
$branch_id
public
int
$branch_id
$cancellation_reason
public
string|null
$cancellation_reason
$cancelled_at
public
DateTime|null
$cancelled_at
$created
public
DateTime
$created
$created_by
public
int
$created_by
$creator
public
Member
$creator
$description
public
string|null
$description
$end_date
public
DateTime
$end_date
$gathering_activities
public
array<string|int, GatheringActivity>
$gathering_activities
$gathering_attendances
public
array<string|int, GatheringAttendance>
$gathering_attendances
$gathering_scheduled_activities
public
array<string|int, GatheringScheduledActivity>
$gathering_scheduled_activities
$gathering_staff
public
array<string|int, GatheringStaff>
$gathering_staff
$gathering_type
public
GatheringType
$gathering_type
$gathering_type_id
public
int
$gathering_type_id
$gathering_waivers
public
array<string|int, GatheringWaiver>
$gathering_waivers
$id
public
int
$id
$latitude
public
float|null
$latitude
$location
public
string|null
$location
$longitude
public
float|null
$longitude
$modified
public
DateTime
$modified
$name
public
string
$name
$public_page_enabled
public
bool
$public_page_enabled
$start_date
public
DateTime
$start_date
$timezone
public
string|null
$timezone
$_accessible
Fields that can be mass assigned using newEntity() or patchEntity().
protected
array<string, bool>
$_accessible
= [
'branch_id' => true,
'gathering_type_id' => true,
'name' => true,
'description' => true,
'start_date' => true,
'end_date' => true,
'location' => true,
'timezone' => true,
'latitude' => true,
'longitude' => true,
'public_page_enabled' => true,
'cancelled_at' => true,
'cancellation_reason' => true,
'created_by' => true,
'created' => true,
'modified' => true,
'branch' => true,
'gathering_type' => true,
'creator' => true,
// Guard association; manage via controller actions
'gathering_activities' => false,
'gathering_attendances' => false,
'gathering_scheduled_activities' => false,
'gathering_staff' => false,
'gathering_waivers' => false,
]
Methods
getBranchId()
Get the branch ID for authorization checks.
public
getBranchId() : int|null
Child classes should override for complex branch relationships.
Return values
int|null —The branch ID, or null if no association
_getDateRange()
Virtual field for date range display
protected
_getDateRange() : string
Shows dates in the gathering's timezone for accurate representation of when the event occurs at its location.
Return values
string_getIsCancelled()
Virtual field to check if gathering is cancelled
protected
_getIsCancelled() : bool
Return values
bool_getIsMultiDay()
Virtual field to check if gathering is multi-day
protected
_getIsMultiDay() : bool
Compares dates in the gathering's timezone (not UTC) to accurately determine if the event spans multiple calendar days at its location.