KMP PHP API Reference

GatheringTypesTable extends Table
in package

GatheringTypes Model

Table of Contents

Properties

$GatheringActivities  : GatheringActivitiesTable|BelongsToMany
$Gatherings  : GatheringsTable|HasMany

Methods

buildRules()  : RulesChecker
Returns a rules checker object that will be used for validating application integrity.
findOrCreate()  : GatheringType
get()  : GatheringType
initialize()  : void
Initialize method
newEmptyEntity()  : GatheringType
newEntities()  : array<string|int, GatheringType>
newEntity()  : GatheringType
patchEntities()  : array<string|int, GatheringType>
patchEntity()  : GatheringType
save()  : GatheringType|false
saveOrFail()  : GatheringType
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 = = '[]' ]) : GatheringType
Parameters
$search : mixed
$callback : callable|null = = 'null'
$options : array<string|int, mixed> = = '[]'
Return values
GatheringType

get()

public get(mixed $primaryKey[, array<string|int, mixed>|string $finder = = '\'all\'' ][, CacheInterface|string|null $cache = = 'null' ][, Closure|string|null $cacheKey = = 'null' ], mixed ...$args) : GatheringType
Parameters
$primaryKey : mixed
$finder : array<string|int, mixed>|string = = '\'all\''
$cache : CacheInterface|string|null = = 'null'
$cacheKey : Closure|string|null = = 'null'
$args : mixed
Return values
GatheringType

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, GatheringType>
Parameters
$data : array<string|int, mixed>
$options : array<string|int, mixed> = = '[]'
Return values
array<string|int, GatheringType>

newEntity()

public newEntity(array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : GatheringType
Parameters
$data : array<string|int, mixed>
$options : array<string|int, mixed> = = '[]'
Return values
GatheringType

patchEntities()

public patchEntities(iterable<string|int, mixed> $entities, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : array<string|int, GatheringType>
Parameters
$entities : iterable<string|int, mixed>
$data : array<string|int, mixed>
$options : array<string|int, mixed> = = '[]'
Return values
array<string|int, GatheringType>

patchEntity()

public patchEntity(EntityInterface $entity, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : GatheringType
Parameters
$entity : EntityInterface
$data : array<string|int, mixed>
$options : array<string|int, mixed> = = '[]'
Return values
GatheringType

save()

public save(EntityInterface $entity[, array<string|int, mixed> $options = = '[]' ]) : GatheringType|false
Parameters
$entity : EntityInterface
$options : array<string|int, mixed> = = '[]'
Return values
GatheringType|false

saveOrFail()

public saveOrFail(EntityInterface $entity[, array<string|int, mixed> $options = = '[]' ]) : GatheringType
Parameters
$entity : EntityInterface
$options : array<string|int, mixed> = = '[]'
Return values
GatheringType

validationDefault()

Default validation rules.

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

Validator instance.

Return values
Validator

        
On this page

Search results