Свойство | Type | Description | |
---|---|---|---|
$alias | string | ||
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
$formHandler | WellCommerce\Component\Form\Handler\FormHandlerInterface | ||
$resolverFactory | WellCommerce\Component\Form\Resolver\FormResolverFactoryInterface |
Méthode | Description | |
---|---|---|
__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 |
Méthode | Description | |
---|---|---|
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 |
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 |
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 |
protected addShopsFieldset ( WellCommerce\Component\Form\Elements\FormInterface $form ) | ||
$form | WellCommerce\Component\Form\Elements\FormInterface |
abstract protected buildForm ( WellCommerce\Component\Form\Elements\FormInterface $form ) | ||
$form | WellCommerce\Component\Form\Elements\FormInterface |
public createForm ( array $options, $defaultData = null ) : WellCommerce\Component\Form\Elements\FormInterface | ||
$options | array | |
Résultat | WellCommerce\Component\Form\Elements\FormInterface |
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 |
public getDependency ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Dependencies\DependencyInterface | ||
$alias | string | |
$options | array | |
Résultat | WellCommerce\Component\Form\Dependencies\DependencyInterface |
public getElement ( string $alias, array $options = [] ) : WellCommerce\Component\Form\Elements\ElementInterface | ||
$alias | string | |
$options | array | |
Résultat | WellCommerce\Component\Form\Elements\ElementInterface |
protected getFormService ( array $options ) : WellCommerce\Component\Form\Elements\FormInterface | ||
$options | array | |
Résultat | WellCommerce\Component\Form\Elements\FormInterface |
public getRepositoryTransformer ( string $alias, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository ) : WellCommerce\Component\Form\DataTransformer\DataTransformerInterface | ||
$alias | string | |
$repository | WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface | |
Résultat | WellCommerce\Component\Form\DataTransformer\DataTransformerInterface |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher | ||
Résultat | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected FormHandlerInterface,WellCommerce\Component\Form\Handler $formHandler | ||
Résultat | WellCommerce\Component\Form\Handler\FormHandlerInterface |