PHP 클래스 Sonata\CustomerBundle\Controller\Api\AddressController

저자: Vincent Composieux ([email protected])
파일 보기 프로젝트 열기: sonata-project/ecommerce

보호된 프로퍼티들

프로퍼티 타입 설명
$addressManager Sonata\Component\Customer\AddressManagerInterface
$formFactory Symfony\Component\Form\FormFactoryInterface

공개 메소드들

메소드 설명
__construct ( Sonata\Component\Customer\AddressManagerInterface $addressManager, Symfony\Component\Form\FormFactoryInterface $formFactory ) Constructor.
deleteAddressAction ( integer $id ) : FOS\RestBundle\View\View Deletes an address.
getAddressAction ( $id ) : Sonata\Component\Customer\AddressInterface Retrieves a specific address.
getAddressesAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : Sonata\DatagridBundle\Pager\PagerInterface Returns a paginated list of addresses.
postAddressAction ( Request $request ) : Sonata\Component\Customer\AddressInterface Adds an address.
putAddressAction ( integer $id, Request $request ) : Address Updates an address.

보호된 메소드들

메소드 설명
getAddress ( integer $id ) : Sonata\Component\Customer\AddressInterface Retrieves address with id $id or throws an exception if it doesn't exist.
handleWriteAddress ( Request $request, integer | null $id = null ) : FOS\RestBundle\View\View | FormInterface Write an address, this method is used by both POST and PUT action methods.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Sonata\Component\Customer\AddressManagerInterface $addressManager, Symfony\Component\Form\FormFactoryInterface $formFactory )
$addressManager Sonata\Component\Customer\AddressManagerInterface
$formFactory Symfony\Component\Form\FormFactoryInterface

deleteAddressAction() 공개 메소드

Deletes an address.
public deleteAddressAction ( integer $id ) : FOS\RestBundle\View\View
$id integer An Address identifier
리턴 FOS\RestBundle\View\View

getAddress() 보호된 메소드

Retrieves address with id $id or throws an exception if it doesn't exist.
protected getAddress ( integer $id ) : Sonata\Component\Customer\AddressInterface
$id integer
리턴 Sonata\Component\Customer\AddressInterface

getAddressAction() 공개 메소드

Retrieves a specific address.
public getAddressAction ( $id ) : Sonata\Component\Customer\AddressInterface
$id
리턴 Sonata\Component\Customer\AddressInterface

getAddressesAction() 공개 메소드

Returns a paginated list of addresses.
public getAddressesAction ( FOS\RestBundle\Request\ParamFetcherInterface $paramFetcher ) : Sonata\DatagridBundle\Pager\PagerInterface
$paramFetcher FOS\RestBundle\Request\ParamFetcherInterface
리턴 Sonata\DatagridBundle\Pager\PagerInterface

handleWriteAddress() 보호된 메소드

Write an address, this method is used by both POST and PUT action methods.
protected handleWriteAddress ( Request $request, integer | null $id = null ) : FOS\RestBundle\View\View | FormInterface
$request Symfony\Component\HttpFoundation\Request Symfony request
$id integer | null An Address identifier
리턴 FOS\RestBundle\View\View | FormInterface

postAddressAction() 공개 메소드

Adds an address.
public postAddressAction ( Request $request ) : Sonata\Component\Customer\AddressInterface
$request Symfony\Component\HttpFoundation\Request A Symfony request
리턴 Sonata\Component\Customer\AddressInterface

putAddressAction() 공개 메소드

Updates an address.
public putAddressAction ( integer $id, Request $request ) : Address
$id integer An Address identifier
$request Symfony\Component\HttpFoundation\Request A Symfony request
리턴 Address

프로퍼티 상세

$addressManager 보호되어 있는 프로퍼티

protected AddressManagerInterface,Sonata\Component\Customer $addressManager
리턴 Sonata\Component\Customer\AddressManagerInterface

$formFactory 보호되어 있는 프로퍼티

protected FormFactoryInterface,Symfony\Component\Form $formFactory
리턴 Symfony\Component\Form\FormFactoryInterface