FlexFormFieldValues
class \
- Implements
- ContainerInterface, ArrayAccess
Represents a record's flex form field values.
Internal
not part of public API, as this needs to be streamlined and proven
Table of Contents
Interfaces
- ContainerInterface
- ArrayAccess
Properties
- $sheets : array
Methods
- __construct() : mixed
- get() : mixed
- getSheets() : array
- Getter to be used in fluid for accessing field values
- has() : bool
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- toArray() : array
- findSheetsContainingPropertyPath() : array<int, string>
- getFromSheet() : mixed
- hasMultipleSheets() : bool
- mergePropertyValues() : array
- Merges the values of a property path, which exists in multiple sheets, recursively.
- processId() : array
- resolveRecordPropertyClosure() : mixed
Properties
$sheets
protected
array
$sheets
Methods
__construct()
public
__construct(array $sheets) : mixed
Parameters
- $sheets : array
get()
public
get(string $id) : mixed
Parameters
- $id : string
getSheets()
Getter to be used in fluid for accessing field values
public
getSheets() : array
Return values
arrayhas()
public
has(string $id) : bool
Parameters
- $id : string
Return values
booloffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
toArray()
public
toArray() : array
Return values
arrayfindSheetsContainingPropertyPath()
protected
findSheetsContainingPropertyPath(string $propertyPath) : array<int, string>
Parameters
- $propertyPath : string
Return values
array<int, string>getFromSheet()
protected
getFromSheet(string $sheetName, string $propertyPath) : mixed
Parameters
- $sheetName : string
- $propertyPath : string
hasMultipleSheets()
protected
hasMultipleSheets() : bool
Return values
boolmergePropertyValues()
Merges the values of a property path, which exists in multiple sheets, recursively.
protected
mergePropertyValues(string $propertyPath, array $propertyValues) : array
This is only possible for groups of properties (non-empty associative arrays, created from dotted field names) whose properties are distinct. Any other value, e.g. a list or a single value, exists in more than one sheet and is therefore ambiguous.
Parameters
- $propertyPath : string
- $propertyValues : array
Return values
arrayprocessId()
protected
processId(string $id) : array
Parameters
- $id : string
Return values
arrayresolveRecordPropertyClosure()
protected
resolveRecordPropertyClosure(string $id, mixed $propertyValue) : mixed
Parameters
- $id : string
- $propertyValue : mixed