Checkbox
class Checkbox implements FieldInterface, HasLabelsInterface
Traits
Methods
No description
No description
Generates key => value pairs to map database-saved keys to displayed labels for form fields
(e.g. in select dropdowns), if field has labels.
No description
Replaces all keys with the according labels in the property's value.
Returns whether the field is configured to use labels.
Parses the property's values string into an array with key => value pairs,
for example: "key1=label1;key2=label2" becomes ['key1' => 'label1', 'key2' => 'label2'].
No description
No description
No description
No description
Details
in
FieldTrait at line 164
static void
addSpecialValues(array $row, array $config)
No description
in
FieldTrait at line 137
static string
decorateSearchTableValue(xm_lookbook $mod, array $row, array $profiles, array $propertyConfig, array $userMeta)
No description
at line 27
static array|null
formatProperty(array $property, array $config)
No description
in
FieldTrait at line 42
static array
getAdditionalEditFDL(array $field, array $fdl)
No description
in
HasLabelsTrait at line 17
static array
getConfigFields()
Provides a default has_labels config option.
in
HasLabelsTrait at line 38
static array
getEditFDL(Controller $mod, array $field, Form $form, int $profileId, int $copyId, array $config)
Generates key => value pairs to map database-saved keys to displayed labels for form fields
(e.g. in select dropdowns), if field has labels.
at line 44
static string
getPropertySearchQuery(string $searchWord, array $alternatives, xm_lookbook_property $property)
No description
in
HasLabelsTrait at line 116
static string
getValueLabels(string|null $propertyConfig, string $propertyValues, string $propertyValue, string $glue = '; ')
Replaces all keys with the according labels in the property's value.
The key=value pairs are generated from all possible values of the property.
Handles also multiple values, e.g. for Checkbox.
in
HasLabelsTrait at line 70
static bool
hasLabels(string|null $propertyConfig)
Returns whether the field is configured to use labels.
The $propertyConfig string is parsed into an array and checked for the has_labels key.
in
HasLabelsTrait at line 85
static array
parseLabeledValues(string|null $propertyConfig, string $propertyValues)
Parses the property's values string into an array with key => value pairs,
for example: "key1=label1;key2=label2" becomes ['key1' => 'label1', 'key2' => 'label2'].
in
FieldTrait at line 175
static void
preparePropertyDisplay(xm_lookbook $mod, xm_lookbook_profile $profile, array $property, array $config)
No description
in
FieldTrait at line 111
static string|null
processConfigVariables(int $profileId, int $propertyId, string $fieldValue, int $copy, array $propertyConfig, string $profilePropertyConfig)
No description
at line 82
static bool
processSubmittedValue(xm_lookbook $mod, int $profileId, string $submittedValue, array $field, string $fieldName, int $copy, array $config, array $fieldErrors, array $propertyValues)
No description
at line 102
static void
shapeFieldSearchParams(array $fieldInput, string $fieldName, array $searchParams)
No description