PHP 클래스 Sonata\CustomerBundle\Controller\CustomerController

저자: Hugo Briand ([email protected])
상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: sonata-project/ecommerce

공개 메소드들

메소드 설명
addAddressAction ( ) : Response Adds an address to current customer.
addressesAction ( ) : Response Lists customer's addresses.
deleteAddressAction ( $id ) : RedirectResponse Deletes address $id.
editAddressAction ( $id ) : RedirectResponse | Response Controller action to edit address $id.
setCurrentAddressAction ( $id ) : RedirectResponse Sets address $id to current.

보호된 메소드들

메소드 설명
checkAddress ( Sonata\Component\Customer\AddressInterface $address = null ) Checks if $address is valid.
getAddressManager ( ) : Sonata\Component\Customer\AddressManagerInterface
getCustomer ( ) : Sonata\Component\Customer\CustomerInterface
getCustomerManager ( ) : Sonata\Component\Customer\CustomerManagerInterface
updateAddress ( integer $id = null ) : RedirectResponse | Response Updates or create an address.

메소드 상세

addAddressAction() 공개 메소드

Adds an address to current customer.
public addAddressAction ( ) : Response
리턴 Symfony\Component\HttpFoundation\Response

addressesAction() 공개 메소드

Lists customer's addresses.
public addressesAction ( ) : Response
리턴 Symfony\Component\HttpFoundation\Response

checkAddress() 보호된 메소드

Checks if $address is valid.
protected checkAddress ( Sonata\Component\Customer\AddressInterface $address = null )
$address Sonata\Component\Customer\AddressInterface

deleteAddressAction() 공개 메소드

Deletes address $id.
public deleteAddressAction ( $id ) : RedirectResponse
$id The address to delete
리턴 Symfony\Component\HttpFoundation\RedirectResponse

editAddressAction() 공개 메소드

Controller action to edit address $id.
public editAddressAction ( $id ) : RedirectResponse | Response
$id
리턴 Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response

getAddressManager() 보호된 메소드

protected getAddressManager ( ) : Sonata\Component\Customer\AddressManagerInterface
리턴 Sonata\Component\Customer\AddressManagerInterface

getCustomer() 보호된 메소드

protected getCustomer ( ) : Sonata\Component\Customer\CustomerInterface
리턴 Sonata\Component\Customer\CustomerInterface

getCustomerManager() 보호된 메소드

protected getCustomerManager ( ) : Sonata\Component\Customer\CustomerManagerInterface
리턴 Sonata\Component\Customer\CustomerManagerInterface

setCurrentAddressAction() 공개 메소드

Sets address $id to current.
public setCurrentAddressAction ( $id ) : RedirectResponse
$id
리턴 Symfony\Component\HttpFoundation\RedirectResponse

updateAddress() 보호된 메소드

Updates or create an address.
protected updateAddress ( integer $id = null ) : RedirectResponse | Response
$id integer Address id
리턴 Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response