\JFormField
Abstract Form Field class for the Joomla Platform.
Synopsis
class JFormField
{
- // members
- protected $description;
- protected $hint;
- protected $autocomplete;
- protected $spellcheck;
- protected $autofocus;
- protected SimpleXMLElement $element;
- protected JForm $form;
- protected $formControl;
- protected $hidden;
- protected $translateLabel;
- protected $translateDescription;
- protected $translateHint;
- protected $id;
- protected $input;
- protected $label;
- protected $multiple;
- public $repeat;
- protected $pattern;
- protected $name;
- protected $fieldname;
- protected $group;
- protected $required;
- protected $disabled;
- protected $readonly;
- protected $type;
- protected $validate;
- protected $value;
- protected $default;
- protected $size;
- protected $class;
- protected $labelclass;
- protected $onchange;
- protected $onclick;
- protected $count;
- protected $generated_fieldname;
- // methods
- public void __construct()
- public mixed __get()
- public void __set()
- public JFormField setForm()
- public boolean setup()
- public void setValue()
- protected string getId()
- protected abstract string getInput()
- protected string getTitle()
- protected string getLabel()
- protected string getName()
- protected string getFieldName()
- public mixed getAttribute()
- public string getControlGroup()
Hierarchy
Extended by
- JFormFieldTos
- JFormFieldInspector
- JFormFieldModal_Foo
- FooFormFieldModal_Bar
- JFormFieldFoo
- FooFormFieldBar
- JFormFieldLanguage
- JFormFieldPrefix
- JFormFieldSample
- JFormFieldModal_Contact
- JFormFieldModal_Newsfeed
- JFormFieldNewsfeeds
- JFormFieldFilters
- JFormFieldPluginordering
- JFormFieldGroupParent
- JFormFieldModal_Category
- JFormFieldCategoryParent
- JFormFieldCategoryEdit
- JFormFieldModal_Article
- JFormFieldSearchFilter
- JFormFieldDirectories
- JFormFieldUserMessages
- JFormFieldMenuOrdering
- JFormFieldMenuParent
- JFormFieldMenutype
- JFormFieldClicks
- JFormFieldImpMade
- JFormFieldImpTotal
- JFormFieldBannerClient
- JFormFieldModulelayout
- JFormFieldCategory
- JFormFieldComponentlayout
- JFormFieldRules
- JFormFieldNote
- JFormFieldGroupedList
- JFormFieldPredefinedList
- JFormFieldTimezone
- JFormFieldSessionHandler
- JFormFieldHidden
- JFormFieldCacheHandler
- JFormFieldFile
- JFormFieldCheckboxes
- JFormFieldList
- JFormFieldNumber
- JFormFieldUsergroup
- JFormFieldRange
- JFormFieldCombo
- JFormFieldUrl
- JFormFieldInteger
- JFormFieldAccessLevel
- JFormFieldCheckbox
- JFormFieldDatabaseConnection
- JFormFieldRadio
- JFormFieldEMail
- JFormFieldPassword
- JFormFieldColor
- JFormFieldTextarea
- JFormFieldImageList
- JFormFieldSQL
- JFormFieldPlugins
- JFormFieldTel
- JFormFieldText
- JFormFieldMeter
- JFormFieldFileList
- JFormFieldFolderList
- JFormFieldRepeatable
- JFormFieldCalendar
- JFormFieldSpacer
- JFormFieldOrdering
- JFormFieldModuleOrder
- JFormFieldHeadertag
- JFormFieldContenttype
- JFormFieldUserActive
- JFormFieldMenuitem
- JFormFieldStatus
- JFormFieldHelpsite
- JFormFieldAuthor
- JFormFieldModuletag
- JFormFieldContentlanguage
- JFormFieldUserGroupList
- JFormFieldUserState
- JFormFieldModulePosition
- JFormFieldEditor
- JFormFieldCaptcha
- JFormFieldContenthistory
- JFormFieldTag
- JFormFieldMenu
- JFormFieldLimitbox
- JFormFieldRegistrationDateRange
- JFormFieldMedia
- JFormFieldUser
- JFormFieldChromeStyle
- JFormFieldTemplatestyle
- FOFFormFieldRules
- FOFFormFieldGroupedlist
- FOFFormFieldOrdering
- FOFFormFieldLanguage
- FOFFormFieldTimezone
- FOFFormFieldSessionhandler
- FOFFormFieldHidden
- FOFFormFieldCachehandler
- FOFFormFieldModel
- FOFFormFieldList
- FOFFormFieldImage
- FOFFormFieldSelectrow
- FOFFormFieldUrl
- FOFFormFieldActions
- FOFFormFieldInteger
- FOFFormFieldAccesslevel
- FOFFormFieldComponents
- FOFFormFieldCheckbox
- FOFFormFieldPublished
- FOFFormFieldRadio
- FOFFormFieldButton
- FOFFormFieldEditor
- FOFFormFieldEmail
- FOFFormFieldCaptcha
- FOFFormFieldPassword
- FOFFormFieldTextarea
- FOFFormFieldImagelist
- FOFFormFieldTag
- FOFFormFieldPlugins
- FOFFormFieldTel
- FOFFormFieldMedia
- FOFFormFieldText
- FOFFormFieldUser
- FOFFormFieldTitle
- FOFFormFieldCalendar
- FOFFormFieldSpacer
Members
protected
- $autocomplete
—
mixed
The autocomplete state for the form field. If 'off' element will not be automatically completed by browser. - $autofocus
—
boolean
The autofocus request for the form field. If true element will be automatically focused on document load. - $class
—
mixed
The class of the form field - $count
—
integer
The count value for generated name field - $default
—
mixed
The default value of the form field. - $description
—
string
The description text for the form field. Usually used in tooltips. - $disabled
—
boolean
The disabled state for the form field. If true then the field will be disabled and user can't interact with the field. - $element
—
SimpleXMLElement
The SimpleXMLElement object of the <field /> XML element that describes the form field. - $fieldname
—
string
The name of the field. - $form
—
JForm
The JForm object of the form attached to the form field. - $formControl
—
string
The form control prefix for field names from the JForm object attached to the form field. - $generated_fieldname
—
string
The string used for generated fields names - $group
—
string
The group of the field. - $hint
—
string
The hint text for the form field used to display hint inside the field. - $id
—
string
The document id for the form field. - $input
—
string
The input for the form field. - $label
—
string
The label for the form field. - $labelclass
—
mixed
The label's CSS class of the form field - $multiple
—
boolean
The multiple state for the form field. If true then multiple values are allowed for the field. Most often used for list field types. - $name
—
string
The name of the form field. - $onchange
—
string
The javascript onchange of the form field. - $onclick
—
string
The javascript onclick of the form field. - $pattern
—
string
The pattern (Reg Ex) of value of the form field. - $readonly
—
boolean
The readonly state for the form field. If true then the field will be readonly. - $required
—
boolean
The required state for the form field. If true then there must be a value for the field to be considered valid. - $size
—
integer
The size of the form field. - $spellcheck
—
boolean
The spellcheck state for the form field. - $translateDescription
—
boolean
True to translate the field description string. - $translateHint
—
boolean
True to translate the field hint string. - $translateLabel
—
boolean
True to translate the field label string. - $type
—
string
The form field type. - $validate
—
string
The validation method for the form field. This value will determine which method is used to validate the value for a field. - $value
—
mixed
The value of the form field.
public
- $repeat
—
mixed
Allows extensions to create repeat elements
Methods
protected
- getFieldName() — Method to get the field name used.
- getId() — Method to get the id used for the field input tag.
- getInput() — Method to get the field input markup.
- getLabel() — Method to get the field label markup.
- getName() — Method to get the name used for the field input tag.
- getTitle() — Method to get the field title.
public
- __construct() — Method to instantiate the form field object.
- __get() — Method to get certain otherwise inaccessible properties from the form field object.
- __set() — Method to set certain otherwise inaccessible properties of the form field object.
- getAttribute() — Method to get an attribute of the field
- getControlGroup() — Method to get a control group with label and input.
- setForm() — Method to attach a JForm object to the field.
- setValue() — Simple method to set the value
- setup() — Method to attach a JForm object to the field.