PHP Класс WellCommerce\Bundle\CoreBundle\Form\AbstractFormBuilder

Автор: Adam Piotrowski ([email protected])
Наследование: extends WellCommerce\Bundle\CoreBundle\DependencyInjection\AbstractContainerAware, implements WellCommerce\Component\Form\FormBuilderInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$alias string
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$formHandler WellCommerce\Component\Form\Handler\FormHandlerInterface
$resolverFactory WellCommerce\Component\Form\Resolver\FormResolverFactoryInterface

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

Метод Описание
__construct ( string $alias, WellCommerce\Component\Form\Resolver\FormResolverFactoryInterface $resolverFactory, WellCommerce\Component\Form\Handler\FormHandlerInterface $formHandler, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) AbstractFormBuilder constructor.
createForm ( array $options, $defaultData = null ) : WellCommerce\Component\Form\Elements\FormInterface
getDependency ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Dependencies\DependencyInterface
getElement ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Elements\ElementInterface
getFilter ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Filters\FilterInterface
getRepositoryTransformer ( string $alias, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository ) : WellCommerce\Component\Form\DataTransformer\DataTransformerInterface
getRule ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Rules\RuleInterface

Защищенные методы

Метод Описание
addMetadataFieldset ( WellCommerce\Component\Form\Elements\FormInterface $form, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository )
addShopsFieldset ( WellCommerce\Component\Form\Elements\FormInterface $form )
buildForm ( WellCommerce\Component\Form\Elements\FormInterface $form ) Builds the form
dispatchOnInitEvent ( WellCommerce\Component\Form\Elements\FormInterface $form, WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity = null ) Dispatches the event after form initialization
getFormService ( array $options ) : WellCommerce\Component\Form\Elements\FormInterface Initializes form service
initService ( string $type, string $alias, array $options ) : object Initializes a service by its type

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

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

AbstractFormBuilder constructor.
public __construct ( string $alias, WellCommerce\Component\Form\Resolver\FormResolverFactoryInterface $resolverFactory, WellCommerce\Component\Form\Handler\FormHandlerInterface $formHandler, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$alias string
$resolverFactory WellCommerce\Component\Form\Resolver\FormResolverFactoryInterface
$formHandler WellCommerce\Component\Form\Handler\FormHandlerInterface
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

addMetadataFieldset() защищенный Метод

protected addMetadataFieldset ( WellCommerce\Component\Form\Elements\FormInterface $form, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository )
$form WellCommerce\Component\Form\Elements\FormInterface
$repository WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface

addShopsFieldset() защищенный Метод

protected addShopsFieldset ( WellCommerce\Component\Form\Elements\FormInterface $form )
$form WellCommerce\Component\Form\Elements\FormInterface

buildForm() абстрактный защищенный Метод

Builds the form
abstract protected buildForm ( WellCommerce\Component\Form\Elements\FormInterface $form )
$form WellCommerce\Component\Form\Elements\FormInterface

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

public createForm ( array $options, $defaultData = null ) : WellCommerce\Component\Form\Elements\FormInterface
$options array
Результат WellCommerce\Component\Form\Elements\FormInterface

dispatchOnInitEvent() защищенный Метод

Dispatches the event after form initialization
protected dispatchOnInitEvent ( WellCommerce\Component\Form\Elements\FormInterface $form, WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity = null )
$form WellCommerce\Component\Form\Elements\FormInterface
$entity WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface

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

public getDependency ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Dependencies\DependencyInterface
$alias string
$options array
Результат WellCommerce\Component\Form\Dependencies\DependencyInterface

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

public getElement ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Elements\ElementInterface
$alias string
$options array
Результат WellCommerce\Component\Form\Elements\ElementInterface

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

public getFilter ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Filters\FilterInterface
$alias string
$options array
Результат WellCommerce\Component\Form\Filters\FilterInterface

getFormService() защищенный Метод

Initializes form service
protected getFormService ( array $options ) : WellCommerce\Component\Form\Elements\FormInterface
$options array
Результат WellCommerce\Component\Form\Elements\FormInterface

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

public getRepositoryTransformer ( string $alias, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository ) : WellCommerce\Component\Form\DataTransformer\DataTransformerInterface
$alias string
$repository WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface
Результат WellCommerce\Component\Form\DataTransformer\DataTransformerInterface

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

public getRule ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Rules\RuleInterface
$alias string
$options array
Результат WellCommerce\Component\Form\Rules\RuleInterface

initService() защищенный Метод

Initializes a service by its type
protected initService ( string $type, string $alias, array $options ) : object
$type string
$alias string
$options array
Результат object

Описание свойств

$alias защищенное свойство

protected string $alias
Результат string

$eventDispatcher защищенное свойство

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
Результат Symfony\Component\EventDispatcher\EventDispatcherInterface

$formHandler защищенное свойство

protected FormHandlerInterface,WellCommerce\Component\Form\Handler $formHandler
Результат WellCommerce\Component\Form\Handler\FormHandlerInterface

$resolverFactory защищенное свойство

protected FormResolverFactoryInterface,WellCommerce\Component\Form\Resolver $resolverFactory
Результат WellCommerce\Component\Form\Resolver\FormResolverFactoryInterface