Grouplist

Properties

membergroups

private array $membergroups

field

private array $field

key

private string $key

type

private string $type

Methods

__construct

public __construct(array $field, string $key, string $type): mixed

Parameters:

Parameter Type Description
$field array  
$key string  
$type string  

fetchData

Fetch data from the database to “cache”, or store in memory.

public fetchData(): array

This is useful when multiple fields of the same type are loaded and a static (unchanging) query is used to fetch data.

Return Value:

The fetched data.

setData

Store shared data from another field of the same type.

public setData(array $data): void

Parameters:

Parameter Type Description
$data array Data from another field of the same type.

beforeSave

Transform data before it is saved.

public beforeSave(mixed $val): string

Parameters:

Parameter Type Description
$val mixed The value from POST.

Return Value:

The value to save to the database.

__toString

public __toString(): string

Automatically generated on 2024-05-12