KMP PHP API Reference

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

$_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:

  1. Scheduled activity's description (if set)
  2. Gathering activity's custom description from junction table (if exists)
  3. Default gathering activity description (if exists)
Return values
string|null

_getDurationHours()

Virtual field to get duration in hours

protected _getDurationHours() : float|null
Return values
float|null

        
On this page

Search results