SetMetadataField
class SetMetadataField extends MetadataFieldList
Represents a metadata field with 'Set' (multi-selection list) type.
Methods
No description
The SetMetadataField constructor.
Gets the keys for all the properties of this object.
Returns the type of this field.
Gets the default value of this field.
Sets the default value of this field.
Gets the ID of this field.
Sets the ID of the string (auto-generated if this is left blank).
Gets the label of this field.
Sets the label of this field.
Gets a boolean indicating whether this fields is currently mandatory.
Sets whether this field needs to be mandatory.
Gets the validation rules of this field.
Gets the restrictions of this field.
Sets the restrictions of this field.
Gets the value indicating whether the field should be disabled by default.
Sets the value indicating whether the field should be disabled by default.
Gets the data source of this field.
Details
jsonSerialize()
__construct(string $label, array|MetadataDataSource $dataSource = [])
The SetMetadataField constructor.
string[]
getPropertyKeys()
Gets the keys for all the properties of this object.
string
getType()
Returns the type of this field.
mixed
getDefaultValue()
Gets the default value of this field.
setDefaultValue(mixed $defaultValue)
Sets the default value of this field.
string
getExternalId()
Gets the ID of this field.
setExternalId(string $externalId)
Sets the ID of the string (auto-generated if this is left blank).
string
getLabel()
Gets the label of this field.
setLabel(string $label)
Sets the label of this field.
bool
getMandatory()
Gets a boolean indicating whether this fields is currently mandatory.
setMandatory(bool $mandatory = true)
Sets whether this field needs to be mandatory.
MetadataValidation
getValidation()
Gets the validation rules of this field.
setValidation(MetadataValidation $validation)
Sets the validation rules of this field.
array
getRestrictions()
Gets the restrictions of this field.
setRestrictions(array $restrictions)
Sets the restrictions of this field.
bool
isDefaultDisabled()
Gets the value indicating whether the field should be disabled by default.
setDefaultDisabled(bool $defaultDisabled = true)
Sets the value indicating whether the field should be disabled by default.
MetadataDataSource
getDataSource()
Gets the data source of this field.
setDataSource(array|MetadataDataSource $metadataDataSource)
Sets the data source for this field.