ModelIdRequiredSanitizerUtil Class Reference

Inheritance diagram for ModelIdRequiredSanitizerUtil:
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 attributes that are relation models specifically.

Definition at line 41 of file ModelIdRequiredSanitizerUtil.php.


Member Function Documentation

static getLinkedMappingRuleType (  )  [static]
Returns:
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 ModelIdRequiredSanitizerUtil.php.

sanitizeValue ( value  ) 

Resolves that the value is not null or the value is null and a valid default value is available for the model id. If not, then an InvalidValueToSanitizeException is thrown.

Parameters:
mixed $value
Returns:
mixed|sanitized
Exceptions:
InvalidValueToSanitizeException 
NotSupportedException 

Reimplemented from RequiredSanitizerUtil.

Definition at line 56 of file ModelIdRequiredSanitizerUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Nov 24 07:10:27 2017