DateTimeSanitizerUtil Class Reference

Inheritance diagram for DateTimeSanitizerUtil:

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 time type attributes.

Definition at line 40 of file DateTimeSanitizerUtil.php.

Member Function Documentation

static getAcceptableFormats (  )  [static]
See also:

Definition at line 45 of file DateTimeSanitizerUtil.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 59 of file DateTimeSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean $  rowBean  ) 
RedBean_OODBBean $rowBean

Reimplemented from SanitizerUtil.

Definition at line 67 of file DateTimeSanitizerUtil.php.

sanitizeValue ( value  ) 

Given a value, attempt to convert the value to a db datetime 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 85 of file DateTimeSanitizerUtil.php.

assertMappingRuleDataIsValid (  )  [protected]

Override as needed

Reimplemented from SanitizerUtil.

Definition at line 99 of file DateTimeSanitizerUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Nov 15 07:10:55 2019