DropDownRequiredSanitizerUtil Class Reference

Inheritance diagram for DropDownRequiredSanitizerUtil:
RequiredSanitizerUtil SanitizerUtil

Public Member Functions

 sanitizeValue ($value)

Static Public Member Functions

static getLinkedMappingRuleType ()

Detailed Description

Sanitizer for resolving if an attribute is required or not and whether the value is present. Override to handle drop down type attributes specifically.

Definition at line 41 of file DropDownRequiredSanitizerUtil.php.

Member Function Documentation

static getLinkedMappingRuleType (  )  [static]
string - the type of linked mapping rule or null if none available. Some sanitizers and data analyzers need information from a mapping rule form in order to perform their job. This method returns the type of mapping rule form.

Reimplemented from RequiredSanitizerUtil.

Definition at line 43 of file DropDownRequiredSanitizerUtil.php.

sanitizeValue ( value  ) 

If the attribute specified is required and the value is null, attempt to utilize a default value if it is specified. If it is not specified or the default value specified is not a valid custom field data value, then an InvalidValueToSanitizeException will be thrown.

mixed $value
sanitized value

Reimplemented from RequiredSanitizerUtil.

Definition at line 56 of file DropDownRequiredSanitizerUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Nov 22 07:11:08 2019