english/libraries/joomla/form/form.php
/**
	 * Method to reset the form data store and optionally the form XML definition.
	 *
	 * @param   boolean  $xml  True to also reset the XML form definition.
	 *
	 * @return  boolean  True on success.
	 *
	 * @since   11.1
	 */
Method to reset the form data store and optionally the form XML definition.
@param   boolean  $xml  True to also reset the XML form definition.

@return  boolean  True on success.


Method to reset the form data store and optionally the form XML definition . @param boolean $xml True to also reset the XML form definition . @return boolean True on success .
public function reset($xml = false)
	{
		unset($this->data);
		$this->data = new JRegistry;
		if ($xml) {
			unset($this->xml);
			$this->xml = new JXMLElement('<form></form>');
		}
		return true;
	}
public function reset ( $ xml = false ) { unset ( $ this -> data ) ; $ this -> data = new JRegistry ; if ( $ xml ) { unset ( $ this -> xml ) ; $ this -> xml = new JXMLElement ( '<form></form>' ) ; } return true ; }
Method to reset the form data store and optionally the form XML definition.
Method to reset the form data store and optionally the form XML definition .