DateSanitizerUtil Class Reference

Inheritance diagram for DateSanitizerUtil:

Public Member Functions

 analyzeByRow (RedBean_OODBBean $rowBean)
 sanitizeValue ($value)

Static Public Member Functions

static getAcceptableFormats ()
static getLinkedMappingRuleType ()

Protected Member Functions

 assertMappingRuleDataIsValid ()

Detailed Description

Sanitizer for date type attributes.

Definition at line 40 of file DateSanitizerUtil.php.

Member Function Documentation

static getAcceptableFormats (  )  [static]
See also:

Definition at line 45 of file DateSanitizerUtil.php.

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 SanitizerUtil.

Definition at line 58 of file DateSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean $  rowBean  ) 
RedBean_OODBBean $rowBean

Reimplemented from SanitizerUtil.

Definition at line 66 of file DateSanitizerUtil.php.

sanitizeValue ( value  ) 

Given a value, attempt to convert the value to a db date format based on the format provided. If the value does not convert properly, meaning the value is not really in the format specified, then a InvalidValueToSanitizeException will be thrown.

mixed $value
sanitized value

Reimplemented from SanitizerUtil.

Definition at line 84 of file DateSanitizerUtil.php.

assertMappingRuleDataIsValid (  )  [protected]

Override as needed

Reimplemented from SanitizerUtil.

Definition at line 102 of file DateSanitizerUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Nov 12 07:10:59 2019