GatheringScheduledActivity
extends Entity
in package
GatheringScheduledActivity Entity
Represents a scheduled activity within a gathering with specific start/end times.
Table of Contents
Properties
- $created : DateTime
- $created_by : int|null
- $creator : Member|null
- $description : string|null
- $display_title : string
- $end_datetime : DateTime|null
- $gathering : Gathering
- $gathering_activity : GatheringActivity|null
- $gathering_activity_id : int|null
- $gathering_id : int
- $has_end_time : bool
- $id : int
- $is_other : bool
- $modified : DateTime|null
- $modified_by : int|null
- $modifier : Member|null
- $pre_register : bool
- $start_datetime : DateTime
- $_accessible : array<string, bool>
- Fields that can be mass assigned using newEntity() or patchEntity().
Methods
- _getActivityName() : string
- Virtual field to get activity name (from linked activity or "Other")
- _getDateRange() : string
- Virtual field to get formatted date range
- _getDisplayDescription() : string|null
- Virtual field to get display description with fallback logic
- _getDurationHours() : float|null
- Virtual field to get duration in hours
Properties
$created
public
DateTime
$created
$created_by
public
int|null
$created_by
$creator
public
Member|null
$creator
$description
public
string|null
$description
$display_title
public
string
$display_title
$end_datetime
public
DateTime|null
$end_datetime
$gathering
public
Gathering
$gathering
$gathering_activity
public
GatheringActivity|null
$gathering_activity
$gathering_activity_id
public
int|null
$gathering_activity_id
$gathering_id
public
int
$gathering_id
$has_end_time
public
bool
$has_end_time
$id
public
int
$id
$is_other
public
bool
$is_other
$modified
public
DateTime|null
$modified
$modified_by
public
int|null
$modified_by
$modifier
public
Member|null
$modifier
$pre_register
public
bool
$pre_register
$start_datetime
public
DateTime
$start_datetime
$_accessible
Fields that can be mass assigned using newEntity() or patchEntity().
protected
array<string, bool>
$_accessible
= ['gathering_id' => true, 'gathering_activity_id' => true, 'start_datetime' => true, 'end_datetime' => true, 'has_end_time' => true, 'display_title' => true, 'description' => true, 'pre_register' => true, 'is_other' => true, 'created' => false, 'modified' => false, 'created_by' => true, 'modified_by' => true, 'gathering' => true, 'gathering_activity' => true, 'creator' => true, 'modifier' => true]
Note that when '' is set to true, this allows all unspecified fields to be mass assigned. For security purposes, it is advised to set '' to false (or remove it), and explicitly make individual fields accessible as needed.
Methods
_getActivityName()
Virtual field to get activity name (from linked activity or "Other")
protected
_getActivityName() : string
Return values
string_getDateRange()
Virtual field to get formatted date range
protected
_getDateRange() : string
Return values
string_getDisplayDescription()
Virtual field to get display description with fallback logic
protected
_getDisplayDescription() : string|null
Priority:
- Scheduled activity's description (if set)
- Gathering activity's custom description from junction table (if exists)
- Default gathering activity description (if exists)
Return values
string|null_getDurationHours()
Virtual field to get duration in hours
protected
_getDurationHours() : float|null