fuel/fuel/core/classes/validation.php
public static function forge($fieldset = 'default')
	{
		if (is_string($fieldset))
		{
			($set = \Fieldset::instance($fieldset)) and $fieldset = $set;
		}

		if ($fieldset instanceof Fieldset)
		{
			if ($fieldset->validation(false) != null)
			{
				throw new \DomainException('Form instance already exists, cannot be recreated. Use instance() instead of forge() to retrieve the existing instance.');
			}
		}

		return new static($fieldset);
	}
public static function forge($fieldset = 'default')
	{
		if (is_string($fieldset))
		{
			($set = \Fieldset::instance($fieldset)) and $fieldset = $set;
		}

		if ($fieldset instanceof Fieldset)
		{
			if ($fieldset->validation(false) != null)
			{
				throw new \DomainException('Form instance already exists, cannot be recreated. Use instance() instead of forge() to retrieve the existing instance.');
			}
		}

		return new static($fieldset);
	}
public static function forge ( $ fieldset = 'default' ) { if ( is_string ( $ fieldset ) ) { ( $ set = \ Fieldset :: instance ( $ fieldset ) ) and $ fieldset = $ set ; } if ( $ fieldset instanceof Fieldset ) { if ( $ fieldset -> validation ( false ) != null ) { throw new \ DomainException ( 'Form instance already exists, cannot be recreated. Use instance() instead of forge() to retrieve the existing instance.' ) ; } } return new static ( $ fieldset ) ; }
Gets a new instance of the Validation class.

@param   string      The name or instance of the Fieldset to link to
@return  Validation
Gets a new instance of the Validation class .