interface HasLabelsInterface

Interface HasLabelsInterface

Methods

static string
getValueLabels(string $propertyConfig, string $propertyValues, string $propertyValue, string $glue = '; ')

Replace all keys with the according labels in the property's value.

static bool
hasLabels(string $propertyConfig)

Return whether the field is configured to use labels.

static array
parseLabeledValues(string $propertyConfig, string $propertyValues)

Parse available field values into an array with key => value pairs.

Details

at line 34
static string getValueLabels(string $propertyConfig, string $propertyValues, string $propertyValue, string $glue = '; ')

Replace all keys with the according labels in the property's value.

Parameters

string $propertyConfig
string $propertyValues
string $propertyValue
string $glue

to concat the parsed values

Return Value

string

at line 16
static bool hasLabels(string $propertyConfig)

Return whether the field is configured to use labels.

Parameters

string $propertyConfig

Return Value

bool

at line 24
static array parseLabeledValues(string $propertyConfig, string $propertyValues)

Parse available field values into an array with key => value pairs.

Parameters

string $propertyConfig
string $propertyValues

Return Value

array