PHP Class Sonata\BasketBundle\Form\AddressType

Inheritance: extends Symfony\Component\Form\AbstractType
Exibir arquivo Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$addressClass string
$basket Sonata\Component\Basket\BasketInterface

Public Methods

Method Description
__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 )

Protected Methods

Method Description
getBasketDeliveryCountries ( ) : array Returns basket elements delivery countries.

Method Details

__construct() public method

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 method

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

buildView() public method

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() protected method

Returns basket elements delivery countries.
protected getBasketDeliveryCountries ( ) : array
return array

getBlockPrefix() public method

public getBlockPrefix ( )

getName() public method

public getName ( )

setDefaultOptions() public method

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

Property Details

$addressClass protected_oe property

protected string $addressClass
return string

$basket protected_oe property

protected BasketInterface,Sonata\Component\Basket $basket
return Sonata\Component\Basket\BasketInterface