JForm/getInput: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Method to get the input control for a field.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowik... |
m removing red link to edit, no existant pages |
||
| Line 3: | Line 3: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 58: | Line 58: | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[< | <nowiki>[<! removed edit link to red link >]</nowiki> | ||
</span> | </span> | ||
<! removed transcluded page call, red link never existed > | |||
===Examples=== | ===Examples=== | ||
| Line 73: | Line 73: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Revision as of 02:52, 14 May 2013
Description
Method to get the input control for a field.
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
getInput($name, $group= '_default', $formControl= '_default', $groupControl= '_default', $value=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $name | $name The field name. | |
| $group | '_default' | $group The group the field is in. |
| $formControl | '_default' | $formControl The optional form control. Set to false to disable. |
| $groupControl | '_default' | $groupControl The optional group control. Set to false to disable. |
| $value | null | $value The optional value to render as the default for the field. |
Returns
string The form field input control.
Defined in
libraries/joomla/form/form.php
Importing
jimport( 'joomla.form.form' );
Source Body
public function getInput($name, $group = '_default', $formControl = '_default', $groupControl = '_default', $value = null)
{
// Render the field input.
$field = $this->getField($name, $group, $formControl, $groupControl, $value);
$input = $field->input;
return $input;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />