Class WFSQLDateFormatter

Description

The SQL Date formatter converts between SQL date format and human-readable dates.

Default formatString is 'r', example: "Thu, 21 Dec 2000 16:01:07 +0200". IMPORTANT! Please be aware that some date formats are not reversible! that is, they can be shown human-readable, but not reversed into a valid time.

Located in /framework/widgets/WFFormatter.php (line 238)

WFObject
   |
   --WFFormatter
      |
      --WFBaseDateFormatter
         |
         --WFSQLDateFormatter
Method Summary
void stringForValue ( $value)
void valueForString ( $string,  &$error)
Variables
Methods
stringForValue (line 243)

Convert a SQL date/time string into a nicely formatted string.

void stringForValue ( $value)
  • $value

Redefinition of:
WFFormatter::stringForValue()
Retrieve a string for the passed in value.
valueForString (line 261)

Convert a string (hopefully looking like a date/time) into a SQL-compliant date string.

void valueForString ( $string,  &$error)
  • $string
  • &$error

Redefinition of:
WFFormatter::valueForString()
Retreive a value for the passed in string.

Inherited Methods

Inherited From WFBaseDateFormatter

WFBaseDateFormatter::__construct()
WFBaseDateFormatter::relativeDate()
WFBaseDateFormatter::replaceRelativeDates()
WFBaseDateFormatter::setFormatString()
WFBaseDateFormatter::setRelativeDateFormatString()

Inherited From WFFormatter

WFFormatter::__construct()
WFFormatter::editingStringForValue()
WFFormatter::stringForValue()
WFFormatter::valueForString()

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()

Documentation generated on Thu, 14 May 2009 16:20:02 -0400 by phpDocumentor 1.4.2