FormField
|
+--DropDownField
|
+--MonthField
public class MonthField
extends DropDownField
Field Summary | |
---|---|
mixed | An array of numeric months: 1-12. |
mixed | An array of month strings determined by the dateFormat. |
Fields inherited from FORMfields.fields.DropDownField | |
---|---|
OR_STRING_MAX_SIZE, blankString, fieldEnabled, height, includeNewChoice, newChoice, options, subFieldsCannotBeEmpty, values |
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 | |
---|---|
MonthField(string name, string label, int required, string blankString, string dateFormat, int startMonth, int endMonth) Creates a new MonthField. |
|
__construct(string name, string label, int required, string blankString, string dateFormat, int startMonth, int endMonth) Creates a new MonthField. |
Method Summary | |
---|---|
string | Returns the month name. |
Methods inherited from FORMfields.fields.DropDownField | |
---|---|
getEditableFieldTag, getParameter, setValue |
public mixed $ENUM_MONTHS = null
An array of numeric months: 1-12.
public mixed $ENUM_MONTH_NAMES = null
An array of month strings determined by the dateFormat.
public MonthField(string name, string label, int required, string blankString, string dateFormat, int startMonth, int endMonth)
Creates a new MonthField. Populates ENUM_MONTHS and ENUM_MONTH_NAMES based on the startMonth and endMonth.
public string getDisplayValue()
Returns the month name.
MonthField is a drop down field of months.