PHP 클래스 Symfony\Component\Form\FormFactory

상속: implements Symfony\Component\Form\FormFactoryInterface
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\Form\FormRegistryInterface $registry, Symfony\Component\Form\ResolvedFormTypeFactoryInterface $resolvedTypeFactory )
addType ( Symfony\Component\Form\FormTypeInterface $type ) Adds a type.
create ( $type = 'form', $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
createBuilder ( $type = 'form', $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
createBuilderForProperty ( $class, $property, $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
createForProperty ( $class, $property, $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
createNamed ( $name, $type = 'form', $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
createNamedBuilder ( $name, $type = 'form', $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
getType ( string $name ) : Symfony\Component\Form\FormTypeInterface Returns a type by name.
hasType ( string $name ) : boolean Returns whether the given type is supported.

비공개 메소드들

메소드 설명
resolveType ( Symfony\Component\Form\FormTypeInterface $type ) : Symfony\Component\Form\ResolvedFormTypeInterface Wraps a type into a ResolvedFormTypeInterface implementation and connects it with its parent type.

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Component\Form\FormRegistryInterface $registry, Symfony\Component\Form\ResolvedFormTypeFactoryInterface $resolvedTypeFactory )
$registry Symfony\Component\Form\FormRegistryInterface
$resolvedTypeFactory Symfony\Component\Form\ResolvedFormTypeFactoryInterface

addType() 공개 메소드

Adds a type.
사용 중단: Deprecated since version 2.1, to be removed in 2.3. Use form extensions or type registration in the Dependency Injection Container instead.
public addType ( Symfony\Component\Form\FormTypeInterface $type )
$type Symfony\Component\Form\FormTypeInterface The type

create() 공개 메소드

public create ( $type = 'form', $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
$options array
$parent Symfony\Component\Form\FormBuilderInterface

createBuilder() 공개 메소드

public createBuilder ( $type = 'form', $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
$options array
$parent Symfony\Component\Form\FormBuilderInterface

createBuilderForProperty() 공개 메소드

public createBuilderForProperty ( $class, $property, $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
$options array
$parent Symfony\Component\Form\FormBuilderInterface

createForProperty() 공개 메소드

public createForProperty ( $class, $property, $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
$options array
$parent Symfony\Component\Form\FormBuilderInterface

createNamed() 공개 메소드

public createNamed ( $name, $type = 'form', $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
$options array
$parent Symfony\Component\Form\FormBuilderInterface

createNamedBuilder() 공개 메소드

public createNamedBuilder ( $name, $type = 'form', $data = null, array $options = [], Symfony\Component\Form\FormBuilderInterface $parent = null )
$options array
$parent Symfony\Component\Form\FormBuilderInterface

getType() 공개 메소드

This methods registers the type extensions from the form extensions.
사용 중단: Deprecated since version 2.1, to be removed in 2.3. Use {@link FormRegistryInterface::getType()} instead.
public getType ( string $name ) : Symfony\Component\Form\FormTypeInterface
$name string The name of the type
리턴 Symfony\Component\Form\FormTypeInterface The type

hasType() 공개 메소드

Returns whether the given type is supported.
사용 중단: Deprecated since version 2.1, to be removed in 2.3. Use {@link FormRegistryInterface::hasType()} instead.
public hasType ( string $name ) : boolean
$name string The name of the type
리턴 boolean Whether the type is supported