Actions

API17

JForm::getInstance

From Joomla! Documentation

Revision as of 18:34, 20 April 2011 by Doxiki2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Joomla 11.1 JForm::getInstance

Description

Method to get an instance of a form.

Description:JForm::getInstance [Edit Descripton]

Since

Joomla 11.1

Synopsis

public static JForm::getInstance ($name, $data=null, $options=array(), $replace=true, $xpath=false)
Parameter Type Default Description
$name Exception if an error occurs.
$data string null The name of an XML file or string to load as the form definition.
$options array array() An array of form options.
$replace string true Flag to toggle whether form fields should be replaced if a field already exists with the same group/name.
$xpath string false An optional xpath to search for the fields.

Returns

object instance.

Defined in

libraries/joomla/form/form.php

Referenced by

See also

[Edit See Also]

SeeAlso:JForm::getInstance

Examples

<CodeExamplesForm />