PHP 클래스 Sonata\BasketBundle\Form\AddressType

상속: extends Symfony\Component\Form\AbstractType
파일 보기 프로젝트 열기: sonata-project/ecommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$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