DateSanitizerUtil Class Reference

Inheritance diagram for DateSanitizerUtil:
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 type attributes.

Definition at line 40 of file DateSanitizerUtil.php.


Member Function Documentation

static getAcceptableFormats (  )  [static]
See also:
DateTimeParser

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

analyzeByRow ( RedBean_OODBBean $  rowBean  ) 
Parameters:
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.

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

Reimplemented from SanitizerUtil.

Definition at line 84 of file DateSanitizerUtil.php.

assertMappingRuleDataIsValid (  )  [protected]

Override as needed

Reimplemented from SanitizerUtil.

Definition at line 99 of file DateSanitizerUtil.php.


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