FlexSheet
final readonly class \
FlexForms are always separated in sheets, "sDEF" being the default sheet if no sheets are defined.
Each sheet contains fields OR Section Containers (defined by
Table of Contents
Methods
- __construct() : mixed
- __set_state() : self
- getField() : FieldTypeInterface
- getFields() : FieldCollection
- getSections() : array
- hasField() : bool
Methods
__construct()
public
__construct(string $sheetIdentifier, string $title, string $description, FieldCollection $fields, array $sections) : mixed
Parameters
- $sheetIdentifier : string
- $title : string
- $description : string
- $fields : FieldCollection
- $sections : array
__set_state()
public
static __set_state(array $state) : self
Parameters
- $state : array
Return values
selfgetField()
public
getField(string $fieldName) : FieldTypeInterface
Parameters
- $fieldName : string
Return values
FieldTypeInterfacegetFields()
public
getFields() : FieldCollection
Return values
FieldCollectiongetSections()
public
getSections() : array
Return values
arrayhasField()
public
hasField(string $fieldName) : bool
Parameters
- $fieldName : string