DateTimeSanitizerUtil Class Reference

Inheritance diagram for DateTimeSanitizerUtil:
SanitizerUtil

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:
DateTimeParser

Definition at line 45 of file DateTimeSanitizerUtil.php.

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

Definition at line 55 of file DateTimeSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean $  rowBean  ) 
Parameters:
RedBean_OODBBean $rowBean

Reimplemented from SanitizerUtil.

Definition at line 63 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.

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

Reimplemented from SanitizerUtil.

Definition at line 81 of file DateTimeSanitizerUtil.php.

assertMappingRuleDataIsValid (  )  [protected]

Override as needed

Reimplemented from SanitizerUtil.

Definition at line 95 of file DateTimeSanitizerUtil.php.


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