The reset option works on a group basis. If the XML file references
groups that have already been created they will be replaced with the
fields in the new XML file unless the $reset parameter has been set
to false.
public loadFile ( string $file, boolean $reset = true, boolean $xpath = false ) : boolean | ||
$file | string | The filesystem path of an XML file. |
$reset | boolean | Flag to toggle whether form fields should be replaced if a field already exists with the same group/name. |
$xpath | boolean | An optional xpath to search for the fields. |
return | boolean | True on success, false otherwise. |