GatheringStaffTable
extends Table
in package
GatheringStaff Model
Manages staff assignments for gatherings including stewards and other roles.
Table of Contents
Properties
- $Gatherings : GatheringsTable|BelongsTo
- $Members : MembersTable|BelongsTo
Methods
- beforeSave() : void
- Before save callback to populate contact info from member for new stewards
- buildRules() : RulesChecker
- Returns a rules checker object that will be used for validating application integrity.
- findOrCreate() : GatheringStaff
- findOtherStaff() : SelectQuery
- Find non-steward staff for a gathering
- findStewards() : SelectQuery
- Find stewards for a gathering
- get() : GatheringStaff
- initialize() : void
- Initialize method
- newEmptyEntity() : GatheringStaff
- newEntities() : array<string|int, GatheringStaff>
- newEntity() : GatheringStaff
- patchEntities() : array<string|int, GatheringStaff>
- patchEntity() : GatheringStaff
- save() : GatheringStaff|false
- saveOrFail() : GatheringStaff
- validationDefault() : Validator
- Default validation rules.
Properties
$Gatherings
public
GatheringsTable|BelongsTo
$Gatherings
$Members
public
MembersTable|BelongsTo
$Members
Methods
beforeSave()
Before save callback to populate contact info from member for new stewards
public
beforeSave(EventInterface $event, EntityInterface $entity, ArrayObject $options) : void
Parameters
- $event : EventInterface
-
Event object
- $entity : EntityInterface
-
Entity being saved
- $options : ArrayObject
-
Options
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
RulesCheckerfindOrCreate()
public
findOrCreate(mixed $search[, callable|null $callback = = 'null' ][, array<string|int, mixed> $options = = '[]' ]) : GatheringStaff
Parameters
- $search : mixed
- $callback : callable|null = = 'null'
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringStafffindOtherStaff()
Find non-steward staff for a gathering
public
findOtherStaff(SelectQuery $query, array<string|int, mixed> $options) : SelectQuery
Parameters
- $query : SelectQuery
-
Query object
- $options : array<string|int, mixed>
-
Options including gathering_id
Return values
SelectQueryfindStewards()
Find stewards for a gathering
public
findStewards(SelectQuery $query, array<string|int, mixed> $options) : SelectQuery
Parameters
- $query : SelectQuery
-
Query object
- $options : array<string|int, mixed>
-
Options including gathering_id
Return values
SelectQueryget()
public
get(mixed $primaryKey[, array<string|int, mixed>|string $finder = = '\'all\'' ][, CacheInterface|string|null $cache = = 'null' ][, Closure|string|null $cacheKey = = 'null' ], mixed ...$args) : GatheringStaff
Parameters
- $primaryKey : mixed
- $finder : array<string|int, mixed>|string = = '\'all\''
- $cache : CacheInterface|string|null = = 'null'
- $cacheKey : Closure|string|null = = 'null'
- $args : mixed
Return values
GatheringStaffinitialize()
Initialize method
public
initialize(array<string, mixed> $config) : void
Parameters
- $config : array<string, mixed>
-
The configuration for the Table.
newEmptyEntity()
public
newEmptyEntity() : GatheringStaff
Return values
GatheringStaffnewEntities()
public
newEntities(array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : array<string|int, GatheringStaff>
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
array<string|int, GatheringStaff>newEntity()
public
newEntity(array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : GatheringStaff
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringStaffpatchEntities()
public
patchEntities(iterable<string|int, mixed> $entities, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : array<string|int, GatheringStaff>
Parameters
- $entities : iterable<string|int, mixed>
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
array<string|int, GatheringStaff>patchEntity()
public
patchEntity(EntityInterface $entity, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : GatheringStaff
Parameters
- $entity : EntityInterface
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringStaffsave()
public
save(EntityInterface $entity[, array<string|int, mixed> $options = = '[]' ]) : GatheringStaff|false
Parameters
- $entity : EntityInterface
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringStaff|falsesaveOrFail()
public
saveOrFail(EntityInterface $entity[, array<string|int, mixed> $options = = '[]' ]) : GatheringStaff
Parameters
- $entity : EntityInterface
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringStaffvalidationDefault()
Default validation rules.
public
validationDefault(Validator $validator) : Validator
Parameters
- $validator : Validator
-
Validator instance.