PHP Класс Sonata\BasketBundle\Form\AddressType

Наследование: extends Symfony\Component\Form\AbstractType
Показать файл Открыть проект

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

Свойство Тип Описание
$addressClass string
$basket Sonata\Component\Basket\BasketInterface

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

Метод Описание
__construct ( string $addressClass, Sonata\Component\Basket\BasketInterface $basket ) Constructor.
buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
buildView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
getBlockPrefix ( )
getName ( )
setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver )

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

Метод Описание
getBasketDeliveryCountries ( ) : array Returns basket elements delivery countries.

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

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

Constructor.
public __construct ( string $addressClass, Sonata\Component\Basket\BasketInterface $basket )
$addressClass string An address entity class name
$basket Sonata\Component\Basket\BasketInterface Sonata current basket

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

public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface
$options array

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

public buildView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )
$view Symfony\Component\Form\FormView
$form Symfony\Component\Form\FormInterface
$options array

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

Returns basket elements delivery countries.
protected getBasketDeliveryCountries ( ) : array
Результат array

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

public getBlockPrefix ( )

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

public getName ( )

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

public setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolverInterface

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

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

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

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

protected BasketInterface,Sonata\Component\Basket $basket
Результат Sonata\Component\Basket\BasketInterface