CustomFieldsHelper
in package
AbstractYes
Table of Contents
Methods
- validate() : bool
- Checks whether the given array is valid custom field or not
- validateList() : bool
- Checks whether the given list is valid custom fields array or not
Methods
validate()
Checks whether the given array is valid custom field or not
public
static validate(array<string|int, mixed> $field) : bool
Parameters
- $field : array<string|int, mixed>
-
The field to be validated.
Return values
bool —Whether the field is valid or not.
validateList()
Checks whether the given list is valid custom fields array or not
public
static validateList([array<string|int, mixed> $list = [] ]) : bool
Parameters
- $list : array<string|int, mixed> = []
-
The list to be validated.
Return values
bool —Whether the list is valid or not.