FORMfields


FORMfields.fields.HeaderField

Class HeaderField

FormField
|
+--HeaderField

public class HeaderField
extends FormField

HeaderField is a field that displays a header or title section across the label and field columns of your form. This field is often used to split up a form into several different sections.

Since:
FORMfields v2.0

Field Summary
mixed

$data

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

HeaderField(string name, string label)

Creates a new HeaderField.

__construct(string name, string label)

Creates a new HeaderField.

Method Summary
string

getDisplayFieldTag(string cssClass, boolean displayHelp)

Returns the HTML used to draw the display field.

string

getEditableFieldTag()

Returns the HTML used to draw the edit field.

string

getFieldTag()

Returns the HTML to display this field.

Methods inherited from FORMfields.fields.FormField
addFieldValidator, addSubField, checkForBlank, clearValue, disable, formatRequestParameter, formatText, getButtonClicked, getData, getDbValue, getDisableFieldJs, getDisableJs, getDisableLabelJs, getDisplayFieldTag, getDisplayHtmlValue, getDisplayLabelTag, getDisplayValue, getEditable, getEditableFieldTag, getEditableLabelTag, getEnabled, getError, getExtraHtml, getFieldTag, getFormError, getHelp, getHelpTag, getHidden, getHiddenFieldTag, getId, getIsData, getIsHidden, getLabel, getLabelHtml, getLabelTag, getName, getOrNull, getParameter, getRawDbValue, getRequired, getValue, isBlank, isEmpty, isValid, setAutoPropagate, setData, setDbValue, setDisplayValuesOnNewLine, setEditable, setEnabled, setEndingString, setError, setExtraHtml, setFieldBelowLabel, setFormError, setHelp, setHidden, setHtmlify, setId, setIsData, setIsHidden, setLabel, setName, setRequired, setTrimWhitespace, setValue, setValueIsHtml, validate

Field Detail

data

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.

Since:
FORMfields v2.0

Constructor Detail

HeaderField

public HeaderField(string name, string label)

Creates a new HeaderField.

Parameters:
name - the name of the form field. This value must not be a SQL reserved word and should follow all the standard variable naming conventions in PHP.
label - this form field's label. The label is the printable text that is typically displayed on the left side of the field.
Since:
FORMfields v2.0
Deprecated:
deprecated as this constructor syntax is not expected in PHP 5 - will be removed once PHP 5 becomes a minimum requirement for FORMfields

__construct

public __construct(string name, string label)

Creates a new HeaderField.

Parameters:
name - the name of the form field. This value must not be a SQL reserved word and should follow all the standard variable naming conventions in PHP.
label - this form field's label. The label is the printable text that is typically displayed on the left side of the field.
Since:
FORMfields v2.0

Method Detail

getDisplayFieldTag

public string getDisplayFieldTag(string cssClass, boolean displayHelp)

Returns the HTML used to draw the display field.

Parameters:
cssClass - the CSS class name. Defaulted to "ffHeader1".
Returns:
the HTML used to draw the display field
Since:
FORMfields v2.0

getEditableFieldTag

public string getEditableFieldTag()

Returns the HTML used to draw the edit field.

Returns:
the HTML used to draw the edit field
Since:
FORMfields v2.0

getFieldTag

public string getFieldTag()

Returns the HTML to display this field.

Returns:
the HTML to display this field
Since:
FORMfields v1.0

FORMfields