public function getField($name, $group = null, $value = null)
	{
		// Make sure there is a valid Form XML document.
		if (!($this->xml instanceof \SimpleXMLElement))
		{
			return false;
		}

		// Attempt to find the field by name and group.
		$element = $this->findField($name, $group);

		// If the field element was not found return false.
		if (!$element)
		{
			return false;
		}

		return $this->loadField($element, $group, $value);
	}
public function getField($name, $group = null, $value = null)
	{
		// Make sure there is a valid Form XML document.
		if (!($this->xml instanceof \SimpleXMLElement))
		{
			return false;
		}

		// Attempt to find the field by name and group.
		$element = $this->findField($name, $group);

		// If the field element was not found return false.
		if (!$element)
		{
			return false;
		}

		return $this->loadField($element, $group, $value);
	}
public function getField ( $ name , $ group = null , $ value = null ) { // Make sure there is a valid Form XML document. if ( ! ( $ this -> xml instanceof \ SimpleXMLElement ) ) { return false ; } // Attempt to find the field by name and group. $ element = $ this -> findField ( $ name , $ group ) ; // If the field element was not found return false. if ( ! $ element ) { return false ; } return $ this -> loadField ( $ element , $ group , $ value ) ; }
Method to get a form field represented as a Field 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.
@param   mixed   $value  The optional value to use as the default for the field.

@return  mixed  The Field object for the field or boolean false on error.

@since   1.0
Method to get a form field represented as a Field object .