PHP Класс Symfony\Component\Form\FormBuilder

Автор: Bernhard Schussek ([email protected])
Наследование: extends Symfony\Component\Form\FormConfigBuilder, implements IteratorAggregate, implements Symfony\Component\Form\FormBuilderInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $name, string $dataClass, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Symfony\Component\Form\FormFactoryInterface $factory, array $options = [] ) Creates a new form builder.
add ( $child, $type = null, array $options = [] )
all ( )
count ( )
create ( $name, $type = null, array $options = [] )
get ( $name )
getForm ( )
getFormFactory ( )
getIterator ( )
getParent ( )
getTypes ( ) : array Returns the types used by this builder.
has ( $name )
hasParent ( )
remove ( $name )
setParent ( Symfony\Component\Form\FormBuilderInterface $parent = null )

Приватные методы

Метод Описание
resolveChild ( string $name ) : FormBuilder Converts an unresolved child into a {@link FormBuilder} instance.
resolveChildren ( ) Converts all unresolved children into {@link FormBuilder} instances.

Описание методов

__construct() публичный Метод

Creates a new form builder.
public __construct ( string $name, string $dataClass, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Symfony\Component\Form\FormFactoryInterface $factory, array $options = [] )
$name string
$dataClass string
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$factory Symfony\Component\Form\FormFactoryInterface
$options array

add() публичный Метод

public add ( $child, $type = null, array $options = [] )
$options array

all() публичный Метод

public all ( )

count() публичный Метод

public count ( )

create() публичный Метод

public create ( $name, $type = null, array $options = [] )
$options array

get() публичный Метод

public get ( $name )

getForm() публичный Метод

public getForm ( )

getFormFactory() публичный Метод

public getFormFactory ( )

getIterator() публичный Метод

public getIterator ( )

getParent() публичный Метод

public getParent ( )

getTypes() публичный Метод

Returns the types used by this builder.
Устаревший: Deprecated since version 2.1, to be removed in 2.3. Use {@link FormConfigInterface::getType()} instead.
public getTypes ( ) : array
Результат array An array of FormTypeInterface

has() публичный Метод

public has ( $name )

hasParent() публичный Метод

public hasParent ( )

remove() публичный Метод

public remove ( $name )

setParent() публичный Метод

public setParent ( Symfony\Component\Form\FormBuilderInterface $parent = null )
$parent Symfony\Component\Form\FormBuilderInterface