Field used to display/edit date and/or time.
This field it can be used to display and edit date and/or time values. It is quite complicated, since the date/time format differs from country to country.
The most important input is the datetime format. It is a string and it is very similar to the format passed to the strftime() function. It implements following conversion specifiers:
These characters are called parameters and upon format/edit thet are replaced by their values/edit boxes. Other characters in the string are kept intact.
The field provides several methods of the date editing (controlled by setting the editStyle property)
Since date/time format differs in each DB engine, the field requires that it is passed a query. This query is not used to query/modify database in any way, only it's date/time formatting/parsing functions are called. The query should be of the same class as is the query used to get/store date from the database. (It would be satisfactory to only pass class reference, but PHP cannot do this.)
INTERNAL NOTE: For internal purposes, the field passes datetime in an array, where keys are parameter letters (described above). Only the "YmdHMS" keys are considered, others are used only in zero/default values.
Located in /DBLDateTimeField.php (line 63)
DBLField | --DBLDateTimeField
Inherited from DBLField
DBLField::$addAsterixes
DBLField::$allowEmpty
DBLField::$computed
DBLField::$dbName
DBLField::$default
DBLField::$detailAttributes
DBLField::$detailPostfix
DBLField::$detailPrefix
DBLField::$editAttributes
DBLField::$editPostfix
DBLField::$editPrefix
DBLField::$filterAttributes
DBLField::$filterPostfix
DBLField::$filterPrefix
DBLField::$indexAttributes
DBLField::$indexPostfix
DBLField::$indexPrefix
DBLField::$lookupField
DBLField::$name
DBLField::$needsMultipart
DBLField::$noOrderByTitle
DBLField::$readOnly
DBLField::$referenceURL
DBLField::$titleHTML
DBLField::$titleTxt
DBLField::$widgetAttributes
Constructor.
Check value method is not implemented in this class, since checking value is tightly integrated with parsing the value in acceptValue().
Internal function - escape regular expression special characters.
Internal function - if the AM/PM was used and is set to PM, advance hours.
Internal function to format datetime using user specified format.
Does not detect "empty" time.
Internal function to convert value from database to user specified format.
Detects "empty" time correctly.
Internal function to convert month name to number.
Internal function - parse value from user specified to internal (array) format.
Internal function to set emptyDateTime and zeroDateTime properties.
Inherited From DBLField
DBLField::DBLField()
DBLField::acceptFilterValue()
DBLField::acceptValue()
DBLField::addCondition()
DBLField::checkValue()
DBLField::formatDetail()
DBLField::formatEdit()
DBLField::formatFilter()
DBLField::formatIndex()
DBLField::jsCheck()
DBLField::setTitle()
DBLField::splitValue()
Documentation generated on Mon, 6 Sep 2004 21:57:05 +0200 by phpDocumentor 1.2.3