Back to Form class

Method getFieldXml

public \SimpleXMLElement|bool
getFieldXml
(mixed $name, mixed $group = null)
Method to get a form field represented as an XML element object.
Parameters
  • string $name The name of the form field.
  • string $group The optional dot-separated form group path on which to find the field.
Returns
  • \SimpleXMLElement|bool The XML element object for the field or boolean false on error.
Since
  • 3.7.0
Class: Form
Project: Joomla

Method getFieldXml - Source code

/**
 * Method to get a form field represented as an XML element object.
 *
 * @param   string  $name   The name of the form field.
 * @param   string  $group  The optional dot-separated form group path on which to find the field.
 *
 * @return  \SimpleXMLElement|boolean  The XML element object for the field or boolean false on error.
 *
 * @since   3.7.0
 */
public function getFieldXml($name, $group = null)
{
    return $this->findField($name, $group);
}