FormField
|
+--DescriptionField
public class DescriptionField
extends FormField
Field Summary | |
---|---|
mixed | False since this field should not be considered data and the field value should not be read from a database and written to a database. |
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 | |
---|---|
DescriptionField(string name, string label) Creates new DescriptionField. |
|
__construct(string name, string label) Creates new DescriptionField. |
Method Summary | |
---|---|
string | getDisplayFieldTag(boolean displayHelp) Returns the HTML used to draw the display field. |
string | Returns the HTML used to draw the edit field. |
string | Returns the HTML to display this field. |
public mixed $data = false
False since this field should not be considered data and the field value should not be read from a database and written to a database.
public DescriptionField(string name, string label)
Creates new DescriptionField.
public __construct(string name, string label)
Creates new DescriptionField.
public string getDisplayFieldTag(boolean displayHelp)
Returns the HTML used to draw the display field.
public string getEditableFieldTag()
Returns the HTML used to draw the edit field.
public string getFieldTag()
Returns the HTML to display this field.
DescriptionField is a field that prints any HTML description and spans both the label and field value columns. This field is often used to provide instructions on how to complete a certain section of the form.