lib/Fuel/Fieldset/Builder/ModelBuilder.php
public static function populateForm(Form $form)
	{
		if (static::$builder === null)
		{
			static::setBuilder(new V1Model);

			static::$builder->setWrapperElement(null);
		}

		$elements = static::$builder->generate(get_called_class());

		return $form->setContents($elements);
	}
public static function populateForm(Form $form)
	{
		if (static::$builder === null)
		{
			static::setBuilder(new V1Model);

			static::$builder->setWrapperElement(null);
		}

		$elements = static::$builder->generate(get_called_class());

		return $form->setContents($elements);
	}
public static function populateForm ( Form $ form ) { if ( static :: $ builder === null ) { static :: setBuilder ( new V1Model ) ; static :: $ builder -> setWrapperElement ( null ) ; } $ elements = static :: $ builder -> generate ( get_called_class ( ) ) ; return $ form -> setContents ( $ elements ) ; }
Populates the given form with the needed fields

@param Form $form

@return Form
Populates the given form with the needed fields