Actions

API16

JForm/ construct

From Joomla! Documentation

< API16:JForm
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Method to construct the object on instantiation.

[<! removed edit link to red link >]

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

Syntax

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

Returns

void

Defined in

libraries/joomla/form/form.php

Importing

jimport( 'joomla.form.form' );

Source Body

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 edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />