GatheringWaiverClosuresTable
extends Table
in package
GatheringWaiverClosures Model
Tracks waiver collection status for gatherings. Supports two states:
- Ready to close: Event staff signals waivers are complete
- Closed: Waiver secretary reviews and confirms closure
Table of Contents
Properties
- $ClosedByMembers : MembersTable|BelongsTo
- $Gatherings : GatheringsTable|BelongsTo
- $ReadyToCloseByMembers : MembersTable|BelongsTo
Methods
- buildRules() : RulesChecker
- Returns a rules checker object that will be used for validating application integrity.
- getClosedGatheringIds() : array<string|int, int>
- Get closed gathering IDs, optionally filtered to a subset.
- getClosureForGathering() : GatheringWaiverClosure|null
- Get the closure record for a gathering.
- getReadyToCloseGatheringIds() : array<string|int, int>
- Get gathering IDs that are marked ready to close but not yet closed.
- initialize() : void
- Initialize method
- isGatheringClosed() : bool
- Check if waiver collection is closed for a gathering.
- isGatheringReadyToClose() : bool
- Check if gathering is marked ready to close.
- markReadyToClose() : GatheringWaiverClosure|false
- Mark a gathering as ready to close.
- unmarkReadyToClose() : bool
- Unmark a gathering as ready to close.
- validationDefault() : Validator
- Default validation rules.
Properties
$ClosedByMembers
public
MembersTable|BelongsTo
$ClosedByMembers
$Gatherings
public
GatheringsTable|BelongsTo
$Gatherings
$ReadyToCloseByMembers
public
MembersTable|BelongsTo
$ReadyToCloseByMembers
Methods
buildRules()
Returns a rules checker object that will be used for validating application integrity.
public
buildRules(RulesChecker $rules) : RulesChecker
Parameters
- $rules : RulesChecker
-
The rules object to be modified.
Return values
RulesCheckergetClosedGatheringIds()
Get closed gathering IDs, optionally filtered to a subset.
public
getClosedGatheringIds([array<string|int, int>|null $gatheringIds = null ]) : array<string|int, int>
Parameters
- $gatheringIds : array<string|int, int>|null = null
-
Optional list of gathering IDs to filter.
Return values
array<string|int, int>getClosureForGathering()
Get the closure record for a gathering.
public
getClosureForGathering(int $gatheringId) : GatheringWaiverClosure|null
Parameters
- $gatheringId : int
-
Gathering ID
Return values
GatheringWaiverClosure|nullgetReadyToCloseGatheringIds()
Get gathering IDs that are marked ready to close but not yet closed.
public
getReadyToCloseGatheringIds([array<string|int, int>|null $gatheringIds = null ]) : array<string|int, int>
Parameters
- $gatheringIds : array<string|int, int>|null = null
-
Optional list of gathering IDs to filter.
Return values
array<string|int, int>initialize()
Initialize method
public
initialize(array<string, mixed> $config) : void
Parameters
- $config : array<string, mixed>
-
The configuration for the Table.
isGatheringClosed()
Check if waiver collection is closed for a gathering.
public
isGatheringClosed(int $gatheringId) : bool
Parameters
- $gatheringId : int
-
Gathering ID
Return values
boolisGatheringReadyToClose()
Check if gathering is marked ready to close.
public
isGatheringReadyToClose(int $gatheringId) : bool
Parameters
- $gatheringId : int
-
Gathering ID
Return values
boolmarkReadyToClose()
Mark a gathering as ready to close.
public
markReadyToClose(int $gatheringId, int $memberId) : GatheringWaiverClosure|false
Parameters
- $gatheringId : int
-
Gathering ID
- $memberId : int
-
Member marking as ready
Return values
GatheringWaiverClosure|falseunmarkReadyToClose()
Unmark a gathering as ready to close.
public
unmarkReadyToClose(int $gatheringId) : bool
Parameters
- $gatheringId : int
-
Gathering ID
Return values
boolvalidationDefault()
Default validation rules.
public
validationDefault(Validator $validator) : Validator
Parameters
- $validator : Validator
-
Validator instance.