GatheringActivitiesTable
extends Table
in package
GatheringActivities Model
GatheringActivities are configuration/template objects that define types of activities (e.g., "Armored Combat", "Archery"). They can be reused across many gatherings.
Table of Contents
Properties
- $Gatherings : GatheringsTable|BelongsToMany
- $GatheringTypes : GatheringTypesTable|BelongsToMany
Methods
- buildRules() : RulesChecker
- Returns a rules checker object that will be used for validating application integrity.
- findOrCreate() : GatheringActivity
- get() : GatheringActivity
- initialize() : void
- Initialize method
- newEmptyEntity() : GatheringActivity
- newEntities() : array<string|int, GatheringActivity>
- newEntity() : GatheringActivity
- patchEntities() : array<string|int, GatheringActivity>
- patchEntity() : GatheringActivity
- save() : GatheringActivity|false
- saveOrFail() : GatheringActivity
- validationDefault() : Validator
- Default validation rules.
Properties
$Gatherings
public
GatheringsTable|BelongsToMany
$Gatherings
$GatheringTypes
public
GatheringTypesTable|BelongsToMany
$GatheringTypes
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
RulesCheckerfindOrCreate()
public
findOrCreate(mixed $search[, callable|null $callback = = 'null' ][, array<string|int, mixed> $options = = '[]' ]) : GatheringActivity
Parameters
- $search : mixed
- $callback : callable|null = = 'null'
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringActivityget()
public
get(mixed $primaryKey[, array<string|int, mixed>|string $finder = = '\'all\'' ][, CacheInterface|string|null $cache = = 'null' ][, Closure|string|null $cacheKey = = 'null' ], mixed ...$args) : GatheringActivity
Parameters
- $primaryKey : mixed
- $finder : array<string|int, mixed>|string = = '\'all\''
- $cache : CacheInterface|string|null = = 'null'
- $cacheKey : Closure|string|null = = 'null'
- $args : mixed
Return values
GatheringActivityinitialize()
Initialize method
public
initialize(array<string, mixed> $config) : void
Parameters
- $config : array<string, mixed>
-
The configuration for the Table.
newEmptyEntity()
public
newEmptyEntity() : GatheringActivity
Return values
GatheringActivitynewEntities()
public
newEntities(array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : array<string|int, GatheringActivity>
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
array<string|int, GatheringActivity>newEntity()
public
newEntity(array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : GatheringActivity
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringActivitypatchEntities()
public
patchEntities(iterable<string|int, mixed> $entities, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : array<string|int, GatheringActivity>
Parameters
- $entities : iterable<string|int, mixed>
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
array<string|int, GatheringActivity>patchEntity()
public
patchEntity(EntityInterface $entity, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : GatheringActivity
Parameters
- $entity : EntityInterface
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringActivitysave()
public
save(EntityInterface $entity[, array<string|int, mixed> $options = = '[]' ]) : GatheringActivity|false
Parameters
- $entity : EntityInterface
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringActivity|falsesaveOrFail()
public
saveOrFail(EntityInterface $entity[, array<string|int, mixed> $options = = '[]' ]) : GatheringActivity
Parameters
- $entity : EntityInterface
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringActivityvalidationDefault()
Default validation rules.
public
validationDefault(Validator $validator) : Validator
Parameters
- $validator : Validator
-
Validator instance.