PHP Класс Elcodi\Admin\ProductBundle\Form\Type\PackType

Наследование: extends Symfony\Component\Form\AbstractType, use trait Elcodi\Component\EntityTranslator\EventListener\Traits\EntityTranslatableFormTrait, use trait Elcodi\Component\Core\Factory\Traits\FactoryTrait
Показать файл Открыть проект

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

Свойство Тип Описание
$categoryNamespace string Category namespace
$imageNamespace string Image namespace
$manufacturerNamespace string Manufacturer namespace
$purchasableNameResolver Elcodi\Component\Product\NameResolver\Interfaces\PurchasableNameResolverInterface Purchasable name resolver
$purchasableNamespace string Purchasable namespace

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

Метод Описание
__construct ( Elcodi\Component\Product\NameResolver\Interfaces\PurchasableNameResolverInterface $purchasableNameResolver, string $purchasableNamespace, string $manufacturerNamespace, string $categoryNamespace, string $imageNamespace ) Construct
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options ) Buildform function
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver ) Configures the options for this type.
getBlockPrefix ( ) : string Returns the prefix of the template block name for this type.
getName ( ) : string Return unique name for this form

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

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

Construct
public __construct ( Elcodi\Component\Product\NameResolver\Interfaces\PurchasableNameResolverInterface $purchasableNameResolver, string $purchasableNamespace, string $manufacturerNamespace, string $categoryNamespace, string $imageNamespace )
$purchasableNameResolver Elcodi\Component\Product\NameResolver\Interfaces\PurchasableNameResolverInterface Purchasable name resolver
$purchasableNamespace string Purchasable namespace
$manufacturerNamespace string Manufacturer namespace
$categoryNamespace string Category namespace
$imageNamespace string Image namespace

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

Buildform function
public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface the formBuilder
$options array the options for this form

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

Configures the options for this type.
public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver The resolver for the options.

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

The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile").
public getBlockPrefix ( ) : string
Результат string The prefix of the template block name

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

Return unique name for this form
Устаревший: Deprecated since Symfony 2.8, to be removed from Symfony 3.
public getName ( ) : string
Результат string

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

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

Category namespace
protected string $categoryNamespace
Результат string

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

Image namespace
protected string $imageNamespace
Результат string

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

Manufacturer namespace
protected string $manufacturerNamespace
Результат string

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

Purchasable name resolver
protected PurchasableNameResolverInterface,Elcodi\Component\Product\NameResolver\Interfaces $purchasableNameResolver
Результат Elcodi\Component\Product\NameResolver\Interfaces\PurchasableNameResolverInterface

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

Purchasable namespace
protected string $purchasableNamespace
Результат string