KMP PHP API Reference

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

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
RulesChecker

findOrCreate()

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
GatheringActivity

get()

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
GatheringActivity

initialize()

Initialize method

public initialize(array<string, mixed> $config) : void
Parameters
$config : array<string, mixed>

The configuration for the Table.

newEntities()

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>

patchEntities()

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
GatheringActivity

validationDefault()

Default validation rules.

public validationDefault(Validator $validator) : Validator
Parameters
$validator : Validator

Validator instance.

Return values
Validator

        
On this page

Search results