JFormField/ construct: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Method to instantiate the form field.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowi... |
m preparing for archive only |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
Method to instantiate the form field. | Method to instantiate the form field. | ||
<! removed transcluded page call, red link never existed > | |||
===Syntax=== | ===Syntax=== | ||
| Line 38: | Line 36: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | |||
< | |||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=__construct | category=__construct | ||
category=JFormField | category=JFormField | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
[[Category:Archived pages API16]] | |||
Latest revision as of 01:42, 25 March 2017
Description
Method to instantiate the form field.
<! removed transcluded page call, red link never existed >
Syntax
__construct($form=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $form | null | $form A reference to the form that the field belongs to. |
Returns
void
Defined in
libraries/joomla/form/formfield.php
Importing
jimport( 'joomla.form.formfield' );
Source Body
public function __construct($form = null)
{
$this->_form = $form;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples