FormField
|
+--TimeField
|
+--TwentyFourHourTimeField
public class TwentyFourHourTimeField
extends TimeField
Field Summary | |
---|---|
mixed | The date format used when displaying the time to the user. |
mixed | $subFieldDisplayValueSeparator The string used to separate parts of the display value. |
mixed | The string used to separate parts of the field. |
Fields inherited from FORMfields.fields.TimeField | |
---|---|
amPm, dateFormat, endTimeString, hour, min, startTimeString |
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 | |
---|---|
TwentyFourHourTimeField(string name, string label, int required, mixed startTimeString, mixed endTimeString, string the) Creates a new TwentyFourHourTimeField. |
|
__construct(string name, string label, int required, mixed startTimeString, mixed endTimeString, string the) Creates a new TwentyFourHourTimeField. |
Method Summary | |
---|---|
void | Returns the 24 hour value of this field's time value. |
string | Returns the HTML used to display the input portion of this field. |
string | getValue() Returns the value of this form field in the form "H:M" |
void | setTime(array date) Sets this field's value according to the date array returned by PHP's getdate() function. |
Methods inherited from FORMfields.fields.TimeField | |
---|---|
get24Hour, getCurrentTime, getDisplayValue, getEditableFieldTag, getUnixTimestamp, getValue, isValid, setTime, setToCurrentTime, setValue |
public mixed $dateFormat = "G:i"
The date format used when displaying the time to the user. See PHP's date function for all the supported formats.
public mixed $subFieldDisplayValueSeparator = ":"
The string used to separate parts of the display value.
public mixed $subFieldSeparator = " : "
The string used to separate parts of the field.
public TwentyFourHourTimeField(string name, string label, int required, mixed startTimeString, mixed endTimeString, string the)
Creates a new TwentyFourHourTimeField.
public void get24Hour()
Returns the 24 hour value of this field's time value.
public string getEditableFieldTag()
Returns the HTML used to display the input portion of this field.
public string getValue()
Returns the value of this form field in the form "H:M"
public void setTime(array date)
Sets this field's value according to the date array returned by PHP's getdate() function.
TimeField a field for 12 hour time.