FieldTrait
trait FieldTrait
Methods
static void
addSpecialValues(array $row, array $config)
No description
static string
decorateSearchTableValue(xm_lookbook $mod, array $row, array $profiles, array $propertyConfig, array $userMeta)
No description
static array|null
formatProperty(array $property, array $config)
Trims the property value from line breaks and empty spaces.
static array
getAdditionalEditFDL(array $field, array $fdl)
No description
static array
getConfigFields()
No description
static array
getEditFDL(Controller $mod, array $field, Form $form, int $profileId, int $copyId, array $config)
No description
static string
getPropertySearchQuery(string $searchWord, array $alternatives, xm_lookbook_property $property)
Puts the search word into the query by comparing with 'LIKE' syntax with lower case on both, the profile property value from the database and the search word.
static void
preparePropertyDisplay(xm_lookbook $mod, xm_lookbook_profile $profile, array $property, array $config)
No description
static string|null
processConfigVariables(int $profileId, int $propertyId, string $fieldValue, int $copy, array $propertyConfig, string $profilePropertyConfig)
No description
static bool
processSubmittedValue(xm_lookbook $mod, int $profileId, string $submittedValue, array $field, string $fieldName, int $copy, array $config, array $fieldErrors, array $propertyValues)
No description
static void
shapeFieldSearchParams(array $fieldInput, string $fieldName, array $searchParams)
No description
Details
at line 164
static void
addSpecialValues(array $row, array $config)
No description
at line 137
static string
decorateSearchTableValue(xm_lookbook $mod, array $row, array $profiles, array $propertyConfig, array $userMeta)
No description
at line 54
static array|null
formatProperty(array $property, array $config)
Trims the property value from line breaks and empty spaces.
at line 42
static array
getAdditionalEditFDL(array $field, array $fdl)
No description
at line 18
static array
getConfigFields()
No description
at line 32
static array
getEditFDL(Controller $mod, array $field, Form $form, int $profileId, int $copyId, array $config)
No description
at line 90
static string
getPropertySearchQuery(string $searchWord, array $alternatives, xm_lookbook_property $property)
Puts the search word into the query by comparing with 'LIKE' syntax with lower case on both, the profile property value from the database and the search word.
at line 175
static void
preparePropertyDisplay(xm_lookbook $mod, xm_lookbook_profile $profile, array $property, array $config)
No description
at line 111
static string|null
processConfigVariables(int $profileId, int $propertyId, string $fieldValue, int $copy, array $propertyConfig, string $profilePropertyConfig)
No description
at line 154
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 122
static void
shapeFieldSearchParams(array $fieldInput, string $fieldName, array $searchParams)
No description