PHP 클래스 Symfony\Component\Form\AbstractType

저자: Bernhard Schussek ([email protected])
상속: implements Symfony\Component\Form\FormTypeInterface
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
buildForm ( FormBuilder $builder, array $options ) Builds the form.
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
buildView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form ) Builds the form view.
buildView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
buildViewBottomUp ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form ) Builds the form view.
createBuilder ( string $name, Symfony\Component\Form\FormFactoryInterface $factory, array $options ) : FormBuilder | null Returns a builder for the current type.
finishView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
getAllowedOptionValues ( array $options ) : array Returns the allowed option values for each option (if any).
getDefaultOptions ( array $options ) : array Returns the default options for this type.
getExtensions ( ) : array Returns the extensions associated with this type.
getParent ( )
getParent ( array $options ) : string | null Returns the name of the parent type.
setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver )
setExtensions ( array $extensions ) Adds extensions for this type.

메소드 상세

buildForm() 공개 메소드

This method gets called for each type in the hierarchy starting form the top most type. Type extensions can further modify the form.
또한 보기: FormTypeExtensionInterface::buildForm()
public buildForm ( FormBuilder $builder, array $options )
$builder FormBuilder The form builder
$options array The options

buildForm() 공개 메소드

public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface
$options array

buildView() 공개 메소드

This method gets called for each type in the hierarchy starting form the top most type. Type extensions can further modify the view.
또한 보기: FormTypeExtensionInterface::buildView()
public buildView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form )
$view Symfony\Component\Form\FormView The view
$form Symfony\Component\Form\FormInterface The form

buildView() 공개 메소드

public buildView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
$view Symfony\Component\Form\FormView
$form Symfony\Component\Form\FormInterface
$options array

buildViewBottomUp() 공개 메소드

This method gets called for each type in the hierarchy starting form the top most type. Type extensions can further modify the view. Children views have been built while this method gets called so you get a chance to modify them.
또한 보기: FormTypeExtensionInterface::buildViewBottomUp()
public buildViewBottomUp ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form )
$view Symfony\Component\Form\FormView The view
$form Symfony\Component\Form\FormInterface The form

createBuilder() 공개 메소드

The builder is retrieved by going up in the type hierarchy when a type does not provide one.
public createBuilder ( string $name, Symfony\Component\Form\FormFactoryInterface $factory, array $options ) : FormBuilder | null
$name string The name of the builder
$factory Symfony\Component\Form\FormFactoryInterface The form factory
$options array The options
리턴 FormBuilder | null A form builder or null when the type does not have a builder

finishView() 공개 메소드

public finishView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
$view Symfony\Component\Form\FormView
$form Symfony\Component\Form\FormInterface
$options array

getAllowedOptionValues() 공개 메소드

Returns the allowed option values for each option (if any).
public getAllowedOptionValues ( array $options ) : array
$options array
리턴 array The allowed option values

getDefaultOptions() 공개 메소드

Returns the default options for this type.
public getDefaultOptions ( array $options ) : array
$options array
리턴 array The default options

getExtensions() 공개 메소드

Returns the extensions associated with this type.
public getExtensions ( ) : array
리턴 array An array of FormTypeExtensionInterface

getParent() 공개 메소드

public getParent ( )

getParent() 공개 메소드

Returns the name of the parent type.
public getParent ( array $options ) : string | null
$options array
리턴 string | null The name of the parent type if any otherwise null

setDefaultOptions() 공개 메소드

public setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolverInterface

setExtensions() 공개 메소드

Adds extensions for this type.
public setExtensions ( array $extensions )
$extensions array An array of FormTypeExtensionInterface