API17

JForm::getInstance

From Joomla! Documentation

Revision as of 20:59, 27 April 2011 by Doxiki2 (talk | contribs) (Updated to r1448:247ba8d88526)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API17" 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.

Joomla 11.1 JForm::getInstance[edit]

Description[edit]

Method to get an instance of a form.

Template:Description:JForm::getInstance [Edit Descripton]

public static function 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 on line 1688 of libraries/joomla/form/form.php
  • Since Joomla 11.1
  • Referenced by

See also[edit]

Template:SeeAlso:JForm::getInstance [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />