TrainingAssignmentEntryProperties
extends AssignmentEntryProperties
in package
Table of Contents
Properties
- $allowedFields : mixed
- $primaryKey : mixed
- $table : mixed
Methods
- valid_property() : bool
- Validate whether the given property ID(s) exist for the specified entry.
Properties
$allowedFields
protected
mixed
$allowedFields
= ['id', 'entry_id', 'content', 'placeholder', 'sort_order']
$primaryKey
protected
mixed
$primaryKey
= 'id'
$table
protected
mixed
$table
= 'training_assignment_entry_properties'
Methods
valid_property()
Validate whether the given property ID(s) exist for the specified entry.
public
valid_property(array<string|int, mixed> $entry, int|array<string|int, mixed>|null $property_id) : bool
Parameters
- $entry : array<string|int, mixed>
-
The entire entry data array
- $property_id : int|array<string|int, mixed>|null
-
The property ID or an array of IDs to validate.
Return values
bool —Returns true if all provided property IDs are valid, otherwise false.