API16

JForm/ construct

From Joomla! Documentation

< API16:JForm

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Method to construct the object on instantiation.


<! removed transcluded page call, red link never existed >

Syntax[edit]

__construct($options=array())
Parameter Name Default Value Description
$options array() $options An array of form options.

Returns[edit]

void

Defined in[edit]

libraries/joomla/form/form.php

Importing[edit]

jimport( 'joomla.form.form' );

Source Body[edit]

public function __construct($options = array())
{
        // Set the options if specified.
        $this->_options['array'] = array_key_exists('array', $options) ? $options['array'] : false;
        $this->_options['prefix'] = array_key_exists('prefix', $options) ? $options['prefix'] : '%__';
}


<! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]