JFormField: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
=={{JVer|11.1}} JFormField== | |||
===Description=== | |||
{{ | |||
=== | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
!Visibility | |||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
|[[JFormField::__construct | |public | ||
|[[API17:JFormField::__construct|__construct]] | |||
|Method to instantiate the form field object. | |Method to instantiate the form field object. | ||
|- | |- | ||
|[[JFormField::__get | |public | ||
|[[API17:JFormField::__get|__get]] | |||
|Method to get certain otherwise inaccessible properties from the form field object. | |Method to get certain otherwise inaccessible properties from the form field object. | ||
|- | |- | ||
|[[JFormField::setForm | |public | ||
|[[API17:JFormField::setForm|setForm]] | |||
|Method to attach a object to the field. | |Method to attach a object to the field. | ||
|- | |- | ||
|[[JFormField::setup | |public | ||
|[[API17:JFormField::setup|setup]] | |||
|Method to attach a object to the field. | |Method to attach a object to the field. | ||
|- | |- | ||
|[[JFormField::getFieldName | |protected | ||
|[[API17:JFormField::getFieldName|getFieldName]] | |||
|Method to get the field name used. | |Method to get the field name used. | ||
|- | |- | ||
|[[JFormField::getId | |protected | ||
|[[API17:JFormField::getId|getId]] | |||
|Method to get the id used for the field input tag. | |Method to get the id used for the field input tag. | ||
|- | |- | ||
|[[JFormField::getInput | |protected | ||
|[[API17:JFormField::getInput|getInput]] | |||
|Method to get the field input markup. | |Method to get the field input markup. | ||
|- | |- | ||
|[[JFormField::getLabel | |protected | ||
|[[API17:JFormField::getLabel|getLabel]] | |||
|Method to get the field label markup. | |Method to get the field label markup. | ||
|- | |- | ||
|[[JFormField::getName | |protected | ||
|[[API17:JFormField::getName|getName]] | |||
|Method to get the name used for the field input tag. | |Method to get the name used for the field input tag. | ||
|- | |- | ||
|[[JFormField::getTitle | |protected | ||
|[[API17:JFormField::getTitle|getTitle]] | |||
|Method to get the field title. | |Method to get the field title. | ||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/form/formfield.php | |||
* '''Extended by''' | |||
** [[API17:JFormFieldCalendar|JFormFieldCalendar]] | |||
** [[API17:JFormFieldCheckbox|JFormFieldCheckbox]] | |||
** [[API17:JFormFieldCheckboxes|JFormFieldCheckboxes]] | |||
** [[API17:JFormFieldComponentLayout|JFormFieldComponentLayout]] | |||
** [[API17:JFormFieldEditor|JFormFieldEditor]] | |||
** [[API17:JFormFieldEMail|JFormFieldEMail]] | |||
** [[API17:JFormFieldFile|JFormFieldFile]] | |||
** [[API17:JFormFieldGroupedList|JFormFieldGroupedList]] | |||
** [[API17:JFormFieldHidden|JFormFieldHidden]] | |||
** [[API17:JFormFieldList|JFormFieldList]] | |||
** [[API17:JFormFieldMedia|JFormFieldMedia]] | |||
** [[API17:JFormFieldModuleLayout|JFormFieldModuleLayout]] | |||
** [[API17:JFormFieldPassword|JFormFieldPassword]] | |||
** [[API17:JFormFieldRadio|JFormFieldRadio]] | |||
** [[API17:JFormFieldRules|JFormFieldRules]] | |||
** [[API17:JFormFieldSpacer|JFormFieldSpacer]] | |||
** [[API17:JFormFieldText|JFormFieldText]] | |||
** [[API17:JFormFieldTextarea|JFormFieldTextarea]] | |||
** [[API17:JFormFieldUser|JFormFieldUser]] | |||
** [[API17:JFormFieldUsergroup|JFormFieldUsergroup]] | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.form.formfield' );</source> | <source lang="php">jimport( 'joomla.form.formfield' );</source> | ||
===See also=== | ===See also=== | ||
* [[ | * {{JVer|11.1}} '''JFormField source code''' on [[jplatform:form/formfield.php|BitBucket]] | ||
{{ | * {{JVer|11.1}} Subpackage [[API17:Subpackage Form|Form]] | ||
* [[API17:JFormField|Other versions of JFormField]] | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFormField | category=JFormField | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude> | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:05, 25 March 2017
JFormField
Description
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __construct | Method to instantiate the form field object. |
| public | __get | Method to get certain otherwise inaccessible properties from the form field object. |
| public | setForm | Method to attach a object to the field. |
| public | setup | Method to attach a object to the field. |
| protected | getFieldName | Method to get the field name used. |
| protected | getId | Method to get the id used for the field input tag. |
| protected | getInput | Method to get the field input markup. |
| protected | getLabel | Method to get the field label markup. |
| protected | getName | Method to get the name used for the field input tag. |
| protected | getTitle | Method to get the field title. |
- Defined in libraries/joomla/form/formfield.php
- Extended by
- JFormFieldCalendar
- JFormFieldCheckbox
- JFormFieldCheckboxes
- JFormFieldComponentLayout
- JFormFieldEditor
- JFormFieldEMail
- JFormFieldFile
- JFormFieldGroupedList
- JFormFieldHidden
- JFormFieldList
- JFormFieldMedia
- JFormFieldModuleLayout
- JFormFieldPassword
- JFormFieldRadio
- JFormFieldRules
- JFormFieldSpacer
- JFormFieldText
- JFormFieldTextarea
- JFormFieldUser
- JFormFieldUsergroup
Importing
jimport( 'joomla.form.formfield' );
See also
JFormField source code on BitBucket
Subpackage Form- Other versions of JFormField
User contributed notes
Code Examples