FormField
|
+--DateTimeField
|
+--TimestampField
public class TimestampField
extends DateTimeField
Field Summary | |
---|---|
mixed | The date format used when displaying value of this date to the user. |
Fields inherited from FORMfields.fields.DateTimeField | |
---|---|
date, dateFormat, endDateTimeString, startDateTimeString, subFieldSeparator, subFieldValueSeparator, time |
Fields inherited from FORMfields.fields.FormField | |
---|---|
autoPropagate, data, disableEnterHandler, displayValuesOnNewLine, editable, enabled, endingString, enterTabHandler, enterTabs, error, extraHtml, fieldBelowLabel, formError, help, hidden, htmlify, id, isData, label, labelForId, multiValues, name, required, subFieldDisplayValueSeparator, subFieldSeparator, subFieldValueSeparator, subFields, subFieldsCannotBeEmpty, trimWhitespace, validators, value, valueIsHtml |
Constructor Summary | |
---|---|
TimestampField(string label) Creates a new TimestampField. |
|
__construct(string label) Creates a new TimestampField. |
Method Summary | |
---|---|
void | Sets the value of this field to the current date and time. |
Methods inherited from FORMfields.fields.DateTimeField | |
---|---|
getCurrentDateTime, getDisplayValue, getUnixTimestamp, isValid, setToCurrentDateTime, setValue |
public mixed $dateFormat = "Y-n-j g:i A"
The date format used when displaying value of this date to the user. See PHP's date function for all the supported formats.
public TimestampField(string label)
Creates a new TimestampField.
public __construct(string label)
Creates a new TimestampField.
public void getParameter()
Sets the value of this field to the current date and time.
TimestampField is hidden field that automatically captures the timestamp of when the user last submitted the form data.