CaseEntryProperties
extends Model
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', 'sort_order']
$primaryKey
protected
mixed
$primaryKey
= 'id'
$table
protected
mixed
$table
= 'case_entry_properties'
Methods
valid_property()
Validate whether the given property ID(s) exist for the specified entry.
public
valid_property(int $entry_id, int|array<string|int, mixed>|null $property_id) : bool
Parameters
- $entry_id : int
-
The ID of the entry to check against.
- $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.