API16:JFormField/ construct
From Joomla! Documentation
Description
Method to instantiate the form field.
Template:Description:JFormField/ construct
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;
}
[Edit See Also] Template:SeeAlso:JFormField/ construct
Examples
<CodeExamplesForm />